Orders
The orders add-on lets the bot take a whole order in the conversation: product, options, quantity and address, then confirm it. The platform operator switches it on per company; without it, these endpoints answer 403 feature_not_enabled.
GET /api/v1/orders?status=new&from=2026-09-01T00:00:00Z&cursor=...
GET /api/v1/orders/{id}
POST /api/v1/orders/{id}/status { "status": "shipped" }
Statuses: new, confirmed, shipped, delivered, or cancelled. Scopes: orders:read to read, orders:write to change the status.
{
"id": "0192...", "number": 1001, "status": "new", "platform": "whatsapp",
"socialAccountId": "0192...", "conversationId": "0192...",
"customerName": "Mona Ali", "customerPhone": "201001234567", "zone": "Cairo", "address": "15 Tahrir St, Dokki",
"items": [ { "productId": "0192...", "name": "Cotton tee", "options": "Size: M", "unitPrice": 350, "quantity": 2, "lineTotal": 700 } ],
"currency": "EGP", "subtotal": 700, "deliveryFee": 50, "total": 750, "note": null,
"createdAt": "2026-09-28T10:15:00Z", "confirmedAt": "2026-09-28T10:18:00Z", "statusChangedAt": "2026-09-28T10:18:00Z"
}
Events
social.order.created | A customer confirmed an order, or a WhatsApp cart became one (fromCart). It carries the whole order with the conversation and the account. |
social.order.updated | The status changed, from the portal or the API, with previousStatus. |
Prices are copied into the order when it is confirmed, so a later price change never alters it. Numbers run per company from 1001.
If a customer sends a cart from the WhatsApp catalogue and the bot can't take it all the way (auto-replies are off, someone from the team is on the chat, a product isn't one of yours, or they asked for a person), we make a new order from it straight away and you get social.order.created as usual. That order has fromCart: true and cartMessageId (the cart's message). The customer hasn't confirmed it yet, so there's no address. Lines that aren't your products come with retailerId (their code in the catalogue) and an all-zero productId, priced as the customer saw them in WhatsApp.
An order the bot is still taking stays out of the API and the counts until the customer confirms it. If the customer stops half-way, or someone from the team takes over the chat, a team member can make it a new order from the conversation, and you get social.order.created as usual. That order has fromDraft: true and madeByUserId (the member who made it). confirmedAt stays null because the customer never confirmed it, the same as a cart order.