send_order_details
Send WhatsApp order details, payment, or invoice messages using an approved Utility template with an ORDER_DETAILS button for India commerce channels.
Instructions
Send a WhatsApp order details payment / invoice message using a
pre-approved Utility template that has an ORDER_DETAILS button.
India only (WhatsApp Payments India). Requires:
India WhatsApp Business number
Commerce enabled on the channel (
GET/POST /commerce)Approved template with an
ORDER_DETAILSbutton
Use this method when you need structured fields (order, referenceId,
currency, paymentSettings). The API appends a template button
sub_type: order_details and sends via the same path as POST /sendTemplate.
Works outside the 24-hour session window (template message).
You can also send the same payload yourself with POST /sendTemplate by
including a button component in params:
{
"type": "button",
"sub_type": "order_details",
"index": 0,
"parameters": [{
"type": "action",
"action": {
"order_details": {
"reference_id": "order-123",
"currency": "INR",
"order": { "status": "pending", "items": [], "subtotal": { "offset": 100, "value": 50000 } }
}
}
}]
}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template": "<template>",
"namespace": "<namespace>",
"language": "<language>",
"order": "<order>"
},
"name": "send_order_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | ||
| phone | No | ||
| chatId | No | ||
| params | No | ||
| currency | No | ||
| language | Yes | ||
| template | Yes | ||
| namespace | Yes | ||
| referenceId | No | ||
| paymentSettings | No |