# Order-and-Pay

HTML: https://www.app2email.com/docs/api/order-and-pay · Index: https://www.app2email.com/docs/api/llms.txt

A product catalog with its own order page: customers order from WhatsApp or the web for pickup or delivery, pay online or at the counter, and collect with a QR code. Orders are managed in the dashboard and the counter app; these events tell your system what happens to an order.

| Method | Path | Summary | Scope | Sandbox key |
| --- | --- | --- | --- | --- |
| GET | `/v1/{number}/shop` | [The shop: on or off, open now, the order page, counts and limits](https://www.app2email.com/docs/api/order-and-pay/get-shop.md) | `orders:manage` | reads |
| GET | `/v1/{number}/shop/settings` | [Every setting of the shop, as the shop uses it](https://www.app2email.com/docs/api/order-and-pay/get-shop-settings.md) | `orders:manage` | reads |
| PUT | `/v1/{number}/shop/settings` | [Change settings of the shop](https://www.app2email.com/docs/api/order-and-pay/update-shop-settings.md) | `orders:manage` | refused |
| GET | `/v1/{number}/shop/categories` | [The categories of the catalog](https://www.app2email.com/docs/api/order-and-pay/list-shop-categories.md) | `orders:manage` | reads |
| GET | `/v1/{number}/shop/items` | [Search and filter the products](https://www.app2email.com/docs/api/order-and-pay/list-shop-items.md) | `orders:manage` | reads |
| POST | `/v1/{number}/shop/items` | [Add a product](https://www.app2email.com/docs/api/order-and-pay/create-shop-item.md) | `orders:manage` | refused |
| GET | `/v1/{number}/shop/items/{id}` | [One product with variants, option groups and pictures](https://www.app2email.com/docs/api/order-and-pay/get-shop-item.md) | `orders:manage` | reads |
| PUT | `/v1/{number}/shop/items/{id}` | [Change a product: only the keys sent change](https://www.app2email.com/docs/api/order-and-pay/update-shop-item.md) | `orders:manage` | refused |
| DELETE | `/v1/{number}/shop/items/{id}` | [Archive a product](https://www.app2email.com/docs/api/order-and-pay/archive-shop-item.md) | `orders:manage` | refused |
| POST | `/v1/{number}/shop/items/{id}/stock` | [Set or change the stock of a product](https://www.app2email.com/docs/api/order-and-pay/set-shop-stock.md) | `orders:manage` | refused |
| POST | `/v1/{number}/shop/items/{id}/sold_out` | [Mark a product sold out for a while, or back](https://www.app2email.com/docs/api/order-and-pay/set-shop-sold-out.md) | `orders:manage` | refused |
| GET | `/v1/{number}/shop/orders` | [The orders, newest first](https://www.app2email.com/docs/api/order-and-pay/list-shop-orders.md) | `orders:manage` | reads |
| POST | `/v1/{number}/shop/orders` | [Place an order for a customer](https://www.app2email.com/docs/api/order-and-pay/create-shop-order.md) | `orders:manage` | refused |
| GET | `/v1/{number}/shop/orders/{id}` | [One order with lines, payment, next steps and history](https://www.app2email.com/docs/api/order-and-pay/get-shop-order.md) | `orders:manage` | reads |
| POST | `/v1/{number}/shop/orders/{id}/action` | [Move an order on, change its time, cancel or decline it](https://www.app2email.com/docs/api/order-and-pay/update-shop-order.md) | `orders:manage` | refused |
| POST | `/v1/{number}/shop/orders/{id}/refund` | [Refund an order that was paid online](https://www.app2email.com/docs/api/order-and-pay/refund-shop-order.md) | `orders:manage` | refused |
| POST | `/v1/{number}/shop/quote` | [Price a cart: total, problems, times and ways to pay](https://www.app2email.com/docs/api/order-and-pay/quote-shop-order.md) | `orders:manage` | reads |
| GET | `/v1/{number}/shop/report` | [The shop's figures for a range of days](https://www.app2email.com/docs/api/order-and-pay/get-shop-report.md) | `orders:manage` | reads |
| POST | `/v1/{number}/shop/link` | [A customer's personal link to the order page](https://www.app2email.com/docs/api/order-and-pay/get-shop-order-link.md) | `orders:manage` | reads |
