Developers
Order updates API
Send WhatsApp order notifications from any system with three endpoints and a workspace key. Messages use approved utility templates on your own WhatsApp account.
Before the first call
- Create a workspace API key with write scope and send it as
Authorization: Bearer …. - Turn on order updates for the bot and install the templates under Automations.
- Use the bot id from the console URL.
- Only message customers who agreed to receive order updates.
POST /v1/orders/events
Records the order and queues the update. Send your own Idempotency-Key to control duplicates.
curl -X POST https://replybot.a7logics.com/api/v1/orders/events \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: store:1042:shipped:1" \
-d '{
"botId": "YOUR_BOT_ID",
"event": "shipped",
"order": {
"externalId": "1042",
"number": "1042",
"total": "49.00",
"currency": "USD",
"customer": { "name": "Jordan Lee", "phone": "+15550101234" },
"tracking": { "carrier": "UPS", "number": "1Z999", "url": "https://example.com/track/1Z999" },
"occurredAt": "2026-11-04T10:00:00Z"
}
}'Responses: 201 queued, 200 duplicate | skipped | off with a reason, 401 bad key, 402 monthly allowance reached, 422 invalid field. Events older than 24 hours are recorded but not sent.
PUT /v1/orders/{externalId}
Create or update an order without messaging, so the AI can answer order questions.
GET /v1/orders/{externalId}/events
Every update decided for the order: sent, delivered, read, replied or skipped with a reason.
Events
placed | A new order is created |
paid | An unpaid order receives payment |
cod_confirm | A cash-on-delivery order needs confirming (buttons) |
payment_pending | Still unpaid after the wait you set |
shipped | A tracking number is added |
out_for_delivery | The courier has it out for delivery |
cod_out_for_delivery | Same, with the amount to have ready |
completed | Completed without tracking |
delivered | Delivered |
cancelled | Cancelled or refunded |
feedback | A rating request after delivery (buttons) |
Webhook: order.replied
Button taps (confirm, cancel, rating) are posted to your webhook, signed with your webhook secret.
{
"event": "order.replied",
"botId": "…",
"externalId": "1042",
"decision": "confirm",
"score": null,
"at": "2026-11-04T10:20:00Z"
}