Pagar via chave Pix
Envia um Pix usando uma chave (CPF, CNPJ, e-mail, telefone ou chave aleatória).
POST
/pix/payments/keyParâmetros
| Parâmetro | Tipo | Descrição |
|---|---|---|
| account_id* | uuid | Conta de origem. |
| key* | string | Chave Pix do destinatário. |
| key_type* | string | cpf | cnpj | email | phone | evp. |
| amount* | integer | Valor em centavos. |
| description | string | Mensagem ao recebedor. |
Exemplo de requisição
curl -X POST https://api.pix.nixfin.com.br/pix/payments/key \
-H "Authorization: Bearer $BS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "acc_9f2b3c",
"key": "maria@example.com",
"key_type": "email",
"amount": 8900,
"description": "Pagamento serviço"
}'Exemplo de resposta
{
"id": "pix_k4l5m6",
"status": "processing",
"end_to_end_id": "E55566677202604231410K4L5M6N7O8P",
"amount": 8900
}