Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Cash register: Cash reconciliation
-
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: Cash reconciliation
This webhook can be used to send data when a cash register is closed and the cash reconciliation is settled. The webhook runs once each time a cash register is closed. 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]",
"cashRegisterStatementId": [cashRegisterStatementId],
"cashRegisterStatementPeriod": {
"from": "[cashRegisterStatementPeriodFrom]",
"to": "[cashRegisterStatementPeriodTo]"
},
"salesTotalProducts": "[salesTotalProducts]",
"salesTotalServices": "[salesTotalServices]",
"cashRegisterClosedBy": "[cashRegisterClosedBy]",
"cashRegisterClosedNote": "[cashRegisterClosedNote]",
"cashRegisterBalancePrimo": "[cashRegisterBalancePrimo]",
"cashRegisterOpenedDifference": "[cashRegisterOpenedDifference]",
"cashRegisterBalanceUltimo": "[cashRegisterBalanceUltimo]",
"cashRegisterClosedDifference": "[cashRegisterClosedDifference]",
"itemGroups": [
[itemGroup_begin]
{
"itemGroupId": [itemGroupId],
"itemGroupName": "[itemGroupName]",
"itemGroupDebet": "[itemGroupDebet]",
"itemGroupKredit": "[itemGroupKredit]",
"itemGroupVat": "[itemGroupVat]",
"itemGroupCurrency": "[itemGroupCurrency]"
}[lineBreak]
[itemGroup_end]
],
"paymentTypes": [
[paymentType_begin]
{
"paymentTypeId": [paymentTypeId],
"paymentTypeName": "[paymentTypeName]",
"paymentTypeDebet": "[paymentTypeDebet]",
"paymentTypeKredit": "[paymentTypeKredit]",
"paymentTypeVat": "[paymentTypeVat]",
"paymentTypeCurrency": "[paymentTypeCurrency]"
}[lineBreak]
[paymentType_end]
],
"onlinePaymentTypes": [
[onlinePaymentType_begin]
{
"onlinePaymentTypeId": [onlinePaymentTypeId],
"onlinePaymentTypeName": "[onlinePaymentTypeName]",
"onlinePaymentTypeDebet": "[onlinePaymentTypeDebet]",
"onlinePaymentTypeKredit": "[onlinePaymentTypeKredit]",
"onlinePaymentTypeVat": "[onlinePaymentTypeVat]",
"onlinePaymentTypeCurrency": "[onlinePaymentTypeCurrency]"
}[lineBreak]
[onlinePaymentType_end]
],
"variousValues": [
[various_begin]
{
"variousTypeName": "[variousTypeName]",
"variousDebet": "[variousDebet]",
"variousKredit": "[variousKredit]",
"variousVat": "[variousVat]"
}[lineBreak]
[various_end]
]
}
The replacement codes in the example above will be replaced with the following data when the specific webhook runs. Amounts are formatted with 2 decimals (for example 40,000.00), except debit, credit and VAT in the blocks, which are shown without formatting:
|