Promo Codes​
Endpoints to interact with promo codes
Operations​
Get a list of promo codes​
Authorizations​
Parameters​
Query Parameters
Filter by status
"active""inactive""soldOut""expired""active"Filter by type
"specific""percentage""flat""specificTag""percentage"Responses​
Promo code list
Create promo code​
Get promo code by ID​
Delete promo code​
Update promo code​
Update promo code by id in request body
Authorizations​
Parameters​
Path Parameters
Promo code ID
"int64"Request Body​
Responses​
Promo code updated
Bulk delete promo codes​
Upload promo code import file (step 1)​
Upload CSV/TXT for a two-step import. Returns importId, column headers or synthetic names, preview rows, and row count. File is stored in private storage until confirm or expiry.
Authorizations​
Request Body​
CSV or TXT file
"binary"Treat first row as column headers
falseMax preview rows (1–100)
20Responses​
Upload result
Confirm promo code import (step 2)​
Apply column mapping and defaults, create or optionally update promo codes (or stored value codes when defaults.type is "storedValue") from the staged CSV. If any row fails (failed > 0), the upload session is kept so you can call confirm again with the same importId (e.g. set overwriteDuplicate to true after duplicate errors). On full success (failed === 0), the staged file and session are removed.
Authorizations​
Parameters​
Path Parameters
Session id returned by POST /api/v2/promo-codes/import/upload
"uuid"Request Body​
Responses​
Import result
Export filtered promo codes to CSV (zipped)​
Creates a UTF-8 CSV inside a ZIP, uploads to private storage, and optionally emails a Global Export Manager download link. Filters mirror v1 promoCodeManager apiExportCsv: search on code and codeGroup, expired toggles rows with activeTo before now versus on or after now, excludes storedValue types.
Authorizations​
Parameters​
Query Parameters
Search text (code and codeGroup).
"SUMMER"If true, rows where activeTo < now; if false, activeTo >= now. Omit or false for active export.
falsefalseRecipient for download link email; if omitted, v1-style defaults apply.
"reports@example.com""email"Responses​
Export created; use downloadUrlPath with site origin or email link
Get a list of promo codes​
Authorizations​
Parameters​
Query Parameters
Filter by status
"active""inactive""soldOut""expired""active"Filter by type
"specific""percentage""flat""specificTag""percentage"Responses​
Promo code list
Get promo code by ID​
Create promo code​
GET /api/v2/promo-code/{id}/applies-to-ticket-type​
GET /api/v2/promo-code/{id}/calculate-discount​
Authorizations​
Parameters​
Path Parameters
ID of promo code to use
"int64"Query Parameters
Ticket type to apply discount to
"int64"Original price
"float"Already applied amount
"int64"