Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Cash register: Revenue
Cash register: Revenue
This webhook can be used to receive revenue figures from the different cash registers every day. The webhook runs every day at a time of your choice, which is entered in steps of 5 minutes. In the settings you choose whether the revenue should apply to today or yesterday, and which cash registers to include (all or selected ones, optionally also adhoc). If adhoc purchases are included, they appear as id 0 in cashregisterid. Example of JSON that can be sent in this webhook: |
{
"cashRegistersWithRevenue": [
[each_cashRegister_begin]{
"cashregisterid": "[cashregisterid]",
"totalInclVat": "[TOTALINCLVAT]",
"totalExVat": "[TOTALEXVAT]"
}[lineBreak][each_cashRegister_end]
]
}
![]() |
The replacement codes [cashregisterid], [TOTALINCLVAT] and [TOTALEXVAT] must be written exactly as in the example, with the same uppercase and lowercase letters. [lineBreak] and the block markers are not case sensitive. |
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 1,234.50. The revenue is the sum of the order lines on the receipts with a receipt date in the selected period. Debtor payments, prepayments and invoice splits are not included. |
In addition to the above, you can also use replacement codes from the following category to build your own: |
