Skip to main content

TurnoverPurchasedWebhook

The turnover purchased webhook is called when products are purchased at the cash register. Instead of using product IDs, it sends you all products of a single turnover group.

Details
TypeHTTP POST request with a JSON body to your URL
AfterImmediately after session at the cash register is completed.
Configuration variablesList of turnover group IDs that you would like to receive webhooks for
AuthenticationSignature in X-Signature header: Read more

Data Schema

{
sales: Record<string, number>
}

Sales for products within the turnover group are sent in an object with the product ID as key and the number of products of that type as a number.

Example POST Body

{
sales: {
"33": 5,
"89": 8
}
}

In this example, there were 5 sales of product 33 and 8 of product 89.