post
https://api.attentivemobile.com/v1/coupons/coupon-pool//create
Note: Once the offer(s) has been created, please reach out to an Attentive team member to enable this API feature for you
Make a call to this asynchronous endpoint to create new discount codes in an existing offer.
Validation rules
- Maximum of 200,000 discount codes per request.
distributionStartmust be beforedistributionStop, in UTC ISO format (e.g.,2023-02-14T21:29:25Z).- Date ranges must not overlap with ranges from previous uploads to the same offer. Uploading to an existing range is allowed.
- All uploads in an offer must use the same distribution type. If previous uploads include expiration dates, new uploads must also include them, and vice versa.
- The offer (coupon pool) must exist and belong to your account.
Sync behavior
Check the status on the offer to monitor progress. If it still says SYNCING, the uploads may not be ready yet.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
202Accepted. Check the Attentive Offers page to make sure that there are no errors and the remaining code count is accurate.