# Order messages webhook reference
This reference describes trigger events and payload contents for the Messaging account **messages** webhook for order messages.
## Triggers
- A WhatsApp user orders one or more products via a [catalog, single-, or multi-product message](https://developers.facebook.com/documentation/business-messaging/whatsapp/catalogs/catalogs-overview).
## Syntax
```html
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "<WHATSAPP_BUSINESS_ACCOUNT_ID>",
"changes": [
{
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "<BUSINESS_DISPLAY_PHONE_NUMBER>",
"phone_number_id": "<BUSINESS_PHONE_NUMBER_ID>"
},
"contacts": [
{
"profile": {
"name": "<WHATSAPP_USER_PROFILE_NAME>",
"username": "<USERNAME>" <!-- only included if user has adopted a username -->
},
"wa_id": "<WHATSAPP_USER_ID>", <!-- omitted if user's phone number is unavailable -->
"user_id": "<BSUID>",
"parent_user_id": "<PARENT_BSUID>", <!-- only included if parent BSUIDs enabled -->
"identity_key_hash": "<IDENTITY_KEY_HASH>" <!-- only included if identity change check enabled -->
}
],
"messages": [
{
"from": "<WHATSAPP_USER_PHONE_NUMBER>", <!-- omitted if user's phone number is unavailable -->
"from_user_id": "<BSUID>",
"from_parent_user_id": "<PARENT_BSUID>", <!-- only included if parent BSUIDs enabled -->
"id": "<WHATSAPP_MESSAGE_ID>",
"timestamp": "<WEBHOOK_TRIGGER_TIMESTAMP>",
"type": "order",
"order": {
"catalog_id": "<PRODUCT_CATALOG_ID>",
"text": "<ORDER_TEXT>",
"product_items": [
{
"product_retailer_id": "<PRODUCT_ID>",
"quantity": <PRODUCT_QUANTITY>,
"item_price": <PRODUCT_PRICE>,
"currency": "<CURRENCY_CODE>"
}
]
}
}
]
},
"field": "messages"
}
]
}
]
}
```
**Warning:** Use `user_id` and `from_user_id` to identify the WhatsApp user. `wa_id` and `from` are omitted when the user has adopted a username and their phone number is unavailable, so an integration that relies only on the phone number will not be able to process those messages. See [Business-scoped user IDs](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids).
## Parameters
| Placeholder | Description | Example value |
| --- | --- | --- |
| `<BUSINESS_DISPLAY_PHONE_NUMBER>`<br><br>_String_ | Business display phone number. | `15550783881` |
| `<BSUID>`<br><br>_String_ | WhatsApp user's [business-scoped user ID](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#business-scoped-user-id) (BSUID). Included whether or not the user has adopted a username. Use it to identify the user and to send messages to them when their phone number is unavailable. | `US.13491208655302741918` |
| `<BUSINESS_PHONE_NUMBER_ID>`<br><br>_String_ | Business phone number ID. | `106540352242922` |
| `<CURRENCY_CODE>`<br><br>_String_ | Catalog currency code. | `USD` |
| `<IDENTITY_KEY_HASH>`<br><br>_String_ | Identity key hash. Only included if you have enabled the [identity change check](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/phone-numbers) feature. | `DF2lS5v2W6x=` |
| `<ORDER_TEXT>`<br><br>_String_ | Text accompanying the order. | `Love these!` |
| `<PARENT_BSUID>`<br><br>_String_ | WhatsApp user's [parent business-scoped user ID](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#parent-business-scoped-user-ids). Only included if your business portfolio is enrolled in parent BSUIDs. | `US.ENT.11815799212886844830` |
| `<PRODUCT_CATALOG_ID>`<br><br>_String_ | [Product catalog ID](https://developers.facebook.com/documentation/business-messaging/whatsapp/catalogs/catalogs-overview). | `194836987003835` |
| `<PRODUCT_ID>`<br><br>_String_ | [Product ID](https://developers.facebook.com/documentation/business-messaging/whatsapp/catalogs/catalogs-overview). | `di9ozbzfi4` |
| `<PRODUCT_PRICE>`<br><br>_Integer_ | Individual product price. | `7.99` |
| `<PRODUCT_QUANTITY>`<br><br>_Integer_ | Product quantity. | `2` |
| `<USERNAME>`<br><br>_String_ | WhatsApp user's [username](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#user-usernames). Only included if the user has adopted a username. | `realsheenanelson` |
| `<WEBHOOK_TRIGGER_TIMESTAMP>`<br><br>_String_ | Unix timestamp indicating when the webhook was triggered. | `1739321024` |
| `<WHATSAPP_BUSINESS_ACCOUNT_ID>`<br><br>_String_ | Messaging account ID. | `102290129340398` |
| `<WHATSAPP_MESSAGE_ID>`<br><br>_String_ | WhatsApp message ID. | `wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQUFERjg0NDEzNDdFODU3MUMxMAA=` |
| `<WHATSAPP_USER_ID>`<br><br>_String_ | WhatsApp user ID. Note that a WhatsApp user's ID and phone number may not always match. Omitted if the user has adopted a username and their phone number is unavailable. See [Phone numbers](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#phone-numbers). | `16505551234` |
| `<WHATSAPP_USER_PHONE_NUMBER>`<br><br>_String_ | WhatsApp user phone number. This is the same value returned by the API as the `input` value when sending a message to a WhatsApp user. Note that a WhatsApp user's phone number and ID may not always match. Omitted if the user has adopted a username and their phone number is unavailable. See [Phone numbers](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#phone-numbers). | `16505551234` |
| `<WHATSAPP_USER_PROFILE_NAME>`<br><br>_String_ | WhatsApp user's name as it appears in their profile in the WhatsApp client. | `Sheena Nelson` |
## Example
This example webhook describes an order placed by a WhatsApp user for 3 products via an interactive catalog message.
```json
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "102290129340398",
"changes": [
{
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "15550783881",
"phone_number_id": "106540352242922"
},
"contacts": [
{
"profile": {
"name": "Sheena Nelson"
},
"wa_id": "16505551234",
"user_id": "US.13491208655302741918"
}
],
"messages": [
{
"from": "16505551234",
"from_user_id": "US.13491208655302741918",
"id": "wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQUFERjg0NDEzNDdFODU3MUMxMAA=",
"timestamp": "1750096325",
"type": "order",
"order": {
"catalog_id": "194836987003835",
"text": "Love these!",
"product_items": [
{
"product_retailer_id": "di9ozbzfi4",
"quantity": 2,
"item_price": 30,
"currency": "USD"
},
{
"product_retailer_id": "nqryix03ez",
"quantity": 1,
"item_price": 25,
"currency": "USD"
}
]
}
}
]
},
"field": "messages"
}
]
}
]
}
```