Skip to main content
The Pix key card is WhatsApp’s “send me a Pix to this key”: your customer sees the payee name, the key and a button that copies the key to paste in the bank app. It has no amount, items or charge code. To charge an amount, use a charge with Pix and boleto. The card is sent through the same messages endpoint, POST /wa/messages, with the pix_key field.
Available on unofficial instances (QR code) only. On instances using the official API (WABA) the request returns 400 waba_feature_not_supported.
Only need a button to copy the code? See Copy code via link.

Sending

All three fields are required:
The card has no text body: WhatsApp drops the text of the message without notice. That is why a request with text is rejected. To explain the payment, send the text in a separate message, before or after the card.

Key format

The key is validated by its type and sent to WhatsApp in the format the Pix system stores it. The card shows the key as it was sent: a CPF shows only its digits (CPF: 12345678909), without punctuation. The alphanumeric CNPJ (letters in the first 12 positions) is also accepted and goes in upper case.
Long e-mails are cut on the card, ending with an ellipsis. The button still copies the whole key.

How the card shows up

Pix key card on a phone with each area linked to the field that fills it The fixed texts of the card follow the language of your customer’s device; in the picture, the phone is in English.

Combinations and scheduling

The Pix key card cannot be combined with text, charge, media, buttons or template. It accepts reply_to, to quote another message, and send_at, to be scheduled. Each card counts towards the daily message limit like any other message.

Webhooks

On message.sent, the card arrives in content.pix_key, in the same shape as the request, with the key in the format it was sent:
A Pix key card received from another account (for example, sent from WhatsApp Business) arrives on message.received with the same content.pix_key, filled with the fields it carries.
WhatsApp does not tell whether your customer copied the key or made the Pix. Confirm the payment with your bank.

Errors

In all these cases no message is sent or scheduled.