API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Pix Automático: charges and locations

Cancel a recurring charge

PATCH/v2/cobr/{txid}
Base URL: https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.br

Cancels a recurring charge with {"status": "CANCELADA"}, before the date of the first settlement attempt.

Scope: cobr.write.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

txidstringrequired

Transaction id (^[a-zA-Z0-9]{26,35}$).

Body

application/json
statusstringrequired

CANCELADA.

CANCELADA

Responses

200Charge cancelled.
idRecstring

Recurrence id (29 characters).

Example: "RR0908935620261021bpo4rn59u8l"
txidstring

Transaction id: alphanumeric, 26 to 35 characters (^[a-zA-Z0-9]{26,35}$).

Example: "3136957d93134f2184b369e8f1c0729d"
infoAdicionalstring

Additional information for the payer (up to 140 characters).

Example: "Mensalidade"
calendarioobject

Dates of the charge.

Show child attributes
criacaostring

Creation date and time (RFC 3339).

Example: "2026-10-21"
dataDeVencimentostring

Due date (YYYY-MM-DD).

Example: "2026-10-28"
valorobject

Amounts.

Show child attributes
originalstring

Original amount in BRL (\d{1,10}\.\d{2}), greater than zero.

Example: "35.00"
statusstring

Recurring charge status: CRIADA, ATIVA, CONCLUIDA, EXPIRADA, REJEITADA or CANCELADA.

CRIADAATIVACONCLUIDAEXPIRADAREJEITADACANCELADA
Example: "CANCELADA"
politicaRetentativastring

Retry policy: NAO_PERMITE or PERMITE_3R_7D (up to 3 retries within 7 days).

Example: "PERMITE_3R_7D"
ajusteDiaUtilboolean

true: a settlement that falls on a non-business day moves to the next business day.

Example: true
devedorobject

Individual or company that owes the charge. Send cpf or cnpj, never both.

Show child attributes
ufstring

State (2 letters).

Example: "SP"
cepstring

Postal code (CEP), digits only.

Example: "01310100"
emailstring

E-mail.

Example: "fulano@example.com"
recebedorobject

Efí account that receives: conta, tipoConta (PAGAMENTO) and agencia.

Show child attributes
cnpjstring

CNPJ, digits only (14 digits).

Example: "91881697000102"
nomestring

Receiver's name.

Example: "Exemplos Efi"
contastring

Account, with check digit and no hyphen.

Example: "123456"
agenciastring

Branch, without check digit.

Example: "0001"
tipoContastring

Account type.

Example: "PAGAMENTO"
tentativasobject[]

Settlement attempts.

Show child attributes
tipostring

Type.

Example: "AGND"
statusstring

Status.

Example: "CANCELADA"
endToEndIdstring

End-to-end id of the Pix (32 characters, starts with E).

Example: "E60746948202610212341kVadlyn0XbF"
atualizacaoobject[]

History of status changes.

Show child attributes
datastring

Date and time.

Example: "2026-10-21T23:41:03.949Z"
statusstring

Status.

Example: "SOLICITADA"
dataLiquidacaostring

Expected settlement date (YYYY-MM-DD).

Example: "2026-10-28"
encerramentoobject

Reason for the closing (rejection or cancellation).

Show child attributes
cancelamentoobject

Cancellation data.

Show child attributes
codigostring

Reason code.

Example: "SLCR"
descricaostring

Description.

Example: "Cancelamento de agendamento solicitado pelo usuário recebedor"
solicitantestring

Who cancelled: USUARIO_PAGADOR or USUARIO_RECEBEDOR.

Example: "USUARIO_RECEBEDOR"
atualizacaoobject[]

History of status changes.

Show child attributes
datastring

Date and time.

Example: "2026-10-21T23:41:00.234Z"
statusstring

Status.

Example: "CRIADA"
400CobROperacaoInvalida: cannot cancel on or after the date of the first attempt.
typestringrequired

URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.

Example: "https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"
titlestringrequired

Short title of the problem.

Example: "Não Encontrado"
statusintegerrequired

HTTP status code of the problem.

Example: 404
detailstringrequired

Description of the problem.

Example: "Entidade não encontrada."
violacoesobject[]

Violations found in the request.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

Property that caused the violation.

401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"
403The token lacks the required scope (insufficient_scope).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"
404NaoEncontrado: the resource does not exist.
typestringrequired

URI that identifies the problem type, under https://pix.bcb.gov.br/api/v2/error/.

Example: "https://pix.bcb.gov.br/api/v2/error/NaoEncontrado"
titlestringrequired

Short title of the problem.

Example: "Não Encontrado"
statusintegerrequired

HTTP status code of the problem.

Example: 404
detailstringrequired

Description of the problem.

Example: "Entidade não encontrada."
violacoesobject[]

Violations found in the request.

Show child attributes
razaostring

Reason for the violation.

propriedadestring

Property that caused the violation.