Update Ticket Webhook
When a broker updates a listing from within Tixstock, an update ticket webhook request will be sent to the reseller to notify them of the updates to the listing.
Post Data
The listing resource will be sent to the reseller including all information regarding the listing to be updated.
Example Request
{
"data": {
"id": "92312212",
"broker_id": "123123",
"ticket": {
"general_admission": "false",
"type": "Paper",
"allow_last_minute_sales": "false",
"split_type": "All Together",
"eticket": [],
"upload_later": "false"
},
"number_of_tickets_for_sale": {
"quantity_available": 3,
"quantity_sold": 0,
"display_quantity": 1,
"split_quantity": 0
},
"seat_details": {
"category": "Stalls",
"section": "Stalls",
"row": "B",
"first_seat": "11"
},
"face_value": {
"currency": "GBP",
"amount": "100"
},
"display_price": {
"currency": "GBP",
"amount": "180.00"
},
"proceed_price": {
"currency": "GBP",
"amount": "150.00"
},
"restrictions_benefits": {
"options": [],
"other": ""
},
"delivery": {
"type": "UPS",
"hand_delivered": "true",
"ready_shipped": "true",
"shipped_date_or_date_in_hand": "2020-03-10"
},
"event": {
"id": "9123123",
"name": "Jimmy Carr Dorking",
"currency": "GBP",
"commission_percentage_fee": "10.00",
"description": "Jimmy Carr Dorking",
"datetime": "2020-06-27T13:46:40+0000",
"status": "Active",
"venue": {
"name": "Dorking Halls",
"address_line_1": "",
"address_line_2": "",
"city": "Dorking",
"state": "SRY",
"postcode": "RH4 1SG",
"country_code": "GB"
},
"use_tixstock_venue_details": "true",
"venue_details": [],
"performers": [
{
"id": "10040",
"name": "Jimmy Carr"
}
]
},
"published_date": "2020-11-05T09:00:30+0000",
"proof_of_purchase": "",
"published": "true"
},
"meta": {
"type": "ticket.update"
}
}
Resellers JSON Response
It is required that resellers provide a valid JSON response back from the webhook request.
It is required that the reseller provide back the listing ID and the display price amount for the listing.
The display price will be stored against the listing, using the resellers event currency for the display price currency.
Success Response
{
"listing_id": "92312212",
"display_price": "390.50",
"success": true,
"message": "Ticket successfully updated."
}
Error Response
{
"listing_id": null,
"success": false,
"message": "Ticket failed to be updated.",
"errors": [
"Error message here"
]
}