API referencePromo codes
Create a promo code
Create a promo code.
POST
Create a promo code.
httpheader
AuthorizationBearer <token>application/json- body
Create (POST) or update (PATCH) a promo code. Give either percent_off or
amount_off (integer cents). events and ticket_types limit where the
code applies; leave them empty for every event.
code*stringLength
length <= 255percent_off?|Range
0 <= value <= 100amount_off?|Range
0 <= valueusage_limit?|Range
1 <= valueis_active?booleanvalid_from?|Format
date-timevalid_until?|Format
date-timeevents?array<>ticket_types?array<>PromocodeResource
application/json- response
id*stringobject*stringcode*stringtype*stringpercent_off*number|nullamount_off*integer|nullcurrency*|Value in
"eur"nullusage_limit*integer|nulltimes_used*integeris_active*booleanis_valid*booleanvalid_from*string|nullvalid_until*string|nullevents*array<string>ticket_types*array<string>created_at*string|nullupdated_at*string|nullcurl -X POST 'https://api.tixxy.nl/v1/promocodes' \ -H 'Content-Type: application/json' \ -d '{ "code": "string"}'Example Response
{ "id": "string", "object": "promocode", "code": "string", "type": "string", "percent_off": 0, "amount_off": 0, "currency": "eur", "usage_limit": 0, "times_used": 0, "is_active": true, "is_valid": true, "valid_from": "string", "valid_until": "string", "events": [ "string" ], "ticket_types": [ "string" ], "created_at": "string", "updated_at": "string"}