Once you have set up your endpoint (the catch URL) you are then able to set up subscriptions to certain events. Currently, Ticketsolve has three separate webhooks events, these being:
- order.created
- shows.order.created
- event.order.created
Each of these webhook events have different data within them meaning that you can push different data from Ticketsolve depending on what event your endpoint has subscribed to. Each event is currently triggered when an order is completed. Over the coming months, we will be adding additional webhook events to Ticketsolve which will expand the capabilities of our webhooks integrations.
Data Payload examples
Below we have listed example data payloads for each one of the webhook events.
order.creates
This is triggered when a new order has been created.
Example Root Schema
{
"object": "event",
"type": "order.created",
"data": {
"object": {
"id": "142280913",
"object": "order",
"order_type": "boxoffice",
"total": 32,
"amount_due": "0.0",
"created_on": "2022-11-07T17:32:26.000+00:00",
"created_by": "tsadmin",
"tags": "active_benefit ticketoffice",
"location": "No Location",
"description": "Sarah Millican - 30 Nov 2022 - 20:00/Royal Theatre - #2 @ 12.0\nSupport Us - #1 @ 10.0\n\nTotal: 32.0\nTickets: 2\nDue: 0.0",
"customer_comment": "STUB REMINDER - WILL NEED TO BE SANITIZED",
"customer": {
"object": {
"id": "132831712",
"object": "person",
"email_address": "nstevenson@ticketsolve.com",
"opt_in_status": true,
"company": "",
"name": "Mr Nick Stevenson",
"first_name": "Nick",
"last_name": "Stevenson",
"tags": "2ormore alison_19 andrew derby emma20 helen joe john luctag maeve mailchimptest mailchimp_imported mary2018 oldham20 rachel2015 real shakedown01_04 siobhan siobhan19 summer2022 this ucas vipcustomres xmas",
"phone": "07837263839",
"mobile": "",
"address": {
"address_line_1": "123 London Road",
"address_line_2": "Test",
"city_town": "Cardiff",
"region": "Dublin",
"post_code": "CF54 6GR",
"country": "Ireland",
"full_address": "123 London Road, Test, Cardiff, CF54 6GR, Dublin"
},
"aggregates": {
"number_of_orders": 523,
"number_of_shows": 71,
"number_of_events": 213,
"total_revenue": "23060.65",
"first_purchase": "2015-04-21",
"last_purchase": "2022-11-07"
}
}
},
"line_items": {
"object": "list",
"data": [
{
"object": {
"id": "309132723",
"object": "line_item",
"type": "ticket",
"product_id": "23498004",
"category": "Comedy",
"name": "Sarah Millican",
"quantity": 1,
"price": 10,
"discount": 1,
"total": 9,
"tags": "",
"description": "Sarah Millican - 30 Nov 2022 - 20:00/Royal Theatre - #1 @ 10.0",
"variant_id": "128395329",
"checkin_code": "UQE2BK7L1G",
"metadata": {
"comment": "",
"number": 2,
"price_type": "Full",
"row": "H",
"section": "Stalls Left",
"venue_layout_name": "Main Auditorium",
"venue_name": "Royal Theatre "
}
}
},
{
"object": {
"id": "309132724",
"object": "line_item",
"type": "ticket",
"product_id": "23498004",
"category": "Comedy",
"name": "Sarah Millican",
"quantity": 1,
"price": 10,
"discount": 1,
"total": 9,
"tags": "",
"description": "Sarah Millican - 30 Nov 2022 - 20:00/Royal Theatre - #1 @ 10.0",
"variant_id": "128395329",
"checkin_code": "53KIRV9QM4",
"metadata": {
"comment": "",
"number": 3,
"price_type": "Full",
"row": "H",
"section": "Stalls Left",
"venue_layout_name": "Main Auditorium",
"venue_name": "Royal Theatre "
}
}
},
{
"object": {
"id": "309132833",
"object": "line_item",
"type": "product",
"product_id": "126463224",
"category": "product",
"name": "Support Us",
"quantity": 1,
"price": 10,
"discount": 0,
"total": 10,
"tags": "giftaid",
"description": "Support Us - #1 @ 10.0",
"variant_id": "126463224",
"checkin_code": "PR:BG3IXCQIRV",
"metadata": {
"comment": "Thank you for your donation! We need a new loop system"
}
}
},
{
"object": {
"id": "309132834",
"object": "line_item",
"type": "booking_charge",
"product_id": "booking_charge-1",
"category": "charges",
"name": "booking charge",
"quantity": 1,
"price": 2,
"discount": 0,
"total": 2,
"tags": "",
"description": "Ticket Levy - Sarah Millican",
"variant_id": "booking-charge"
}
},
{
"object": {
"id": "309132835",
"object": "line_item",
"type": "booking_charge",
"product_id": "booking_charge-1",
"category": "charges",
"name": "booking charge",
"quantity": 1,
"price": 2,
"discount": 0,
"total": 2,
"tags": "",
"description": "Ticket Levy - Sarah Millican",
"variant_id": "booking-charge"
}
}
]
},
"payments": {
"object": "list",
"data": [
{
"object": {
"id": "139119171",
"object": "payment",
"type": "cash_payment",
"amount": 32
}
}
]
},
"aggregates": {
"booking_charge": 4,
"donation": 10,
"product": 10,
"ticket": 10
}
}
}
}
show.order.created
This is triggered when one of the events within the show has had a new order.
Example Root Schema
{
"object": "event",
"type": "show.order.created",
"data": {
"object": {
"id": "23498004",
"object": "show",
"product_id": "23498004",
"category": "Comedy",
"name": "Sarah Millican",
"tags": "241 bentest bundle comedy comedybundle dara darrenshow donate esher festivalticketsolve fringefestival goldfilm lucy nick offthekerb paul sarahmillican scott scotttest shanly test ticketmaster tickets ticketsticketsolve tomtest training",
"home_url": "https://ticketsticketsolve.ticketsolve.com/shows/23498004/events",
"image_url": "https://dc40ra2rfm3rp.cloudfront.net/as-assets/variants/XEZUioP63EkM2eFp2tQgT3ME/8c6181c72fd5984f342eccd74d0259ce26878066285cc93d15e751b1650b709d",
"aggregates": {
"available": 283262,
"booked": 5010,
"revenue": 146526.89968299866,
"amount_due": 6508.206219476964
}
}
}
}
event.order.created
This is triggered when an event has had a new order.
Example Root Schema
{
"object": "event",
"type": "event.order.created",
"data": {
"object": {
"id": "128395329",
"object": "event",
"product_id": "23498004",
"category": "Comedy",
"name": "Sarah Millican",
"tags": "",
"home_url": "https://ticketsticketsolve.ticketsolve.com/shows/23498004/events",
"image_url": "https://ticketsticketsolve.ticketsolve.comhttps//dc40ra2rfm3rp.cloudfront.net/as-assets/variants/XEZUioP63EkM2eFp2tQgT3ME/8c6181c72fd5984f342eccd74d0259ce26878066285cc93d15e751b1650b709d",
"aggregates": {
"available": 1131,
"booked": 51,
"revenue": 560.1999998092651,
"amount_due": 69.99999980926513
}
}
}
}
Comments
Please sign in to leave a comment.