Create coupons for a coupon collection

Add coupons to an existing coupon collection. The coupons array must contain between 1 and 10,000 unique coupon code strings, all associated with the specified collectionId. Coupon creation is processed asynchronously and a 204 status is returned immediately upon acceptance. Returns a 404 error if the specified coupon collection does not exist.

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

Request

Values to create coupons
collectionIdstringRequiredformat: "uuidv4"
The id of the coupon collection for which the coupons will be created
couponslist of stringsRequired

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error