Create or upsert vouchers in bulk
Creates or updates up to 50 vouchers in a single request. Each record is matched on voucher_id: existing vouchers are updated, new ones are created. Vouchers can be assigned to a specific customer_id or be open to any customer. Processing is asynchronous.
Parameters
Header Parameters
[Authentication] Required API key.
"^[a-zA-Z0-9-]{20,64}$"Request Body
Responses
Objects have been sent to the processing queue. Partially invalid objects are rejected and returned in rejected_items.
Create or upsert vouchers in bulk Creates or updates up to 50 vouchers in a single request. Each record is matched on voucher_id: existing vouchers are updated, new ones are created. Vouchers can be assigned to a specific customer_id or be open to any customer. Processing is asynchronous. POST /v1/vouchers bulkCreateVouchers Vouchers spm-api-key [Authentication] Required API key. Objects have been sent to the processing queue. Partially invalid objects are rejected and returned in rejected_items. All objects are invalid, or the request body is not an array, or the array exceeds the maximum allowed size Server error - Internal processing failure