# Discount Code API?

**URL:** <https://community.hubspot.com/t/discount-code-api/81980>\
**Category:** APIs & Integrations\
**Tags:** sdk\
**Created:** [May 25, 2023, 6:55am UTC](https://community.hubspot.com/t/discount-code-api/81980 "2023-05-25T06:55:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NSpiess](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@NSpiess](https://community.hubspot.com/u/NSpiess)\
**Post date:** [May 25, 2023, 6:55am UTC](https://community.hubspot.com/t/discount-code-api/81980/1 "2023-05-25T06:55:52Z")

</div>

Hello,

is there any way to retrieve discount codes via the API? Interestingly enough there’s an undocumented endpoint on crm/v3/objects/discounts/. But it always returns an empty list.

 ![NSpiess_0-1684997727969.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/4/041bce1d5c801c0a7b7df44d5b688297670490b2.png)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 25, 2023, 9:11pm UTC](https://community.hubspot.com/t/discount-code-api/81980/2 "2023-05-25T21:11:04Z")

</div>

Hey, @NSpiess 👋 Thank you for your question! It’s definitely an interesting one. I have a quick answer and then a few thoughts.

You are not missing an option. There is not an endpoint for this. Regarding the endpoint you linked to, I am not sure about its use, but it is not related to what we are looking at.

Here’s what I know:

- Discount Codes live in the Payments settings. But, _it’s always abut_…🤣, they are specifically related to and used for Payment Links. [Create and use payment discount codes](https://knowledge.hubspot.com/payments/create-and-use-payment-discount-codes)

- Making an educated guess, this is why we don’t see them in the Payments or Line Items API documentation and why we don’t get them when we make a request to the Properties endpoint for the Products object

Thank you for the additional information! — Jaycee

---

<div class="post-metadata">

**Author:** ![NSpiess](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@NSpiess](https://community.hubspot.com/u/NSpiess)\
**Post date:** [May 26, 2023, 6:12am UTC](https://community.hubspot.com/t/discount-code-api/81980/3 "2023-05-26T06:12:04Z")

</div>

Thanks Jaycee

Sad to hear. We’re not based in the US and can therefore not use the provided payment solution. We were hoping to still be able to use the voucher definitions for our own external payment handling. But that’s not feasible then.
