Skip to Content
Developers

Create an order

Create an order with tickets for one ticket type. Requires an `Idempotency-Key` header. The money is collected outside Tixxy; every ticket carries the regular Tixxy fee (not for test tokens).

POST
/orders

Create an order with tickets for one ticket type.

Requires an Idempotency-Key header. The money is collected outside Tixxy; every ticket carries the regular Tixxy fee (not for test tokens).

Authorization

http
headerAuthorizationBearer <token>

Request Body

application/json
  1. body

Create an order for one ticket type. Answers to the event's form fields are keyed by field key; ticket answers are given per ticket, in order.

ticket_type*string
Lengthlength <= 64
quantity*integer
Range1 <= value <= 50
booker*
answers?array<string>|null
tickets?array<>|null
event_days?array<>|null
external_reference?|
Lengthlength <= 255
send_confirmation?boolean|null

Response Body

OrderResource

application/json
  1. response
id*string
object*string
order_number*string
external_reference*string|null
event*string
livemode*boolean
status*string
payment_status*string|null
payment_method*string|null
source*string
Value in"api""import""manual""shop"
currency*string
subtotal*integer|null
discount*integer|null
administration_fee*integer|null
payment_method_fee*integer|null
total*integer|null
total_excl_vat*integer|null
vat*integer|null
promocode*string|null
language*string|null
booker?|null
answers?array<>
tickets*array<>
completed_at*string|null
cancelled_at*string|null
created_at*string|null
updated_at*string|null
Example Request
curl -X POST 'https://api.tixxy.nl/v1/orders' \  -H 'Content-Type: application/json' \  -d '{  "ticket_type": "string",  "quantity": 1,  "booker": {    "first_name": "string",    "last_name": "string",    "email": "user@example.com"  }}'
Example Response
{  "id": "string",  "object": "order",  "order_number": "string",  "external_reference": "string",  "event": "string",  "livemode": true,  "status": "string",  "payment_status": "string",  "payment_method": "string",  "source": "api",  "currency": "eur",  "subtotal": 0,  "discount": 0,  "administration_fee": 0,  "payment_method_fee": 0,  "total": 0,  "total_excl_vat": 0,  "vat": 0,  "promocode": "string",  "language": "string",  "booker": {    "first_name": "string",    "last_name": "string",    "email": "string",    "language": "string"  },  "answers": [    {      "field": "string",      "value": "string",      "display_value": "string"    }  ],  "tickets": [    {      "id": "string",      "object": "ticket",      "ticket_number": "string",      "kind": "product",      "order": "string",      "event": "string",      "ticket_type": "string",      "livemode": true,      "status": "string",      "currency": "eur",      "price": 0,      "price_excl_vat": 0,      "vat_rate": 0,      "tixxy_fee": 0,      "checked_in": true,      "checked_in_at": "string",      "personalisation_complete": true,      "holder": {        "name": "string",        "email": "string"      },      "answers": [        {          "field": "string",          "value": "string",          "display_value": "string"        }      ],      "issued_at": "string",      "created_at": "string",      "updated_at": "string"    }  ],  "completed_at": "string",  "cancelled_at": "string",  "created_at": "string",  "updated_at": "string"}