Dynamic Coupon API Generation:
This API endpoint facilitates the generation of dynamic discount coupons based on specific templates: AUTO_ALLOCATE and AUTO_ACCEPT flag set during template generation.
Basic Auth:
POST
{API_URL}/subscription/discount-coupon-template/generate-user-coupon
Enter API-KEY and API-Secret as username and password respectively.
Request Body
couponName*
String
Unique identifier for the coupon name.
clientId*
String
Unique identifier for the client.
quantity*
Integer
Number of coupons to be generated.
couponCodes *
Array of Strings
Predefined coupon codes provided by the client.
Details of the generated coupons including identifiers and metadata are provided in the response.
Error Handling: Error messages and codes for scenarios like invalid template IDs, missing fields, or invalid coupon codes. Specific errors will be returned if the requested quantity exceeds the template's maximum limit.
Last updated