Admin API reference
/v4 API
//
Batch create promo code d...
Create up to 50 promo code definitions in one request. Definitions are saved in the draft status, and no actual codes are generated yet.
Only include recognized fields, unknown fields will be rejected. We validate everything before saving, so all valid items succeed together or none do. You will only see failed items in the response.
When ready, use the status-update endpoint to activate your definitions and generate the actual promo codes.
Security
ZephrHmacHttp
- https://demo.api.zephr.comhttps://demo.api.zephr.com/zephr/integration/promo-codes/v1/definitions/batch
{ "promo_code_definitions": [ { … }, { … } ] }
OK. Your request is being processed. Review the response to see which items completed and which need attention.
Response
{ "message": "2 promo codes have been created successfully.", "failures": [] }