Updated on November 10, 2026
order_details is a WhatsApp API interactive message that creates an order inside the chat, with items, total and payment options such as Pix (Brazil’s instant payment system), payment links or boleto (a Brazilian bank slip). order_status is the message that updates that order afterwards (processing, shipped, completed, canceled). Both belong to the Payments API, which Meta documents for Brazil (in BRL, the Brazilian real, with payment_type: "br") and for India. WhatsApp does not reconcile payments, so your ERP or payment provider must confirm the payment and send the status.
This guide shows the payload for each message, the validation rules, the allowed statuses and how to connect the flow to an ERP.
What order_details and order_status are
The Brazil Payments API orders documentation defines both types:
| Message | Purpose | action.name |
|---|---|---|
order_details | Creates the order in the buyer’s WhatsApp, with payment settings and, optionally, items, shipping and discounts | review_and_pay |
order_status | Updates the order status, based on payment confirmation or your internal processes | review_order |
Both are interactive messages sent with POST /<PHONE_NUMBER_ID>/messages. Like any interactive message, they can only be sent inside the 24-hour customer service window opened by the customer. To start a conversation with an order (billing for an order placed by phone or in store, for example), there is the order details template, which can be approved as utility or marketing.
There are two versions of order_details:
- Full, with the
orderobject: items, subtotal, tax, shipping and discount are shown to the customer. - Simplified, without
order: shows only the total and payment options.
Payment methods in Brazil
The Brazil Payments API overview lists the integrations. In order_details, they go in payment_settings:
payment_settings.type | How the customer pays |
|---|---|
pix_dynamic_code | Copies the dynamic Pix code or, with Pix redirect, picks a bank and completes payment in the bank app |
payment_link | Opens a payment link from your payment provider |
boleto | Receives a boleto bank slip |
offsite_card_pay | Pays by card outside WhatsApp, in one click |
Two points from the offsite Pix documentation shape the architecture:
- You need a bank or payment service provider (PSP) that generates the dynamic Pix code and notifies you when it is paid.
- WhatsApp does not reconcile. Only with Pix redirect does WhatsApp mark the order as paid on its own. Otherwise, the order shows as paid only after you send
order_status. Pix redirect still requires manual onboarding through a Meta form.
Our article on Pix payments inside WhatsApp compares the options from a business point of view.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
order_details payload with Pix
A full example based on the official documentation, with two items, shipping and a dynamic Pix code:
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "5511999999999",
"type": "interactive",
"interactive": {
"type": "order_details",
"body": { "text": "Order 48213 from Example Store. Review your items and pay with Pix." },
"action": {
"name": "review_and_pay",
"parameters": {
"reference_id": "ORD-48213",
"type": "physical-goods",
"payment_type": "br",
"currency": "BRL",
"payment_settings": [
{
"type": "pix_dynamic_code",
"pix_dynamic_code": {
"code": "00020101021226700014br.gov.bcb.pix...",
"merchant_name": "Example Store LTDA",
"key": "39580525000189",
"key_type": "CNPJ"
}
}
],
"total_amount": { "value": 15980, "offset": 100 },
"order": {
"status": "pending",
"items": [
{ "retailer_id": "SKU-101", "name": "Basic T-shirt", "amount": { "value": 4990, "offset": 100 }, "quantity": 2 },
{ "retailer_id": "SKU-220", "name": "Cap", "amount": { "value": 4500, "offset": 100 }, "quantity": 1 }
],
"subtotal": { "value": 14480, "offset": 100 },
"tax": { "value": 0, "offset": 100 },
"shipping": { "value": 1500, "offset": 100 }
}
}
}
}
}
Amounts are integers with offset: 100: 15980 means BRL 159.80.
Validation rules that break the send
The documentation sets strict rules. The ones that cause the most integration errors:
| Field | Rule |
|---|---|
reference_id | Unique per message, up to 60 characters, only English letters, numbers, _, - and . |
type | digital-goods or physical-goods |
currency | BRL, with offset 100 |
order.status | In order_details, only pending |
subtotal | Sum of each item’s amount (or sale_amount) × quantity |
tax | Required, but can be zero |
total_amount | subtotal + tax + shipping − discount |
items[].name | Up to 60 characters |
body.text | Up to 1,024 characters |
expiration.timestamp | Optional; minimum of 300 seconds |
In the example: 4990 × 2 + 4500 = 14480; 14480 + 0 + 1500 = 15980. Compute this in your backend with integers, never floating point.
Updating the order with order_status
When the PSP confirms the Pix payment, or when the order ships, send order_status with the same reference_id:
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "5511999999999",
"type": "interactive",
"interactive": {
"type": "order_status",
"body": { "text": "Payment received! Your order 48213 is being prepared." },
"action": {
"name": "review_order",
"parameters": {
"reference_id": "ORD-48213",
"order": { "status": "processing" },
"payment": { "status": "captured", "timestamp": 1762790400 }
}
}
}
}
Allowed order statuses:
order.status | Meaning |
|---|---|
pending | Not processed yet |
processing | Being fulfilled |
partially_shipped | Part of the order has shipped |
shipped | All items shipped |
completed | Final: no further updates expected |
canceled | Canceled; fails if a successful or pending payment exists |
Payment statuses: pending, captured (adds the “paid” label) and failed. Specific errors: 2046 (invalid status transition) and 2047 (cancellation failure). Mark the order completed once delivery is done.
ERP integration: who owns each step
The ERP is the source of truth for the order; WhatsApp is the storefront. A straightforward mapping:
| Event in the ERP or PSP | WhatsApp message |
|---|---|
| Order created (customer inside the window) | order_details with reference_id = order number |
| Order created outside the window | Order details template |
| PSP confirms payment | order_status processing + payment.status: captured |
| Invoice issued and dispatched | order_status shipped |
| Delivery completed | order_status completed |
| Order canceled with no payment | order_status canceled |
A Node.js skeleton that listens to the PSP webhook and updates WhatsApp:
app.post('/psp/webhook', async (req, res) => {
res.sendStatus(200);
const { txid, status } = req.body; // format depends on your PSP
if (status !== 'PAID') return;
const order = await erp.orders.byTxid(txid);
if (order.whatsappStatus === 'processing') return; // idempotency
await sendWhatsApp({
to: order.phone,
type: 'interactive',
interactive: {
type: 'order_status',
body: { text: `Payment received! Order ${order.number} is being prepared.` },
action: {
name: 'review_order',
parameters: {
reference_id: order.referenceId,
order: { status: 'processing' },
payment: { status: 'captured', timestamp: Math.floor(Date.now() / 1000) },
},
},
},
});
await erp.orders.mark(order.id, { whatsappStatus: 'processing' });
});
Three architecture habits:
- Idempotency. PSPs resend webhooks. Store the last status you sent and do not repeat it.
- Status order. An invalid transition returns
2046. Keep a state machine on your side. - 24-hour window.
order_statusis interactive. If the window has closed (a shipment that takes days, for example), use a utility template to announce the dispatch.
Our article on WhatsApp API and ERP integration covers invoices and billing, and integration architecture explains queues and retries. For stores on Bling (a Brazilian ERP), see Bling + WhatsApp.
Cost
Interactive messages sent inside the window count as service messages: each phone number gets 1,000 free per month, then Meta charges BRL 0.0350 per message for Brazil. The order details template follows its approved category: BRL 0.0350 for utility or BRL 0.3217 for marketing. PSP fees for Pix, boleto or cards are charged separately by the PSP.
How to do it with Vectalk
Vectalk is a proxy to the official WhatsApp API, and webhooks are Meta’s own. The Vectalk message reference currently lists the interactive types button, list, cta_url, flow, product and product_list; order_details and order_status are not on that list, so talk to the team before planning a payment flow through Vectalk. Order updates via utility templates, catalog and product messages are already documented. Order logic, PSP reconciliation and status rules live in your ERP or system. To get started, create your account at apps.vectalk.com.br/register.
Frequently asked questions
Does order_details work outside Brazil?
Meta documents the Payments API for Brazil (BRL, payment_type: "br") and for India, with country-specific methods such as UPI in India. For other countries, check the current documentation before planning.
Does WhatsApp confirm the payment by itself?
Only with Pix redirect. Otherwise, WhatsApp does not reconcile: your PSP confirms the payment and you send order_status with payment.status: captured.
Can I send order_details to a customer who hasn’t messaged me today?
Not as an interactive message: outside the 24-hour window, only templates are allowed. Use the order details template, approved as utility or marketing.
What happens if the total doesn’t match the items?
The message is rejected. total_amount must equal subtotal + tax + shipping − discount, and the subtotal must match the sum of the items.
Can I cancel an order that has been paid?
Not through order_status: cancellation fails if a successful or pending payment exists (error 2047). Refunds are handled in your PSP.
Official sources consulted on November 10, 2026: Payments API Brazil overview, Order messages (order_details and order_status), Offsite Pix, Order details template (Brazil), Payments API India, Platform pricing, Vectalk message reference.
Put your business on the official WhatsApp
Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.
