Any questions

We are happy to help!

Question about Gecko Booking?

If you are unsure whether Gecko Booking is right for you, or if you have other questions, we would love to hear from you!

All good!
Please enter your name.
All good!
Please enter your email.
All good!
All good!
Please enter your question.

Fields marked with an * are required


Guides

Trin for trin-vejledninger til opsætning og brug af systemet.

Guides - Cash register: Completed sale - per line item

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:

  • a receipt is completed in the cash register
  • a receipt is refunded, so that a new receipt is created

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:

  • [cashRegisterId] is replaced with the unique Id of the cash register in which the sale was completed.
  • [cashRegisterName] is replaced with the name of the cash register in which the sale was completed.
  • [tellerId] is replaced with the unique Id of the employee who was selected as teller for the sale.
  • [tellerName] is replaced with the name of the employee who was selected as teller for the sale.
  • [tellerNo] is replaced with the number, if one is set, of the employee who was selected as teller for the sale.
  • [receiptId] is replaced with the unique Id of the sale, the receipt Id.
  • [receiptDate] is replaced with the date of the sale in the format DD/MM-YYYY.
  • [receiptDate_YYYY-MM-DD] is replaced with the date of the sale in the format YYYY-MM-DD.
  • [receiptTid] is replaced with the time of the sale in the format HH:MM:SS.
  • [receiptDateTime] is replaced with the date and time of the sale in the format DD/MM-YYYY HH:MM:SS.
  • [lineId] is replaced with the unique Id of the order line.
  • [itemId] is replaced with the unique Id of the line's selected item.
  • [itemNo] is replaced with the item number of the line's selected item.
  • [itemName] is replaced with the name of the line's selected item.
  • [itemCount] is replaced with the quantity on the line.
  • [itemPrice] is replaced with the line's unit price.
  • [itemDiscount] is replaced with the line's discount as an amount. If the discount is given as a percentage, it is converted to an amount.
  • [itemPriceTotal] is replaced with the line's total price including VAT.
  • [itemPriceExVat] is replaced with the line's unit price excluding VAT.
  • [itemPriceTotalExVat] is replaced with the line's total price excluding VAT.
  • [itemGroupId] is replaced with the unique Id of the item group of the line's item.
  • [itemCategory] is replaced with 'Service' or 'Product', depending on how the line's item group is marked.
  • [employeeId] is replaced with the unique Id of the employee selected on the line.
  • [employeeName] is replaced with the name of the employee selected on the line.
  • [employeeNo] is replaced with the number, if one is set, of the employee selected on the line.

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:


 


Try a Free and Non-Binding Demo of Gecko Booking & Administration

Fill out the form, and you will receive a demo as soon as possible.

All good!
Please enter the company name.
All good!
Please enter your phone number.
All good!
Please enter your name.

Fields marked with an * are required