Send PIX Button
#
Method#
/send-button-pixPOST
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/send-button-pix
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
Attention
Button sending is currently available; for more details, visit the topic Button Status.
#
ConceptWith this method, you can send PIX key messages with a button to copy.
#
Attributes#
RequiredAttributes | Type | Description |
---|---|---|
phone | string | Recipient's phone number (or group ID for sending to groups) in the format COUNTRY CODE AREA CODE NUMBER, e.g., 551199999999. IMPORTANT Send only numbers, without formatting or mask. |
pixKey | string | PIX key |
type | string | Type of PIX key (CPF, CNPJ, PHONE, EMAIL, EVP) |
#
Request BodyObservação
On whatsapp web, pix messages received do not change the chat state, which means that the chat is not marked as unread and it also does not go to the top of the chat list. However, the message is rendered normally. This is a bug in the whatsapp web itself.
#
Response#
200Attributes | Type | Description |
---|---|---|
zaapId | string | ID in z-api |
messageId | string | ID in WhatsApp |
id | string | Added for compatibility with Zapier, it has the same value as messageId |
Example
#
405In this case, ensure that you are correctly following the method specification, i.e., check if you are sending a POST or GET request as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" header in your request, which is usually "application/json" for most objects you are sending.
#
Webhook ResponseLink to the webhook response (upon receipt)