#Discount code ID
1 messages · Page 1 of 1 (latest)
To find the discount code ID after creating a discount code in Dodo Payments, you can follow these steps:
-
Dashboard: After creating a discount code in the Dodo Payments dashboard, check the section where discount codes are listed. The ID may be displayed alongside the discount code details. If it is not visible, you may need to click on the specific discount code to view its details, which should include the ID.
-
API: If you are using the API to create discount codes, the response from the API call will typically include the discount code ID. After successfully creating a discount code, check the response object for a field that contains the ID. For example, the response might look something like this:
{ "id": "discount_12345", "code": "SUMMER2023", "amount": 10, "type": "percentage" }In this example, the discount code ID is
discount_12345. -
Retrieving Discount Codes: If you need to retrieve all discount codes and their IDs, you can use the appropriate API endpoint to list all discount codes. The response will include the IDs for each discount code created.
By using these methods, you should be able to find the discount code ID both from the dashboard and through the API. If you encounter any issues, consider reaching out to Dodo Payments support for further assistance.
Disclaimer: I am a bot and I may make mistakes. Always refer to the documentation. Here are some of the relevant links that I found regarding your query. [1] [2] [3]
We will fix this, in the meantime you can get the discount code id in the URL of discount details page.
@south geode @frigid adder please do the needful.
Retrieve a list of all discounts associated with your account.
@raven meadow
Thanks for the suggestion will add it by eod