Test mode
Build your integration without touching real data or paying fees.
Create a test token (tixxy_test_...) while you build. A test token:
- creates orders and tickets marked as test data (
"livemode": false); - only sees test orders and tickets, never real ones (events and ticket types are shared);
- pays no fees and needs no direct debit mandate;
- does not use stock; test tickets are never valid at the entrance;
- never emails bookers;
- cannot change events, ticket types or promo codes, because those are real data.
Webhook endpoints created with a test token only receive test events.
Telling test and live apart
Tokens start with tixxy_test_ or tixxy_live_. Responses tell you too: the token (GET /v1/me), orders, tickets, the sales summary and webhook events all carry a livemode field.
curl https://api.tixxy.nl/v1/me \
-H "Authorization: Bearer tixxy_test_..."{
"object": "token",
"livemode": false
}Check livemode in your webhook handler as well, so test events never end up in your production data.
Trying it out
With a test token you can go through the whole flow without side effects:
- List events and ticket types with
GET /v1/eventsandGET /v1/ticket-types. These are your real events. - Create an order with
POST /v1/orders. You get a test order with test tickets and no fee, and the booker gets no email. - Read it back with
GET /v1/ordersorGET /v1/tickets. Only your test orders and tickets are listed.
Going live
Switch to a live token when your integration is ready:
- Create a live token (
tixxy_live_...) with the scopes you need. See authentication and scopes. - A live token with
orders:writeneeds the fee terms accepted when it is created and an active direct debit mandate. See creating orders. - Endpoints created with a test token keep receiving only test events. Create the endpoints for your live integration with the live token.