curl --request GET \
--url https://api.nuwebgroup.com/webhooks/order-failed \
--header 'Authorization: Bearer <token>'{
"company": {
"id": 1,
"name": "Tony's Tickets"
},
"order": {
"id": 1,
"reference": "RO3PMNGE1N",
"status": "expired",
"total": 110,
"paid": 110
},
"currency": {
"symbol": "£",
"code": "GBP"
},
"customer": {
"id": 101,
"name": "John Doe",
"email": "[email protected]"
},
"billingAddress": {
"id": 923,
"addressLine1": "Cravendale Crescent",
"addressLine2": "Trevissome Park",
"city": "Truro",
"region": "Cornwall",
"country": "United Kingdom",
"postcode": "TR1 1RT"
},
"tickets": [
{
"id": 101,
"saleItemId": 1,
"customerId": 101,
"barcode": "AO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event A",
"name": "John Example"
},
{
"id": 102,
"saleItemId": 1,
"customerId": 101,
"barcode": "XO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event B",
"name": "[email protected]"
}
],
"seasonTickets": [
{
"id": 101,
"saleItemId": 1,
"customerId": 101,
"barcode": "AO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event A",
"name": "John Example"
}
],
"products": [
{
"id": 55,
"saleItemId": 2,
"customerId": 101,
"barcode": "BO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event A",
"name": "John Example"
}
],
"donations": [
{
"id": 12,
"saleItemId": 3,
"customerId": 101,
"barcode": "CO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event A",
"name": "John Example"
}
],
"fees": [
{
"id": 12,
"saleItemId": 3,
"customerId": 101,
"barcode": "CO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": null,
"eventName": null,
"name": "John Example"
}
],
"fulfilmentFees": [
{
"id": 12,
"saleItemId": 3,
"customerId": 101,
"barcode": "CO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": null,
"eventName": null,
"name": "John Example"
}
],
"dataCapture": [
{
"question_id": 1998,
"field_id": 1923,
"question": "What is your car registration?",
"answer": "TO23 NIL"
},
{
"question_id": 272,
"field_id": 1823,
"question": "What zones do you require access to?",
"answer": "Level 1, Underground Parking, VIP Garden"
}
]
}curl --request GET \
--url https://api.nuwebgroup.com/webhooks/order-failed \
--header 'Authorization: Bearer <token>'{
"company": {
"id": 1,
"name": "Tony's Tickets"
},
"order": {
"id": 1,
"reference": "RO3PMNGE1N",
"status": "expired",
"total": 110,
"paid": 110
},
"currency": {
"symbol": "£",
"code": "GBP"
},
"customer": {
"id": 101,
"name": "John Doe",
"email": "[email protected]"
},
"billingAddress": {
"id": 923,
"addressLine1": "Cravendale Crescent",
"addressLine2": "Trevissome Park",
"city": "Truro",
"region": "Cornwall",
"country": "United Kingdom",
"postcode": "TR1 1RT"
},
"tickets": [
{
"id": 101,
"saleItemId": 1,
"customerId": 101,
"barcode": "AO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event A",
"name": "John Example"
},
{
"id": 102,
"saleItemId": 1,
"customerId": 101,
"barcode": "XO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event B",
"name": "[email protected]"
}
],
"seasonTickets": [
{
"id": 101,
"saleItemId": 1,
"customerId": 101,
"barcode": "AO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event A",
"name": "John Example"
}
],
"products": [
{
"id": 55,
"saleItemId": 2,
"customerId": 101,
"barcode": "BO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event A",
"name": "John Example"
}
],
"donations": [
{
"id": 12,
"saleItemId": 3,
"customerId": 101,
"barcode": "CO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": 12,
"eventName": "Test Event A",
"name": "John Example"
}
],
"fees": [
{
"id": 12,
"saleItemId": 3,
"customerId": 101,
"barcode": "CO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": null,
"eventName": null,
"name": "John Example"
}
],
"fulfilmentFees": [
{
"id": 12,
"saleItemId": 3,
"customerId": 101,
"barcode": "CO5PZZGE1N",
"processingFee": 10,
"processingFeeTax": 2,
"customerProcessingFee": 10,
"resellerFee": 10,
"resellerFeeTax": 2,
"customerResellerFee": 10,
"price": 110,
"tax": 21,
"refunded": 0,
"eventId": null,
"eventName": null,
"name": "John Example"
}
],
"dataCapture": [
{
"question_id": 1998,
"field_id": 1923,
"question": "What is your car registration?",
"answer": "TO23 NIL"
},
{
"question_id": 272,
"field_id": 1823,
"question": "What zones do you require access to?",
"answer": "Level 1, Underground Parking, VIP Garden"
}
]
}