Tixstock Doesn't Hold Our Event
Please follow the instructions in the Add Event endpoint to populate Tixstock with your local event.
Please Note: If venue details are not supplied the event will be added as a "General Admission" event, as outlined in the Add Event Endpoint Documentation.
/**
*
* PHP code example for adding events to the Tixstock System.
*
*/
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://api.tixstock.com/v1/events/add/1');
$request->setRequestMethod('POST');
$body = new http\Message\Body;
$body->append('{
"name": "Dummy Event",
"currency": "GBP",
"commission_percentage_fee": null,
"datetime": "2021-09-27T13:55:00+0000",
"status": "Active",
"venue": {
"id": "1",
"name": "Old Trafford",
"address_line_1": "Sir Matt Busby Way",
"address_line_2": "Trafford",
"city": "Greater Manchester",
"state": "",
"postcode": "M16 0RA",
"country_code": "GB"
},
"use_tixstock_venue_details": 0,
"venue_details": [
{
"id": "1",
"name": "East Stand Lower",
"sections": [
{
"id": "1",
"name": "East Stand Lower A"
}
]
}
],
"performers": [
{
"id": "1",
"name": "Manchester United FC"
},
{
"id": "2",
"name": "Manchester City FC"
}
]
}');
$request->setBody($body);
$request->setHeaders(
array(
'Content-Type' => 'application/json',
'Authorization' => 'Bearer [Your Bearer Token]'
)
);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
Once you have added the event into Tixstock we will return your event data back to you with your internal event ID's.
{
"data": {
"id": "1",
"name": "Dummy Event",
"currency": "GBP",
"commission_percentage_fee": null,
"datetime": "2021-09-27T13:55:00+0000",
"status": "Active",
"venue": {
"id": "1",
"name": "Old Trafford",
"address_line_1": "Sir Matt Busby Way",
"address_line_2": "Trafford",
"city": "Greater Manchester",
"state": "",
"postcode": "M16 0RA",
"country_code": "GB"
},
"use_tixstock_venue_details": "false",
"venue_details": [
{
"id": "1",
"name": "East Stand Lower",
"sections": [
{
"id": "1",
"name": "East Stand Lower A"
},
]
}
],
"performers": [
{
"id": "1",
"name": "Manchester United FC"
},
{
"id": "2",
"name": "Manchester City FC"
}
],
},
"meta": {
"mode": "Production",
"type": "event.create",
"bearer_token_id": "[Your Bearer Token]",
"reseller_id": "[your reseller ID]",
"ip": "[your ip address]",
"request_id": "[Request IP to view in your reseller area]"
},
"message": "Event successfully created."
}