Pagar via chave Pix

Envia um Pix usando uma chave (CPF, CNPJ, e-mail, telefone ou chave aleatória).

POST/pix/payments/key

Parâmetros

ParâmetroTipoDescrição
account_id*uuidConta de origem.
key*stringChave Pix do destinatário.
key_type*stringcpf | cnpj | email | phone | evp.
amount*integerValor em centavos.
descriptionstringMensagem 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
}