Tixstock Already Has Our Event In Its System
If you have already used our Get Events endpoint to check if your event is already in our system, and we have returned the same event data back to you, you can now proceed to add your event.
When adding your event to Tixstock, we need to make sure all of the event details match our own, this will help brokers, when searching our system to list tickets for your respective exchange.
Providing the details of the event match our own, our system in the background will map your event to ours. you will return a response like the below.
{
"data": {
"id": "94159864",
"name": "Norwich City FC vs Burnley FC Tickets",
"currency": "EUR",
"commission_percentage_fee": "10.00",
"datetime": "2020-05-09T14:00:00+0000",
"status": "Active",
"map_url": "https://upload.wikimedia.org/wikipedia/commons/8/81/AngelStadiumSchematic.svg",
"venue": {
"id": "7845665",
"name": "Carrow Road",
"address_line_one": "",
"address_line_two": "",
"city": "Norwich",
"state": "NFK",
"postcode": "NR1 1JE",
"country_code": "GB"
},
"use_tixstock_venue_details": "false",
"venue_details": [
{
"id": "1234121",
"name": "Away Fan Section",
"sections": [
{
"id": "241231",
"name": "Away Fan Section 21"
},
{
"id": "241121",
"name": "Away Fan Section 22"
},
{
"id": "241011",
"name": "Away Fan Section 23"
}
]
}
],
"performers": [
{
"id": "5642621",
"name": "Norwich City FC"
},
{
"id": "5642912",
"name": "Burnley FC"
}
],
"category": {
"name": "Football",
"upcoming_events": 908,
"parent": {
"name": "Sport",
"parent": []
}
}
},
"meta": {
"mode": "Production",
"type": "event.create",
"request_id": "57aeee35c98205091e18d1140e9f38cf"
},
"message": "Event successfully added."
}
Please view the Add Event endpoint for more details on the required fields.
From here you will then be able to search our "Get Events" endpoint again, this time using your internal event id, this will show you a "mapped_status" of "true" if the event successfully maps to the event already in the Tixstock System.
/*
*
* PHP code example for getting events from the Tixstock System.
*
*/
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('https://api.tixstock.com/v1/events/get?
event_id=94159864
');
$request->setRequestMethod('GET');
$request->setHeaders(
array(
'Content-Type' => 'application/json',
'Authorization' => 'Bearer [Your Bearer Token]'
)
);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
{
"data": {
"id": "94159864",
"name": "Norwich City FC vs Burnley FC Tickets",
"currency": "EUR",
"commission_percentage_fee": "10.00",
"datetime": "2020-05-09T14:00:00+0000",
"status": "Active",
"map_url": "https://upload.wikimedia.org/wikipedia/commons/8/81/AngelStadiumSchematic.svg",
"venue": {
"id": "7845665",
"name": "Carrow Road",
"address_line_one": "",
"address_line_two": "",
"city": "Norwich",
"state": "NFK",
"postcode": "NR1 1JE",
"country_code": "GB"
},
"use_tixstock_venue_details": "false",
"venue_details": [
{
"id": "1234121",
"name": "Away Fan Section",
"sections": [
{
"id": "241231",
"name": "Away Fan Section 21"
},
{
"id": "241121",
"name": "Away Fan Section 22"
},
{
"id": "241011",
"name": "Away Fan Section 23"
}
]
}
],
"performers": [
{
"id": "5642621",
"name": "Norwich City FC"
},
{
"id": "5642912",
"name": "Burnley FC"
}
],
"category": {
"name": "Football",
"upcoming_events": 908,
"parent": {
"name": "Sport",
"parent": []
}
}
},
"meta": {
"mode": "Production",
"type": "event.create",
"request_id": "eccbc87e4b5ce2fe28308fd9f2a7baf3"
},
"message": "Event successfully added."
}
Providing the event maps to us successfully we will send you any changes to the event via the "Update Event" webhook in order to keep your system up to date with our data.