# Botão PIX: uazapi e Orkesio

Na uazapi: `POST /send/pix-button`. Na Orkesio: `POST /messages` com `"type": "payment"`. A rota da uazapi continua funcionando.

A chave ia em `pixKey`, o tipo em `pixType` (em maiúsculas) e o nome em `pixName`; na Orkesio fica tudo em `pix`.

## Pedido

```lado-a-lado
{
  "uazapi (POST /send/pix-button)": {
    "number": "5511999999999",
    "pixKey": "loja@exemplo.com",
    "pixType": "EMAIL",
    "pixName": "Loja"
  },
  "Orkesio (POST /messages)": {
    "to": "5511999999999",
    "type": "payment",
    "pix": {
      "key": "loja@exemplo.com",
      "key_type": "email",
      "merchant_name": "Loja"
    }
  }
}
```

## Resposta

O `content` da uazapi é o proto do WhatsApp; aqui vai resumido (`...`).

```lado-a-lado
{
  "uazapi": {
    "id": "5511888888888:3EB05DCE1D4036FCE241C6",
    "messageid": "3EB05DCE1D4036FCE241C6",
    "chatid": "5511999999999@s.whatsapp.net",
    "chatlid": "123456789012345@lid",
    "fromMe": true,
    "isGroup": false,
    "groupName": "",
    "sender": "987654321098765@lid",
    "sender_pn": "5511888888888@s.whatsapp.net",
    "sender_lid": "987654321098765@lid",
    "senderName": "",
    "messageType": "InteractiveMessage",
    "mediaType": "",
    "messageTimestamp": 1792238400000,
    "source": "web",
    "status": "",
    "text": "",
    "content": {
      "nativeFlowMessage": {
        "buttons": [
          {
            "name": "payment_info",
            "buttonParamsJSON": "..."
          }
        ]
      }
    },
    "quoted": "",
    "edited": "",
    "reaction": "",
    "vote": "",
    "buttonOrListid": "",
    "convertOptions": "",
    "pinned": false,
    "owner": "5511888888888",
    "wasSentByApi": true,
    "track_source": "",
    "track_id": "",
    "response": {
      "status": "success",
      "message": "Message sent successfully"
    }
  },
  "Orkesio": {
    "id": "3EB05DCE1D4036FCE241C6",
    "chat_id": "5511999999999@s.whatsapp.net",
    "author": {
      "id": "5511888888888@s.whatsapp.net",
      "phone": "5511888888888"
    },
    "direction": "out",
    "sent_at": "2026-10-17T12:00:00.000Z",
    "category": "unsent",
    "type": "payment",
    "pix": {
      "key": "loja@exemplo.com",
      "key_type": "email",
      "merchant_name": "Loja"
    },
    "sent_by": "api",
    "status": "queued"
  }
}
```

[Botão PIX na Orkesio: canais, webhook e a resposta do contato](/docs/envio-pix)
