Skip to main content
POST
/
send-button-pix
Enviar botão Pix
curl --request POST \
  --url https://zapi.hubmessage.io/channels/{channel_id}/token/{channel_token}/send-button-pix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "5511999999999",
  "pixKey": "12345678900",
  "type": "CPF",
  "merchantName": "Hub Message"
}
'
{
  "zaapId": "3999984263738042930CD6ECDE9VDWSA",
  "messageId": "D241XXXX732339502B68",
  "id": "D241XXXX732339502B68"
}

Overview

Method for sending messages with a Pix payment button. The recipient receives a button that copies the Pix key when clicked. Supported key types: CPF, CNPJ, PHONE, EMAIL, and EVP (random key).
The response structure is identical to Z-API. Your existing code that processes these returns will continue working without changes.

Authorizations

Authorization
string
header
required

Secret Key gerada no painel de Segurança do Hub Message

Body

application/json
phone
string
required

Telefone do destinatário (DDI + DDD + número)

Example:

"5511999999999"

pixKey
string
required

Chave Pix

type
enum<string>
required

Tipo da chave Pix

Available options:
CPF,
CNPJ,
PHONE,
EMAIL,
EVP
merchantName
string

Título do botão. Padrão: "Pix"

Response

Mensagem enviada com sucesso

zaapId
string

Identificador interno

messageId
string

ID da mensagem no WhatsApp

id
string

Mesmo valor do messageId (compatibilidade)