--- title: "Send Conversational WhatsApp Pix Payment Template Message" slug: "send-conversational-whatsapp-pix-payment-template-message" description: "Covers sending WhatsApp Pix payment messages through the Conversational API, including authentication, request parameters, sample requests, responses, and limit" updated: 2026-10-09T12:36:24Z published: 2026-10-09T12:36:24Z canonical: "academy.insiderone.com/send-conversational-whatsapp-pix-payment-template-message" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Send Conversational WhatsApp Pix Payment Template Message The Conversational API sends a WhatsApp Pix payment template message from a bot or conversational flow. The message carries a payment button that copies a Pix BR Code to the recipient's clipboard. Your payment service provider (PSP) generates the code for each recipient at the moment you send, so the template never stores a code. Before you send, create a template with a payment button, wait for Meta approval, and make sure Pix Payment is enabled on your account. For details, see [WhatsApp Pix Payment Request](/docs/whatsapp-pix-payment-request). ## Endpoint and Headers Send the request to the following endpoint. The base URL is `https://whatsapp.useinsider.com`. Use this endpoint for conversational or bot sends. > **POST** https://whatsapp.useinsider.com/v1/conversational/send ### Headers | Header | Sample Value | Description | | --- | --- | --- | | `x-ins-auth-key` | `INS.<YOUR_TRANSACTIONAL_API_KEY>` | Your Transactional API key. The value starts with `INS.`, so add your key after the prefix. | | `x-ins-namespace` | `<YOUR_NAMESPACE>` | Your namespace, for example `default`. | | `Content-Type` | `application/json` | The format of the request body. | ## Body Parameters The body holds one object per recipient. Each object carries the recipient, the template, and the Pix BR Code for that recipient. | Column | Description | Data Type | Required | | --- | --- | --- | --- | | messages | Array of message objects. Add one object per recipient. | Array | Yes | | phoneNumber | Recipient phone number in E.164 format. It must be a Brazilian number (country code `+55`), for example `+5511999999999`. | String | Yes | | message | Object that holds the message content. | Object | Yes | | type | Message type. Set it to `template`. | String | Yes | | template | Object that holds the template details. | Object | Yes | | name | Name of the approved template, exactly as it appears in the InOne panel. | String | Yes | | language.code | Language code of the template, for example `pt_BR`. | String | Yes | | language.policy | Language policy for the template. Set it to `deterministic`. | String | Yes | | components | Array of components. It must mirror the buttons of your approved template in the same index order. Add a `body` component before the buttons if the body contains variables. | Array | Yes | | components[].type | Component type. Set it to `button` for buttons, or `body` for body variables. | String | Yes | | components[].sub_type | Button type. Set it to `payment_request` for the payment button, or `quick_reply` for a quick reply button. | String | Yes | | components[].index | Position of the button in the template, starting at `0`. | String | Yes | | components[].parameters[].type | Parameter type. Set it to `action` for the payment button. | String | Yes | | components[].parameters[].action.payment_request.payment_setting.type | Payment type. Set it to `pix_dynamic_code`. | String | Yes | | components[].parameters[].action.payment_request.payment_setting.pix_dynamic_code.code | The Pix BR Code for this recipient, from your PSP. Each recipient needs their own code, and the code has no length limit. | String | Yes | > [!NOTE] > The payment button does not accept a `text` value. The button label is fixed as **Copy Pix code** in every template language. Omit `text`, or send exactly `Copy Pix code`. ## Sample Requests The **components** array must mirror your approved template's buttons in the same index order. A mismatch is the most common reason a send is rejected. ### Payment Button Only The following example sends a template with a single payment button to one recipient: ```bash curl --location 'https://whatsapp.useinsider.com/v1/conversational/send' \ --header 'x-ins-auth-key: INS.' \ --header 'x-ins-namespace: ' \ --header 'Content-Type: application/json' \ --data '{  "messages": [    {      "phoneNumber": "",      "message": {        "type": "template",        "template": {          "name": "",          "language": {            "code": "",            "policy": "deterministic"          },          "components": [            {              "type": "button",              "sub_type": "payment_request",              "index": "0",              "parameters": [                {                  "type": "action",                  "action": {                    "payment_request": {                      "payment_setting": {                        "type": "pix_dynamic_code",                        "pix_dynamic_code": {                          "code": ""                        }                      }                    }                  }                }              ]            }          ]        }      }    }  ] }' ``` Replace the placeholders with your own values: | Placeholder | Value | | --- | --- | | | Your API key without the `INS.` prefix. The header already includes the prefix. | | | Your namespace, for example `default`. | | | A Brazilian number in E.164 format, for example `+5511999999999`. | | | The template name exactly as it appears in the InOne panel. | | | The template's language, for example `pt_BR`. | | | The real Pix BR Code for this recipient, from your PSP. | To send only the payment button, keep a single component block at index `"0"`: ```json "components": [  { "type": "button", "sub_type": "payment_request", "index": "0", "parameters": [ ... ] } ] ``` ### Payment Button and Quick Reply Add the quick reply at its own index: ```json "components": [  { "type": "button", "sub_type": "payment_request", "index": "0",    "parameters": [ ... ] },  { "type": "button", "sub_type": "quick_reply", "index": "1",    "parameters": [ { "type": "payload", "payload": "1" } ] } ] ``` ### Body Variables If your body contains variables such as `{{1}}` and `{{2}}`, add a body component before the buttons: ```json { "type": "body", "parameters": [ { "type": "text", "text": "Marina" } ] } ``` ### Multiple Recipients Add one object per recipient to `messages`, each with its own Pix code: ```json "messages": [  { "phoneNumber": "+5511999999999",    "message": { ... "code": "" ... } },  { "phoneNumber": "+5521988888888",    "message": { ... "code": "" ... } } ] ``` > [!NOTE] > Never reuse one code across recipients. A Pix code identifies a single payment. ## Sample Responses Each message in the request returns one key, in the order you sent them. Use the key to identify that message in delivery reporting. ### 200 OK ```json { "keys": ["whatsapp-..."] } ``` > [!NOTE] > A `200` response means Insider One accepted and queued your request. It is not a delivery receipt. ### 400 Bad Request A request with an invalid Pix payment setup returns `400`. The following table lists the errors and their fixes: | What You See | Meaning | What to Do | | --- | --- | --- | | `400` with error code `2006` and the message `payment request is not enabled for this partner` | Pix Payment is not enabled on your account. | Ask the Insider One team to enable it. | | `400` with error code `2002` | The request shape is wrong. | Check that `code` is present, that `payment_setting` sits under the `payment_request` button and not under another button, and that `type` is `pix_dynamic_code`. | | `400` because the button label was rejected | You sent text for the payment button that does not match the fixed label. | Omit `text` entirely. If you send it, it must read exactly `Copy Pix code`. | #### Request Shape Rules Two more rules apply to the request shape: - `payment_setting` is singular. WhatsApp's separate Orders API uses a plural `payment_settings` array, and that shape does not work here. - `payment_setting` is valid only under a `payment_request` button. If you place it on a quick reply or a URL button, Insider One rejects the request. ### Messages to Non-Brazilian Numbers A request to a non-Brazilian number returns `200`, but the message never arrives. Insider One does not send Pix messages to numbers outside Brazil, because Meta rejects them. These messages appear in your delivery reporting as undelivered, not as an API error. ## Limitations - A template can include one payment button and up to three buttons in total. - You can combine the payment button with Quick Reply, Visit Website, and Call Phone Number buttons within the three-button total. Meta allows the Share Contact Info button only on its own, so you cannot combine it with a payment button. - Carousel templates and carousel cards do not support the payment button. - Payment templates are available in the Marketing and Utility categories. - Pix messages go only to Brazilian phone numbers (country code `+55`). - Each recipient needs their own Pix code. A valid BR Code has no length or character limit, and it can exceed 500 characters. - Pix payment templates are available through the API only. They do not appear in the template picker of segment campaigns or in Architect. ## Related - [WhatsApp Pix Payment Request](/whatsapp-pix-payment-request.md) - [Send Transactional WhatsApp Pix Payment Template Message](/send-transactional-whatsapp-pix-payment-template-message.md)