Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Online paid/cancelled orders with customer attached
-
Guides
- General
- Booking
- Event
- Cash Register Add-On
- Gift Voucher Add-On
- Marketing Add-On
- Record Add-On
- Form Add-On
- Documents
- Online Payment Add-On
- SMS Add-On
- Integrations
- For developers
- API and webhooks
- REST API
- Webhooks
- Scheduled webhooks
- Create a webhook
- Event webhooks
- Booking: Create/edit/delete
- Customer: Newsletter subscribe/unsubscribe
- Reward program: Balance update
- Cash register: Completed sale
- Cash register: Completed sale - per line item
- Customer: Master data updated
- Cash register: Cash reconciliation
- Online paid/cancelled orders with customer attached
- Work hours: Create/edit/delete work hour
- Event: Create/edit/delete
- Event participant: Sign up/cancel/edit
- Questionnaire: Finish/edit
- Voucher: Completed transaction
- SSO - Single Sign On
- API and webhooks
Online paid/cancelled orders with customer attached
This webhook can be used to send data when an online order with an attached customer is paid or cancelled. The webhook runs when:
The webhook is added to a queue that is processed every 5 minutes. It can therefore take up to about 5 minutes before the webhook is sent. Example of JSON that can be sent: |
{
"orderId": [orderId],
"orderDateTime": "[orderDateTime]",
"orderStatusId": [orderStatusId],
"orderStatusName": "[orderStatusName]",
"orderPaid": [orderPaidShow_begin]true[orderPaidShow_end][noorderPaidShow_begin]false[noorderPaidShow_end],
"orderTotalAmount": "[orderTotalAmountRaw]",
"orderPgwTransact": "[pgwTransact]",
"orderLines": [
[each_orderLine_begin]
{
"itemNo": "[itemNo]",
"itemName": "[itemName]",
"itemCount": "[itemCount]",
"orderLineTotal": "[orderLineTotal]"
},
[each_orderLine_end]
{}
],
"customerId": [customerId],
"customerName": "[customerName]",
"customerEmail": "[customerEmail]"
}
![]() |
The webhook only runs for orders with an attached customer. Orders without a customer, for example gift card purchases in the minishop, do not trigger this webhook. Changes made through the API do not trigger webhooks either. |
The following replacement codes are specific to this webhook and can be used in addition to those in the example:
|
In addition to the replacement codes above, you can freely use replacement codes from the following categories to build your own data: |
