Authorization
Example:
Authorization | Bearer Paste-Your-API-Key-Here
Request Body
Discount coupon expiration date.
Discount name.
Details of discount conditions.
discount Structure (Array Of Object)
Discount type;
- monetary
- percentage
Target customers who can use discount coupons.
- all
Minimum purchase to be able to use the discount.
Discount amount
Available coupon quota.
Coupon code details.
coupon Structure (Array Of Object)
Discount coupon code.
Coupon type;
- reusable
- onetime
List of eligible products.
Response
Successful ResponseMain Structure (Root)
Status code form API.
Status message that describes the status code.
The main data returned (request payment details).
data Structure (Array Of Object)
Discount ID.
Creation time (timestamp in ms).
Expiration time (timestamp in ms).
Discount type.
Discount product scope.
Eligible customer scope.
Discount name.
Minimum purchase amount required to apply discount.
Indicates if discount is lifetime (
true
/false
) or null
.Total number of coupons available.
Discount value.
List of coupons associated with this discount.
Product-specific discount rules (empty if not applied).
coupons Structure (Array Of Object)
Coupon code.
Coupon type.
Coupon expiration date.
Whether the coupon is active (
true
or false
).