API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Open Finance · Recurring payments

Replace an installment

PATCH/v1/pagamentos-recorrentes/pix/{identificadorPagamento}/substituir/{endToEndId}
Base URL: https://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.br

Creates a new installment in place of a cancelado or rejeitado one, with the same amount or the valor given. The replacement needs a new consent: the new installment, on the old installment's date (or D+1 if that date has passed), stays pendente until the payer authorizes it on the redirectURI, and then becomes agendado. Refused, or unanswered for 1 hour, it becomes cancelado.

Authorization

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

Path parameters

identificadorPagamentostringrequired

Payment identifier returned at initiation (urn:efi:…).

Example: "urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"
endToEndIdstringrequired

Installment replaced.

Example: "E09089356202610220135ZRdgxVQqE4p"

Body

application/json
valorstring

New amount (optional).

Responses

200Installment replaced.
identificadorPagamentostringrequired

Payment identifier.

Example: "urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"
redirectURIstringrequired

Send the payer to this address to authorize at their bank. In Mimicr it is the sandbox's own consent page (/consentimento/{urn}), with Authorize and Refuse buttons.

Example: "https://openfinance.efi.mimicr.dev/consentimento/urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"
401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"
403The token lacks the scope the route requires (insufficient_scope).
errorstringrequired

Authentication error code.

invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scope
error_descriptionstringrequired

Error description.

Example: "Credenciais inválidas ou inativas"
422identificador_pagamento_invalido: the installment is neither canceled nor rejected, or the recurrence was canceled.
nomestringrequired

Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).

Example: "valor_invalido"
mensagemstringrequired

Error description.

Example: "O valor do pagamento é inválido"
500erro_aplicacao: internal server error.
nomestringrequired

Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).

Example: "valor_invalido"
mensagemstringrequired

Error description.

Example: "O valor do pagamento é inválido"