curl --location --request PUT 'https://apisandbox.delbank.com.br/baas/v1/charges/304c439c-4b17-4a75-abb1-2526e356cdad/closeout' \
--header 'x-delbank-api-key: {{apiKey}}' \
--header 'x-delfinance-account-id: {{accountId}}'
{}
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
"title": "Not Found",
"status": 404,
"traceId": "00-8a3919c1917bff4f84367110dcf0680a-e156f57e8851b5be-00"
}
Boleto
Cancelar boleto (closeout)
Baixe e cancele um boleto pendente. Após a baixa o boleto não pode mais ser pago.
PUT
/
baas
/
v1
/
charges
/
{correlationId}
/
closeout
curl --location --request PUT 'https://apisandbox.delbank.com.br/baas/v1/charges/304c439c-4b17-4a75-abb1-2526e356cdad/closeout' \
--header 'x-delbank-api-key: {{apiKey}}' \
--header 'x-delfinance-account-id: {{accountId}}'
{}
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
"title": "Not Found",
"status": 404,
"traceId": "00-8a3919c1917bff4f84367110dcf0680a-e156f57e8851b5be-00"
}
Para o passo a passo completo, veja o guia Gerenciar Boleto.
A baixa não cancela um pagamento já realizado. Se o boleto foi pago antes desta chamada, o pagamento permanece registrado.
Headers
string
required
Sua API key.
string
required
Número da conta Delfinance.
Path
string
required
GUID do boleto a ser cancelado.
Response
Retorna200 OK com corpo vazio em caso de sucesso. O status do boleto passa para Cancelled.
curl --location --request PUT 'https://apisandbox.delbank.com.br/baas/v1/charges/304c439c-4b17-4a75-abb1-2526e356cdad/closeout' \
--header 'x-delbank-api-key: {{apiKey}}' \
--header 'x-delfinance-account-id: {{accountId}}'
{}
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
"title": "Not Found",
"status": 404,
"traceId": "00-8a3919c1917bff4f84367110dcf0680a-e156f57e8851b5be-00"
}

