Create a recurring charge with a server-generated txid
Headers
- Type: stringIdempotency
- Key required
Body·
required
application/json
- Type: object ·calendariorequired
Calendário da cobrança recorrente
- Type: stringid
Rec required - Type: object ·valorrequired
- Type: booleanajuste
Dia Util - Type: object ·devedor
Devedor da cobrança recorrente
- Type: stringinfo
Adicional - Type: string enumpolitica
Retentativa values- N
A O _ P E R M I T E - P
E R M I T E _3 R _7 D
- Type: object ·recebedor
Recebedor da cobrança recorrente
Responses
- application/json
- 400
Requisição inválida
- 403
Acesso negado — credencial sem o escopo exigido pela operação ou certificado rejeitado. Respondido no gateway de exposição (Bacen: AcessoNegado)
- 503
Serviço temporariamente indisponível (Bacen: ServicoIndisponivel)
Request Example for post/api/cobr
curl http://localhost:8080/api/cobr \
--request POST \
--header 'Idempotency-Key: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"idRec": "",
"calendario": {
"criacao": "",
"dataDeVencimento": ""
},
"valor": {
"original": ""
},
"ajusteDiaUtil": true,
"recebedor": {
"agencia": "",
"conta": "",
"tipoConta": "CORRENTE",
"cnpj": "",
"nome": "",
"convenio": ""
},
"devedor": {
"cpf": "",
"cnpj": "",
"nome": "",
"email": "",
"logradouro": "",
"cidade": "",
"uf": "",
"cep": ""
},
"infoAdicional": "",
"politicaRetentativa": "NAO_PERMITE"
}'
{
"txid": "string",
"idRec": "string",
"calendario": {
"criacao": "2026-09-16T19:14:18.660Z",
"dataDeVencimento": "2026-09-16"
},
"valor": {
"original": "string"
},
"ajusteDiaUtil": true,
"recebedor": {
"agencia": "string",
"conta": "string",
"tipoConta": "CORRENTE",
"cnpj": "string",
"nome": "string",
"convenio": "string"
},
"devedor": {
"cpf": "string",
"cnpj": "string",
"nome": "string",
"email": "string",
"logradouro": "string",
"cidade": "string",
"uf": "string",
"cep": "string"
},
"infoAdicional": "string",
"politicaRetentativa": "NAO_PERMITE",
"status": "CRIADA",
"encerramento": {
"rejeicao": {
"codigo": "string",
"descricao": "string"
},
"cancelamento": {
"solicitante": "PSP_PAGADOR",
"codigo": "string",
"descricao": "string"
}
},
"tentativas": [
{
"endToEndId": "string",
"tipo": "AGND",
"status": "SOLICITADA",
"dataLiquidacao": "2026-09-16",
"rejeicao": {
"codigo": "string",
"descricao": "string"
},
"atualizacao": [
{
"status": "string",
"statusAnterior": "string",
"origem": "USER",
"motivo": "string",
"data": "2026-09-16T19:14:18.660Z"
}
]
}
],
"atualizacao": [
{
"status": "string",
"statusAnterior": "string",
"origem": "USER",
"motivo": "string",
"data": "2026-09-16T19:14:18.660Z"
}
]
}