Skip to content

Batch update draft promo code definitions

Request

You can update up to 50 draft promo code definitions in one request. You must send the complete information for each definition.

Security
ZephrHmacHttp
Bodyapplication/jsonrequired
promo_code_definitionsArray of objects, [ 1 .. 50 ] items(batch-promo-code-definition-item)required

Your list of promo codes to update. Include 1 to 50 codes, and they must all be in draft status.

{ "promo_code_definitions": [ { … } ] }

Responses

OK. Your batch was processed. Review the details to see which items completed.

Headers
any
Bodyapplication/json
messagestringrequired

Human-readable summary of the batch result.

Example:"2 promo code definitions created successfully"
failuresArray of objects(promo-code-definition-batch-item-failure)required

Details about why each item failed. Items not listed here were processed successfully.

Response
{ "message": "2 promo codes have been updated successfully.", "failures": [] }