Skip to content
API PlatformDevelopers

Webhook events · orders

order.message_received/1

WhatsApp order received. A customer sent an order (a cart) from your WhatsApp catalog. Carries the conversation, the customer, the product lines (first 50), the line count, total, currency and the customer's note.

Payload

We POST this JSON to your endpoint. Answer any 2xx within 30 seconds. The same id arrives again on a retry — skip ones you have handled.

Payload fields
FieldTypeWhat it is
idrequiredstringEvent id. The same on every retry: use it to skip duplicates.pattern ^evt_[0-9A-HJKMNP-TV-Z]{26}$
typerequiredstringEvent type.always order.message_received
versionrequiredstringPayload version.always 1
api_versionrequiredstringThe endpoint's API version.
occurred_atrequiredstringWhen it happened.date-time
company_idrequiredintegerYour workspace id.
datarequiredobject
message_idrequiredintegerMessage id of the order.
wamidstring or nullWhatsApp message id.
conversationrequiredobject or nullThe conversation.
idrequiredintegerConversation id.
company_idrequiredintegerWorkspace id.
contactobject or nullThe contact.
idrequiredintegerId.
namerequiredstring or nullName.
channelobject or nullThe channel.
idrequiredintegerId.
namerequiredstring or nullName.
assigned_staffobject or nullAssigned staff member.
idrequiredintegerId.
namerequiredstring or nullName.
assigned_teamobject or nullAssigned team.
idrequiredintegerId.
namerequiredstring or nullName.
closed_reasonobject or nullThe close reason; null while open.
idrequiredintegerId.
namerequiredstring or nullName.
assigned_atstring or nullISO 8601.
created_atstring or nullISO 8601.
contactobject or nullThe customer.
idrequiredintegerContact id.
namestring or nullName.
phonestring or nullPhone number in E.164.
catalog_idstring or nullWhatsApp catalog id.
itemsrequiredarray of objectThe product lines (the first 50).0–50 items
product_retailer_idrequiredstringYour product id (retailer id) in the catalog.
quantityrequiredintegerQuantity.
item_pricenumber or nullUnit price.
currencystring or nullCurrency, ISO 4217.
items_countrequiredintegerHow many product lines the order has.
items_truncatedbooleanTrue when there were more than 50 lines.
totalrequirednumberOrder total.
currencystring or nullCurrency, ISO 4217.
textstring or nullThe customer's note.
received_atstring or nullISO 8601.

Example

{
  "id": "evt_01J8Z7BZQ4F6G8J2K5N7Q9S1VC",
  "type": "order.message_received",
  "version": "1",
  "api_version": "2026-10-01",
  "occurred_at": "2026-09-24T09:20:00Z",
  "company_id": 42,
  "data": {
    "text": "Please gift wrap",
    "items": [
      {
        "currency": "AED",
        "quantity": 2,
        "item_price": 49.75,
        "product_retailer_id": "TEA-001"
      },
      {
        "currency": "AED",
        "quantity": 1,
        "item_price": 50,
        "product_retailer_id": "CUP-002"
      }
    ],
    "total": 149.5,
    "wamid": "wamid.HBgMOTcxNTAxMjM0NTY3FQIAEhgUM0FCQ0RFRg",
    "contact": {
      "id": 12345,
      "name": "Jane Doe",
      "phone": "+971501234567"
    },
    "currency": "AED",
    "catalog_id": "1234567890123456",
    "message_id": 13264,
    "items_count": 2,
    "received_at": "2026-09-25T19:44:07+00:00",
    "conversation": {
      "id": 98765,
      "channel": {
        "id": 7,
        "name": "WhatsApp"
      },
      "contact": {
        "id": 12345,
        "name": "Jane Doe"
      },
      "company_id": 42,
      "created_at": "2026-05-01T10:15:00+00:00",
      "assigned_at": "2026-05-01T10:20:00+00:00",
      "assigned_team": null,
      "closed_reason": null,
      "assigned_staff": {
        "id": 311,
        "name": "Riya Support"
      }
    },
    "items_truncated": false
  }
}

Headers

  • Webhook-Signature: t=…,v1=… — how to check it
  • Webhook-Id (also Webhook-Event-Id): the event id, the same on every retry — skip ones you have handled
  • Webhook-Delivery-Id: this delivery attempt, new on every try