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

Create a recurring Pix

POST/v1/pagamentos-recorrentes/pix
Base URL: https://openfinance.efi.mimicr.dev · provider: https://openfinance-h.api.efipay.com.br

Initiates a Pix recurrence with a single consent for all installments. After the consent the recurrence becomes ativa and each installment stays agendado until its date. The recurrence ends concluida when no open installment is left.

Authorization

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

Headers

x-idempotency-keystringrequired

Idempotency key, 36 to 72 characters (a UUID works). The same key with the same body returns the first response; with another body, 409 conflito_chave_idempotencia. Missing: 400 chave_idempotencia_obrigatorio; wrong length: 431 chave_idempotencia_invalida.

Example: "6f1c1d2e-9a3b-4c5d-8e7f-0a1b2c3d4e5f"

Body

application/json
pagadorobjectrequired
Show child attributes
idParticipantestringrequired

Payer's bank: the identificador from List participants.

Example: "9f4cd202-8f2b-11ec-b909-0242ac120002"
cpfstringrequired

Payer's CPF (11 digits). For a company account, the CPF of the account holder who authorizes.

Example: "94271564656"
cnpjstring

CNPJ, when the debited account belongs to a company (14 digits).

favorecidoobject

Who receives: contaBanco or chave. Leave the payee out when paying a QR Code (pagamento.qrCode). In Mimicr, when the payee is the sandbox's own account (its Efí account or one of its Pix keys), the amount goes into the balance.

Show child attributes
contaBancoobject
Show child attributes
nomestringrequired

Payee name.

Example: "Lucas Silva"
documentostring

Payee's CPF or CNPJ.

Example: "17558266300"
codigoBancostringrequired

ISPB of the payee's bank (8 digits). 09089356 is Efí.

Example: "09089356"
agenciastringrequired

Branch, without check digit.

Example: "0001"
contastringrequired

Account number, with check digit.

Example: "654984"
tipoContastringrequired

CACC checking, SLRY salary, SVGS savings, TRAN payment account.

CACCSLRYSVGSTRAN
chavestring

Payee's Pix key.

Example: "2badfe30-d03b-4da1-9f2f-02b5dcef765c"
pagamentoobjectrequired
Show child attributes
valorstringrequired

Amount in reais with two decimals. In homologation, 0.11 is rejected and any other amount is accepted.

Example: "9.99"
infoPagadorstring

Payer's message.

Example: "Churrasco"
idPropriostring

Your own identifier, returned in queries and webhooks. Must be text.

Example: "6236574863254"
codigoCidadeIBGEstring

IBGE city code (7 digits).

qrCodestring

Pix copy and paste (BR Code), when paying a QR Code.

identificadorTransacaostring

txid of the charge, when there is one.

recorrenciaobjectrequired

Installment schedule. dataInicio ranges from D+1 to D+365 and quantidade from 2 to 60.

diaria
tipostringrequired

diaria

diaria
dataIniciostring<date>required

First installment, YYYY-MM-DD.

quantidadeintegerrequired

Number of installments (2 to 60).

semanal
tipostringrequired

semanal

semanal
dataIniciostring<date>required

From this date, YYYY-MM-DD.

diaDaSemanastringrequired

Weekday of the installments.

SEGUNDA_FEIRATERCA_FEIRAQUARTA_FEIRAQUINTA_FEIRASEXTA_FEIRASABADODOMINGO
quantidadeintegerrequired

Number of installments (2 to 60).

mensal
tipostringrequired

mensal

mensal
dataIniciostring<date>required

From this date, YYYY-MM-DD.

diaDoMesintegerrequired

Day of the month (1 to 31; in shorter months, the last day).

quantidadeintegerrequired

Number of installments (2 to 60).

personalizada
tipostringrequired

personalizada

personalizada
datasstring<date>[]required

2 to 60 dates, from D+1 to D+730.

descricaostring

Recurrence description.

Responses

200Payment created, waiting for the payer's consent.
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"
400Missing required field (cpf_pagador_obrigatorio, identificador_participante_obrigatorio, valor_obrigatorio, codigo_banco_favorecido_obrigatorio, nome_favorecido_obrigatorio, dados_pagador_obrigatorio…), chave_idempotencia_obrigatorio or erro_iniciacao_pagamento.
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"
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"
409conflito_chave_idempotencia: the same idempotency key with another body.
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"
422Invalid field (valor_invalido, tipo_conta_favorecido_invalida, cpf_pagador_invalido, identificador_participante_invalido, id_proprio_invalido, codigo_cidade_ibge_invalido…).
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"
431chave_idempotencia_invalida: the key is not 36 to 72 characters long.
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.
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"