> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getanalog.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getanalog.ai/_mcp/server.

# Order Notification

POST 

Triggered when an order's status changes, particularly when a payment status is updated to PAID. 
This webhook provides comprehensive details about the order including store information, 
order status, payment status, items, and customer details.


Reference: https://docs.getanalog.ai/api-reference/webhooks/order-notification

## Request

### Payload

- `id` (string, required)
- `object` (string, required) — Should be "event"
- `api_version` (string, required)
- `created` (datetime, required)
- `type` (string, required)
- `data` (OrderPaymentStatusChangedData, required) — Contains the main 'object' with order details
- `order_detail_URL` (string, required) — The URL to fetch the order details

## Types

### OrderPaymentStatusChangedData

Contains the main 'object' with order details

- `object` (OrderResponseExtended, required) — The updated order object

### OrderResponseExtended

- `id` (string, required) — Unique identifier for the order
- `store` (StorePartialInfoWithAnalogID, required) — Store information associated with the order
- `customer` (CustomerBase, required) — Customer who placed the order
- `status` (enum, required) — Current status of the order
  - Allowed values: `PENDING`, `CUSTOMER_CANCELLED`, `STORE_CANCELLED`, `ACCEPTED`, `REJECTED`, `READY`, `FULFILLED`, `AUTO_ACCEPTED`
- `price` (integer, required) — Total price of the order in cents
- `tax` (integer, required) — Total tax amount in cents
- `items` (list of map from string to any, required) — List of items in the order
- `ready_by` (datetime, required) — Requested ready time for the order
- `created_at` (datetime, required) — Time when the order was created
- `is_read` (boolean, required) — Whether the order has been read
- `in_pos` (boolean, required) — Whether the order has been synced to POS
- `object` (string, required) — Usually "Order" for an order object
- `customer_comments` (string, optional) — Optional comments from the customer
- `ready_at` (datetime, optional) — Actual time when order was marked ready
- `completed_at` (datetime, optional) — Time when the order was completed
- `payment_status` (enum, optional) — Current status of the payment
  - Allowed values: `pending`, `failed`, `cancelled`, `paid`
- `payment_method` (enum, optional) — Method used for payment
  - Allowed values: `PAY_BY_LINK`, `PAY_IN_STORE`

### StorePartialInfoWithAnalogID

- `created_at` (datetime, required)
- `id` (string, required)
- `name` (MultilingualText, required)
- `external_id` (string, optional)

### CustomerBase

- `name` (string, required)
- `phone` (string, required)

### MultilingualText

- `translations` (map from string to string, required) — Translations for different languages