Ticket Number Webhooks
This webhook can only be created by using either the POST/Create Ticket and PUT/Update Ticket endpoints. Use the SellTreez APIs - Developer's Portal to learn how to set up a request and create a Ticket Number webhook using the listener_url field.
Triggering Events
- Creation of the ticket.
- Fulfillment status of the ticket changes.
- When details of the ticket are changed. ie. Products and discounts have been added to the ticket.
- Completion of the ticket.
Sample Content of Webhook Response
{
"event_type":"TICKET",
"data":{
"type":"PICKUP",
"ticket_id":"dc174f3c-5e7c-4528-84da-c17be2f6c8ca",
"order_number":"DZB9Z3",
"external_order_number":null,
"order_source":"ECOMMERCE",
"created_by_employee":{
"employee_id":"Default",
"name":"Default",
"role":"employee"
},
"packed_by_employee":null,
"customer_id":5016,
"ticket_patient_type":"ADULT",
"cash_register_id":null,
"order_status":"AWAITING_PROCESSING",
"payment_status":"UNPAID",
"payment_authorization":false,
"date_created":"2022-11-02T17:28:57.000-07:00",
"last_updated_at":"2022-11-02T17:28:58.000-07:00",
"date_closed":null,
"post_tax_pricing":false,
"sub_total":13.0,
"tax_total":16.62,
"discount_total":-15.0,
"total":29.62,
"ticket_note":null,
"refund_reason":null,
"original_ticket_id":null,
"delivery_address":null,
"delivery_route":null,
"scheduled_date":null,
"items":[
{
"product_id":"83e1a132-ed63-40da-951a-cdb4183acc86",
"barcodes":[
"123ABC"
],
"inventory_barcodes":[
"glf"
],
"location_name":"WJ",
"inventory_type":"ADULT",
"inventory_id":"123",
"inventory_batch_id":"94ODW",
"size_id":"83e1a132-ed63-40da-951a-cdb4183acc86",
"product_size_name":"CARBON FIBER",
"product_type":"FLOWER",
"product_brand":"BLUE CHIP GENETICS",
"product_subtype":"PRE-PACK",
"quantity":1.0,
"price_total":29.62,
"price_sell":13.0,
"product_unit":"GRAMS",
"product_amount":3.5,
"state_tracking_uom":null,
"apply_automatic_discounts":true,
"POS_discounts":[
],
"discounts":[
{
"id":null,
"discount_title":"TREEZ",
"discount_amount":15.0,
"discount_method":"DOLLAR",
"savings":15.0,
"discount_category":"AUTOMATIC_DISCOUNT",
"cart":false
}
],
"tax":[
{
"id":"65b889d6-22f3-40c1-b6ad-e65fb8388fdc",
"rate":0.15,
"tax_name":"Excise Tax",
"amount":12.15
},
{
"id":"7d22b4bf-3b56-42d0-8ae3-c8dc70e9fdb9",
"rate":0.1,
"tax_name":"City Tax",
"amount":1.3
},
{
"id":"1d5f46b5-150b-4003-b534-bc74d17e5efc",
"rate":0.12,
"tax_name":"Dynamic Sales Tax",
"amount":3.17
}
],
"price_target":null,
"price_target_note":null
}
],
"fees":[
],
"payments":[
],
"reward_eligible":true,
"reward_points_earned":0,
"reward_points_used":0,
"purchase_limit":{
"concentrated":"0/8",
"non_concentrated":"7/28.5",
"plant":"0/6"
},
"employee_id":null,
"cash_drawer_name":null,
"revenue_source":null
}
}
Updated about 2 years ago