Subscribing to events

Subscribe to events for a given order

You can subscribe to ordering events for a given order by creating notifications against an order. When we send the order to POS we will send the result to the notifications you have created.

We currently only support webhooks, where we will POST a JSON payload to the provided http URI.

Please contant our team if you wish to subscribe to events for all orders without calling this endpoint.

Webhooks

To create a webhook

// POST /ordering/v3/order/{orderId}/notifications
{
    "type": "webhook",
    "uri": "https://yourdomain.com/path/to/webhook/for/order"
}
// 201 empty

The notifications you receive are defined in our Sending to POS documentation