Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Cash register: Completed sale
-
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
Cash register: Completed sale
This webhook can be used to send data when a purchase is completed in the cash register system. The webhook runs when:
If "Customers who have said yes to newsletters" is selected on the webhook, it is only sent for receipts with a customer who has said yes to the newsletter. 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: |
{
"cashRegisterId": [cashRegisterId],
"cashRegisterName": "[cashRegisterName]",
"tellerId": "[tellerId]",
"tellerName": "[tellerName]",
"tellerNo": "[tellerNo]",
"receiptId": [receiptId],
"receiptDate": "[receiptDate]",
"receiptTid": "[receiptTid]",
"receiptDateTime": "[receiptDateTime]",
"receiptTotal": "[receiptTotal]",
"receiptWithoutVat": "[receiptWithoutVat]",
"receiptVatTotal": "[receiptVatTotal]",
"itemLines": [
[receiptLine_begin]
{
"lineId": [lineId],
"itemNo": "[itemNo]",
"itemName": "[itemName]",
"itemCount": "[itemCount]",
"itemPrice": "[itemPrice]",
"itemPriceTotal": "[itemPriceTotal]",
"itemPriceExVat": "[itemPriceExVat]",
"itemPriceTotalExVat": "[itemPriceTotalExVat]",
"employeeId": "[employeeId]",
"employeeName": "[employeeName]",
"employeeNo": "[employeeNo]"
}[lineBreak]
[receiptLine_end]
]
}
![]() |
Information about the customer (replacement codes from the Customer category) is only filled in if the receipt has a customer attached. Without a customer the codes are not replaced and remain as text in the data that is sent. Therefore use customer codes in quotation marks in the JSON example. |
The replacement codes in the example above will be replaced with the following data when the specific webhook runs:
|
In addition to the above, the following replacement codes from the receipt or invoice can also be used. They are only filled in if the receipt has the information in question (for example a debtor), otherwise they are empty. Texts from customer and debtor are HTML-escaped, so for example & becomes &.
|
In addition to the above, you can also use replacement codes from the following category to build your own: |
