Replace Coupon Codes

Replaces the whole pool of available coupon codes of a unique-code variant with a new batch. Codes that were already redeemed are left untouched. Requires a producer access token for the application.

The rules match Upload Coupon Codes: up to 5,000 codes of up to 255 characters, a code already on this variant is skipped and counted, and a code used on a different variant in the same store fails the request. The variant must belong to a unique_code product, and the product must not be published.

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 new pool of available codes. Every unredeemed code not in this list is removed.

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