List codes in a batch Coming soon
GET/v1/offers/{id}/code_batches/{batch_id}/codes
Returns the codes and their status. Send Accept: text/csv for the whole batch as one CSV file, or page through JSON with limit and cursor. The batch must be ready.
holiday-codes.csv
code,status,used_at,order_id
HOLIDAY-7K2P9Q,available,,
HOLIDAY-M4XW8T,used,2026-12-02T15:41:09Z,d27a6c90-5e3b-4f18-b9a4-6c0e81f2d375
HOLIDAY-3RZB6N,available,,A code's status is available, reserved (held by a checkout), used or void.
Permissions: Secret key with offers:write.
Path parameters#
idstring (uuid)Requiredbatch_idstring (uuid)Required
Query parameters#
limitintegerMin 1Max 100Default 25cursorstringnext_cursorfrom the previous page.
Response fields#
Returns 200 with list of PromoCode
dataarray of PromoCodeShow attributesPromoCode
codestringstatusstring
has_morebooleanTrue when another page exists.next_cursorstringNullablePass ascursorto get the next page.
Error descriptions#
404Not found
not_found
No such offer or batch.
409Conflict
invalid_state
The batch is still generating. Try again in a few seconds.
Any endpoint can also return the common errors.