Upload Coupon Codes

Adds a batch of coupon codes to the available pool of a unique-code variant. Requires a producer access token for the application.

Send up to 5,000 codes per request, each up to 255 characters. A code already on this variant is skipped, not treated as an error, and the response reports how many were accepted and how many skipped. A code already used on a different variant in the same store fails the whole request, so a bad file never takes over another variant's codes.

The variant must belong to a unique_code product, and the product must not be published. To replace the pool instead of adding to it, use Replace Coupon Codes.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The client ID of the application.

uuid
required

The ID of the product.

uuid
required

The ID of the variant.

Body Params
codes
array of strings
required
length between 1 and 5000

The codes to add. Duplicates within the request are counted once.

codes*
Responses

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