docs
  1. Admin Api
  2. Resources
  3. Promotions
  4. Promotion Codes
  5. Create Promotion Codes

Create promotion codes

Create promotion codes

Path Parameters

ParameterDetails
promotionId
  • required
  • MinLength: 24
  • MaxLength: 24
string
Example:
645e0c241a93369ff53f26e0

Request body

required
ParameterDetails
promotionCodes
  • required
  • MinLength: 2
  • MaxLength: 30
string
Example:
BF24,XMAS24

Responses

201
Promotion Codes are successfully created.
application/json
Success
promotionCodesrequired
Array of string
400
Bad Request
application/json
Error
401
Unauthorized
application/json
Error
403
Forbidden
application/json
Error
500
Service unavailable error
application/json
Error
POST/promotions/{promotionId}/codes

Request samples

Response samples

201
Promotion:
Content type: application/json
Provide Feedback