# Notification events

## New order

When a new order is created by the App, we will trigger a notification via the integration that you have implemented. There are two events that can mean that the order has been created: `ORDER_CREATED` or `ORDER_ACCEPTED`.
`ORDER_ACCEPTED` will be only sent if the merchant confirmed the order in the App (eg. on a provided tablet).

## Order status updates

The following event types can be sent when an order status is updated.

### Sent to the POS

| Order status event | POS mustsupport | Description |
|  --- | --- | --- |
| `ORDER_CREATED` | Yes | Order has been created on the App |
| `ORDER_ACCEPTED` | No | Order has been accepted by the merchant eg. on a tablet provided by the App |
| `ORDER_CANCELLED_BY_MERCHANT` | No | Order has been cancelled by the merchant. |
| `ORDER_CANCELLED_BY_CUSTOMER` | No | Order has been cancelled by the customer. |
| `ORDER_FULFILLED` | No | Order has been fulfilled. |


### Sent to the App

| Order status event | Mandatoryfor POS | Description |
|  --- | --- | --- |
| `ORDER_ACCEPTED` | Yes | Order has been accepted by the POS. |
| `ORDER_REJECTED` | Yes | Order has been rejected by the POS or POS failed to accept that order within 2 minutes. |
| `ORDER_BEING_PREPARED` | No | Order is being prepared. |
| `ORDER_READY` | Yes | Order is marked as ready by POS. |
| `ORDER_OUT_FOR_DELIVERY` | No | Order has been dispatched for delivery. |
| `ORDER_FULFILLED` | No | Order has been picked up by the customer and is fulfilled. |
| `ORDER_CANCELLED_BY_MERCHANT` | No | Order has been cancelled by the POS. |
| `ORDER_CANCELLED_BY_CUSTOMER` | No | Order has been cancelled by the customer. |


## Sample event


```json
{
  "type": "ORDER_ACCEPTED",
  "data": {
    "id": "2688fcf2-44dd-4c72-88ac-79d0910f2933",
    "uri": "https://api.tyro.com/connect/orders/2688fcf2-44dd-4c72-88ac-79d0910f2933",
    "resource": "order"
  }
}
```

Registering webhooks
For information on how to register for webhooks and how to interpret the webhook message. Documentation can be found here: [Webhooks](/docs/getting-started/notification-events/webhooks)