Create a new promotion code linked to an existing promotion. Codes can optionally be scoped to a specific customer, limited by usage, or restricted to first-time customers.
Enter your API key as: Bearer your-api-key
The coupon code value
1The promotion this code is linked to
Optional customer ID to restrict the code to a specific customer
Maximum number of times this code can be used
Expiration date of the code
Whether the code is restricted to first-time customers
Email pattern to restrict code usage (e.g. '*@company.com')
Internal description of the code
Additional metadata as a JSON string
Successful response