> ## Documentation Index
> Fetch the complete documentation index at: https://whatsapp-docs.kap.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Orderdetailstemplate

# Send order details template message

Updated: Nov 4, 2025

## Overview

Order details message template is a template with [interactive components](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/overview#components) that extends the call-to-action button to support sending order details and provides a richer experience compared to templates with only text components.

Once your Order details message templates have been created and approved, you can use the approved template to send the template message with order or bill information to prompt customers to make a payment.

Before sending an order details template message, businesses need to create a template with an “order details” call-to-action button. See [Create Message Templates for Your WhatsApp Business Account](https://www.facebook.com/business/help/2055875911147364?id=2129163877102343) for more information on prerequisites and how to create a template.

## Creating an order details template on Whatsapp Manager

To create an order details template, business needs a business portfolio with a WhatsApp Business Account.

In **WhatsApp Manager** > **Account tools**:

Click on `create template`
Select `Utility` or `Marketing` category to see the `Order details` template format option.
Select `Order details` template format, and click **Next**
Enter the desired `template name` and supported `locale`
Depending on the number of `locales` selected there will be an equal number of template variants and businesses need to fill in the template details in respective locale.
Fill in template components such as `Header`, `Body` and optional `footer` text.

For the `Header`, you can choose one of three media types: `Text`, `Image` or `Document`. Choose `Document` if you want to send **PDF files** in the header of this template.
Click submit.
Once submitted, templates will be [categorized as per the guidelines](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/template-categorization#template-category-guidelines) and undergo the [approval process](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/template-review#approval-process).
The template will be approved or rejected after the template components are verified by the system.
If business believe the category determined is not consistent with our template category guidelines, please confirm there are no [common issues](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/template-review) that leads to rejections and if you are looking for further clarification you may [request a review](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/template-categorization#requesting-review) of the template via [Business Support](https://business.facebook.com/business-support-home/)
Once approved template [status](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/overview#template-status) will be changed to `ACTIVE`
Please be informed that template’s status can change automatically from `ACTIVE` to `PAUSED` or `DISABLED` based on customer feedback and engagement. We recommend that you [monitor status changes](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/template-review#common-rejection-reasons) and take appropriate actions whenever such change occurs.

## Creating an order details template using template creation APIs

To create a template through API and understand the general syntax, required categories and
components please refer to [templates API](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/overview#creating-templates). All the guidelines outlined above in creating templates apply through API as well.

Order details template can be categorized as “Utility” or “Marketing” template and apart from ‘name’ and ‘language’ of
choice, it has general template components such as HEADER, BODY, FOOTER and a fixed BUTTON with “ORDER\_DETAILS” type.

```
POST https://graph.facebook.com/&lt;API_VERSION&gt;/&lt;WHATSAPP_BUSINESS_ACCOUNT_ID&gt;/message_templates
\{
  "name": "&lt;TEMPLATE_NAME&gt;",
  "language": "&lt;LANGUAGE_CODE&gt;",
  "category": "UTILITY or MARKETING",
  "display_format": "ORDER_DETAILS",
  "components": [\
    {\
      "type": "HEADER",\
      "format": "TEXT" OR "IMAGE" OR "DOCUMENT",\
      "text": "&lt;HEADER_TEXT&gt;"\
    },\
    {\
      "type": "BODY",\
      "text": "&lt;BODY_TEXT&gt;"\
    },\
    {\
      "type": "FOOTER",\
      "text": "&lt;FOOTER_TEXT&gt;"\
    },\
    {\
      "type": "BUTTONS",\
      "buttons": [\
        {\
          "type": "ORDER_DETAILS",\
          "text": "&lt;COPY_PIX_CODE&gt;"\
        }\
      ]\
    }\
  ]
}
```

## Sending order details template message

Order details template message allows the businesses to send invoice (order\_details) message as predefined `order details` call-to-action button component parameters. It supports businesses to send all payment integration (such as [Dynamic Pix code](https://developers.facebook.com/documentation/business-messaging/whatsapp/payments/payments-br/offsite-pix), [Payment Links](https://developers.facebook.com/documentation/business-messaging/whatsapp/payments/payments-br/payment-links), [Boleto](https://developers.facebook.com/documentation/business-messaging/whatsapp/payments/payments-br/boleto), etc) integration as button parameters.

To send an order details template message, make a `POST` call to `/PHONE_NUMBER_ID/messages` endpoint and attach a message object with `type=template`. Then, add a template object with a predefined `order details` call-to-action button.

You can optionally include a **PDF file** as attachment in the `header` component of the template message. To do so, you use `type=document` in the `parameter` object of the `header` component object, as described in our [Components](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/components#media-header) document.

For example following sample describes how to send [Copy Pix code](https://developers.facebook.com/documentation/business-messaging/whatsapp/payments/payments-br/offsite-pix) in order details template message parameters to prompt the consumer to make a payment.

```
POST https://graph.facebook.com/&lt;API_VERSION&gt;/&lt;PHONE_NUMBER_ID&gt;/messages
\{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "&lt;PHONE_NUMBER&gt;",
  "type": "template",
  "template": {
    "name": "&lt;TEMPLATE_NAME&gt;",
    "language": {
      "policy": "deterministic",
      "code": "&lt;LANGUAGE_AND_LOCALE_CODE&gt;"
    },
    "components": [\
      {\
        "type": "button",\
        "sub_type": "order_details",\
        "index": 0,\
        "parameters": [\
          {\
            "type": "action",\
            "action": {\
              "order_details": {\
                "reference_id": "&lt;UNIQUE_REFERENCE_ID&gt;",\
                "type": "digital-goods",\
                "payment_type": "br",\
                "payment_settings": [\
                  {\
                    "type": "pix_dynamic_code",\
                    "pix_dynamic_code": {\
                      "code": "00020101021226700014br.gov.bcb.pix2548pix.example.com...",\
                      "merchant_name": "Account holder name",\
                      "key": "39580525000189",\
                      "key_type": "CNPJ"\
                    }\
                  }\
                ],\
                "currency": "BRL",\
                "total_amount": {\
                  "value": 50000,\
                  "offset": 100\
                },\
                "order": {\
                  "status": "pending",\
                  "tax": {\
                    "value": 0,\
                    "offset": 100,\
                    "description": "optional text"\
                  },\
                  "items": [\
                    {\
                      "retailer_id": "1234567",\
                      "name": "Cake",\
                      "amount": {\
                        "value": 50000,\
                        "offset": 100\
                      },\
                      "quantity": 1\
                    }\
                  ],\
                  "subtotal": {\
                    "value": 50000,\
                    "offset": 100\
                  }\
                }\
              }\
            }\
          }\
        ]\
      }\
    ]
  }
}
```

Once the order details template message is delivered, a successful response will include an object with an identifier prefixed with wamid. Use the ID listed after wamid to track your message status.

```
\{
    "messaging_product": "whatsapp",
    "contacts": [\
        {\
            "input": "&lt;PHONE_NUMBER&gt;",\
            "wa_id": "&lt;WHATSAPP_ID&gt;"\
        }\
    ],
    "messages": [\
        {\
            "id": "wamid.ID"\
        }\
    ]
}
```

## Post order details template message flow

After the order details template message delivery the rest of the payment flow is the same as “Sending invoice in customer session window” and depends on the chosen [payment integration](https://developers.facebook.com/documentation/business-messaging/whatsapp/payments/payments-br/overview) order details parameters.

Did you find this page helpful?

![Thumbs up icon](https://static.xx.fbcdn.net/rsrc.php/yR/r/OEXJ0_DJeZv.svg)

![Thumbs down icon](https://static.xx.fbcdn.net/rsrc.php/yb/r/qKPgNVNeatU.svg)

ON THIS PAGE

Overview

Creating an order details template on Whatsapp Manager

Creating an order details template using template creation APIs

Sending order details template message

Post order details template message flow

***
