Skip to content
Replybot
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

placedA new order is created
paidAn unpaid order receives payment
cod_confirmA cash-on-delivery order needs confirming (buttons)
payment_pendingStill unpaid after the wait you set
shippedA tracking number is added
out_for_deliveryThe courier has it out for delivery
cod_out_for_deliverySame, with the amount to have ready
completedCompleted without tracking
deliveredDelivered
cancelledCancelled or refunded
feedbackA 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"
}