send_cart Webhook Event Reference
Updated: Jan 23, 2024
Copy for LLM
This callback will occur when a message containing cart information has been sent to your Page. Messages are always sent in order.
You can subscribe to this callback by selecting
send_cart when setting up your webhook.Example
{
"sender": {
"id": "<PSID>"
},
"recipient": {
"id": "<PAGE_ID>"
},
"timestamp": 1458692752478,
"order": {
"products": [
{
"id": 123,
"retailer_id": "retailer_id_1",
"name": "name1",
"unit_price": 11,
"currency": "THB",
"quantity": 1,
},
{
"id": 456,
"retailer_id": "retailer_id_2",
"name": "name2",
"unit_price": 22,
"currency": "THB",
"quantity": 2,
},
],
"note": "foobar",
}
}
Properties
sender
sender Field
| Description |
|---|---|
id string | The Page-scoped ID for the person who sent a message to your business |
recipient
recipient Field
| Description |
|---|---|
id string | The ID for your Facebook Page |
order
| Property | Type | Description |
|---|---|---|
products | Array< product> | Array containing product data |
note | String | Optional note about the order |
order.products
| Property | Type | Description |
|---|---|---|
id | String | Product ID from Facebook product catalog |
retailer_id | String | External ID that is associated with the Product (for example, SKU/Content ID) |
name | String | Product name |
unit_price | Float | Numeric price per unit |
currency | String | Currency short string (for example, USD) |
quantity | Int | The count of this product in the order |