Endpoint: POST /hb/pix/contacts
Envelope de sucesso (interceptor global):
{
"status_code": 200,
"success": true,
"message": "OK",
"data": {}
}
Envelope de erro (filtro global):
{
"status_code": 400,
"code": "VALIDATION_ERROR",
"message": "Erro de validacao",
"timestamp": "2026-02-13T00:00:00.000Z",
"path": "/exemplo",
"details": []
}
POST /hb/pix/contactsFINTECH, OPERADOR, ADMIN, GERENTEpix.entries.createPath params
Nao possui.
Query params
Nao possui.
Body
DTO: CreateBeneficiary
| Campo | Tipo | Obrigatorio | Detalhes |
|---|---|---|---|
name | string | Sim | - |
document_number | string | Nao | - |
pix_key_type | number | Sim | - |
pix_key | string | Sim | - |
spi_participant_number | string | Nao | - |
branch_code | string | Nao | - |
branch_digit | string | Nao | - |
account_number | string | Nao | - |
account_digit | string | Nao | - |
payment_account | string | Nao | - |
account_type | TipoConta | Sim | Valores permitidos: 1, 2, PAYMENT, 4 |
pix_registration_type | TipoConta | Sim | Valores permitidos: 1, 2, PAYMENT, 4 |
Headers
Authorization: Bearer <jwt>: obrigatorio.curl -X POST "https://api.seudominio.com/hb/pix/contacts" \
-H "Accept: application/json" \
-H "Authorization: Bearer SEU_JWT" \
-H "Content-Type: application/json" \
-d '{
"name": "string_exemplo",
"pix_key_type": 1,
"pix_key": "chave_exemplo",
"account_type": "1",
"pix_registration_type": "1"
}'
Data (schema)
Nao tipado no retorno do controller. Informe um tipo de retorno para documentar automaticamente.
Sucesso (201):
{
"status_code": 201,
"success": true,
"message": "Created",
"data": "<resultado da operacao>"
}
Erro (contrato padrao):
{
"status_code": 400,
"code": "VALIDATION_ERROR",
"message": "Erro de validacao",
"timestamp": "2026-02-13T00:00:00.000Z",
"path": "/hb/pix/contacts",
"details": []
}