Authorization
Example:
Authorization | Bearer Paste-Your-API-Key-Here
Path Parameter
A unique identifier obtained when creating a discount. If accessed through the dashboard, it can be found at the URL on the discount details page.Example:
c9aa143a-53f9-44e7-a9c6-83229ad7199b
Response
Successful ResponseMain Structure (Root)
Status code form API.
Status message that describes the status code.
Main response data.
data Structure (Array Of Object)
Discount ID.
Creation time (timestamp in ms).
Expiration time (timestamp in ms).
Product-specific discount rules (empty if not applied).
Discount type.
Discount product scope.
Eligible customer scope.
Discount name.
Minimum purchase amount required to apply the discount.
Indicates if the discount is lifetime (
true
/false
) or null
.Total number of coupons available.
Discount value.
List of coupons associated with this discount.
coupons Structure (Array Of Object)
Coupon ID (UUID).
Coupon code.
Coupon creation time (timestamp in ms).
Related Discount ID.
End of trial month (if applicable).
Coupon expiration time (timestamp in ms).
Whether the coupon is active (
true
or false
).Maximum usage limit for the coupon.
Coupon type.
Last updated time (timestamp in ms).
ID of the user who created/owns the coupon.