API Reference
Replace an installment
/v1/pagamentos-recorrentes/pix/{identificadorPagamento}/substituir/{endToEndId}https://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.brCreates 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
Payment identifier returned at initiation (urn:efi:…).
"urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"Installment replaced.
"E09089356202610220135ZRdgxVQqE4p"Body
application/jsonNew amount (optional).
Responses
200Installment replaced.
Payment identifier.
"urn:efi:31ad3884-2914-4b63-a9f5-560f3ce13cce"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.
"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).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"403The token lacks the scope the route requires (insufficient_scope).
Authentication error code.
invalid_clientunsupported_grant_typeinvalid_tokeninsufficient_scopeError description.
"Credenciais inválidas ou inativas"422identificador_pagamento_invalido: the installment is neither canceled nor rejected, or the recurrence was canceled.
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"500erro_aplicacao: internal server error.
Error code, in snake_case (e.g. valor_invalido, chave_idempotencia_obrigatorio).
"valor_invalido"Error description.
"O valor do pagamento é inválido"