Overwrite promo codes in promotion

Use this endpoint to replace all existing promo codes in a promotion with a new set of codes.

Path Params
string
required

Specify the UUID of the promotion to which you want to add promo codes.

Body Params

Specify the array of promo codes that will replace the existing codes in the promotion.

promocodes
array of strings
required

List of promo codes to replace the current set. For testing, enter each promo code individually as a string below. For bulk updates, use the Postman collection to submit multiple promo codes as an array, e.g., ["SUMMER2023", "FALL2023", "WINTER2023"].

promocodes*
Responses

400

Bad request - The request was invalid or cannot be otherwise served. An accompanying error message will explain further.

401

Unauthorized - Invalid or missing API key.

404

Resource not found - The specified promotion ID was not found.

409

Conflict error, please retry - The request could not be completed due to a conflict with the current state of the target resource, re-try with exponential backoff.

500

Internal Server Error - Please contact support for more information.

502

Bad Gateway - Please retry the request.

503

Service Unavailable - The service is temporarily unavailable. Try again later.

504

Gateway Timeout - The server took too long to respond. Retry with exponential backoff.

Language
Credentials
Basic
base64
:
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json