Messages
Send Pix
Send a PIX payment button with key and merchant
POST
Send Pix
Auth:
Error envelope:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: no
Description
Sends a message with a visual PIX card in the WhatsApp chat, displaying the beneficiary name, the key type and the key itself. The button works as a “copy key” with PIX styling, when tapped, the recipient copies the key to the clipboard and pastes it into their banking app to pay. It does not open a payment screen, does not create a charge, and there is no confirmation callback, it is just the visual presentation of the key in a friendly, clickable format.Examples
PIX with CPF Key
Sends the PIX button using aCPF key. Send digits only (no dots or dashes).
PIX with CNPJ Key
Sends the PIX button using aCNPJ key. Send digits only (no dots, dashes or slashes).
PIX with Email Key
Sends the PIX button using anEMAIL key.
Success response
200 OK
The button only copies the PIX key to the recipient’s clipboard, it does not open the bank’s payment screen or initiate a charge. Payment is done manually by the recipient in their own banking app, and there is no “paid” callback via WhatsApp.
Path parameters
Instance name (e.g.,
$Instance_Name).Headers
TokenAccount or TokenInstance.application/jsonRequest body
Destination: phone (
5511999999999) or JID (@s.whatsapp.net, @lid, @g.us).Beneficiary name displayed on the visual PIX card (above the key).
PIX key (CPF, CNPJ, email, phone or random key).
Key type. Accepted values:
CPF, CNPJ, EMAIL, PHONE, RANDOM.Time in seconds to wait before sending. During the interval, the server sends the “typing…” indicator to the recipient.
ID of the message to be quoted (reply). The original message must belong to the same instance and have been saved in the database.
When
true and replyTo points to a message originating from a group, the reply is redirected to the original author’s private chat.Origin identifier for traceability (e.g.,
crm, checkout, n8n).Notes
- The
pixKeyTypeis validated byoneof, if you send a value outsideCPF | CNPJ | EMAIL | PHONE | RANDOM, the request is rejected with400. - For CPF/CNPJ keys, send digits only (no dots, dashes or slashes):
12345678901or12345678000199. - For
PHONE, use the international format without+(e.g.,5511999999999). - For
RANDOM, use the UUID generated by the bank (e.g.,aabbccdd-1234-5678-90ab-cdef01234567). - This endpoint does not create a Brcode QR Code or register a charge, it is only the visual representation of the order with a clickable PIX key.
Errors
| HTTP | Internal status | Message |
|---|---|---|
| 400 | , | Instance name is required |
| 400 | , | Invalid request: <detail> |
| 400 | , | Number is required |
| 400 | , | MerchantName is required |
| 400 | , | PixKey is required |
| 400 | , | PixKeyType is required |
| 400 | invalid_number | Invalid phone number format: <detail> |
| 400 | invalid_request | (oneof validation or other reason) |
| 404 | , | Instance not found |
| 500 | send_failed | Failed to send message: <reason> |
| 503 | disconnected | Instance is not connected to WhatsApp |