Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Cash register: Completed sale - per line item
-
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
- 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 - per line item
This webhook can be used to send separate data per order line from sales completed in the cash register system. The webhook runs once for each order line on the receipt 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: |
{
"cashRegisterId": [cashRegisterId],
"cashRegisterName": "[cashRegisterName]",
"tellerId": "[tellerId]",
"tellerName": "[tellerName]",
"tellerNo": "[tellerNo]",
"receiptId": "[receiptId]",
"receiptDate": "[receiptDate]",
"receiptDate_YYYY-MM-DD": "[receiptDate_YYYY-MM-DD]",
"receiptTid": "[receiptTid]",
"receiptDateTime": "[receiptDateTime]",
"lineId": [lineId],
"itemId": [itemId],
"itemNo": "[itemNo]",
"itemName": "[itemName]",
"itemCount": [itemCount],
"itemPrice": "[itemPrice]",
"itemDiscount": "[itemDiscount]",
"itemPriceTotal": "[itemPriceTotal]",
"itemPriceExVat": "[itemPriceExVat]",
"itemPriceTotalExVat": "[itemPriceTotalExVat]",
"itemGroupId": "[itemGroupId]",
"itemCategory": "[itemCategory]",
"employeeId": "[employeeId]",
"employeeName": "[employeeName]",
"employeeNo": "[employeeNo]"
}
![]() |
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. The customer's order totals, customer tags and bookings are not available in this webhook. |
The replacement codes in the example above will be replaced with the following data when the specific webhook runs:
If a line has the quantity 0, the quantity is set to 1 and the prices are set to 0, except the unit price [itemPrice] and the discount [itemDiscount], which are empty. |
In addition to the above, you can also use replacement codes from the following category to build your own: |
