Embed
Create Self-Service Coupon
Allow affiliates to create their own coupon code
POST
Create a self-service coupon code for an affiliate. This endpoint is public and uses token-based authentication in the request body.
This endpoint does not require API key authentication. Instead, it uses the
token in the request body for authentication.Prerequisites
Self-service coupons must be enabled for the program:- Configure a Coupon Blueprint in your program settings
- The blueprint defines the discount type and value for affiliate coupons
- Affiliates can only create one coupon per program
Body Parameters
The embed token from
POST /v1/embed/token.The coupon code to create. Must be 3-20 alphanumeric characters. Will be automatically uppercased and special characters removed.
Response
Always
true for successful responses.The created coupon.
Validation Rules
- Code must be 3-20 alphanumeric characters
- Code is converted to uppercase
- Non-alphanumeric characters are stripped
- Code must be unique within the program
- Affiliate can only have one coupon per program
Checking Coupon Status
UseGET /v1/embed/data to check if an affiliate already has a coupon:
