Skip to main content

Send order details template message

Updated: Nov 4, 2025

Overview

Order details message template is a template with interactive 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 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 and undergo the 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 that leads to rejections and if you are looking for further clarification you may request a review of the template via Business Support Once approved 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 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. 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/<API_VERSION>/<WHATSAPP_BUSINESS_ACCOUNT_ID>/message_templates
\{
  "name": "<TEMPLATE_NAME>",
  "language": "<LANGUAGE_CODE>",
  "category": "UTILITY or MARKETING",
  "display_format": "ORDER_DETAILS",
  "components": [\
    {\
      "type": "HEADER",\
      "format": "TEXT" OR "IMAGE" OR "DOCUMENT",\
      "text": "<HEADER_TEXT>"\
    },\
    {\
      "type": "BODY",\
      "text": "<BODY_TEXT>"\
    },\
    {\
      "type": "FOOTER",\
      "text": "<FOOTER_TEXT>"\
    },\
    {\
      "type": "BUTTONS",\
      "buttons": [\
        {\
          "type": "ORDER_DETAILS",\
          "text": "<COPY_PIX_CODE>"\
        }\
      ]\
    }\
  ]
}

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, Payment Links, 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 document. For example following sample describes how to send Copy Pix code in order details template message parameters to prompt the consumer to make a payment.
POST https://graph.facebook.com/<API_VERSION>/<PHONE_NUMBER_ID>/messages
\{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "<PHONE_NUMBER>",
  "type": "template",
  "template": {
    "name": "<TEMPLATE_NAME>",
    "language": {
      "policy": "deterministic",
      "code": "<LANGUAGE_AND_LOCALE_CODE>"
    },
    "components": [\
      {\
        "type": "button",\
        "sub_type": "order_details",\
        "index": 0,\
        "parameters": [\
          {\
            "type": "action",\
            "action": {\
              "order_details": {\
                "reference_id": "<UNIQUE_REFERENCE_ID>",\
                "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": "<PHONE_NUMBER>",\
            "wa_id": "<WHATSAPP_ID>"\
        }\
    ],
    "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 order details parameters. Did you find this page helpful? Thumbs up icon Thumbs down icon 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