send_cart Webhook Event ReferenceThis 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.
{
"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",
}
}
sendersender Field | Description |
|---|---|
| The Page-scoped ID for the person who sent a message to your business |
recipientrecipient Field | Description |
|---|---|
| The ID for your Facebook Page |
order| Property | Type | Description |
|---|---|---|
| Array< | Array containing product data |
| String | Optional note about the order |
order.products| Property | Type | Description |
|---|---|---|
| String | Product ID from Facebook product catalog |
| String | External ID that is associated with the Product (for example, SKU/Content ID) |
| String | Product name |
| Float | Numeric price per unit |
| String | Currency short string (for example, USD) |
| Int | The count of this product in the order |