API Reference
Request an account
/v1/conta-simplificadahttps://abrircontas.efi.mimicr.dev · provider: https://abrircontas-h.api.efipay.com.brRequests an Efí account on behalf of your customer (simplified account), with an application already integrated with yours. Efí sends the end client a link to approve, by SMS or WhatsApp. Requires a registered webhook (Register a webhook), otherwise it answers 412. In Mimicr the link is the /aprovar/{identificador} page of this host (or the abrircontas.decide action): approved, the account opens within a few seconds and the webhook receives conta_aberta; refused, conta_recusada_pelo_cliente_final.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Body
application/jsonShow child attributes
CPF (11 digits, valid).
"94271564656"First and last name.
"Gorbadoc Oldbuck"DD/MM/YYYY. The customer must be of legal age.
"15/01/1977"Mother's name.
Mobile number with area code (10 or 11 digits).
"31987654321"E-mail.
"oldbuck@example.com"CNPJ, to open an Efí Empresas account. Without it, the account is Efí Pro.
Required with cnpj.
Show child attributes
Postal code (8 digits).
State (UF).
City.
Neighborhood.
Street.
Number.
Address complement.
Where the approval link is sent.
smswhatsappScopes of the application created in the new account.
21 values
cob.writecob.readpix.writepix.readwebhook.writewebhook.readpayloadlocation.writepayloadlocation.readgn.pix.send.readgn.pix.evp.writegn.pix.evp.readgn.balance.readgn.settings.writegn.settings.readgn.opb.participants.readgn.opb.payment.pix.sendgn.opb.payment.pix.readgn.opb.payment.pix.refundgn.opb.payment.pix.cancelgn.opb.config.writegn.opb.config.readCoupon (1 to 20 characters).
Responses
200Request created, waiting for the end client.
Show child attributes
Request identifier.
"1c0a1b4a-0ff9-4596-aab7-57b12d864f14"400Invalid customer data: cpf_invalido, nomeCompleto_invalido, nome_completo_invalido, data_nascimento_invalida, menoridade, nome_mae_invalido, celular_invalido, email_invalido, cep_invalido, cnpj_invalido, razao_social_invalida or cupom_invalido.
Error code.
"conta_nao_encontrada"Error description.
"Conta simplificada não encontrada."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"409solicitacao_duplicada (there is already an open request for the CPF), email_cadastrado or celular_cadastrado (already used by an opened account).
Error code.
"conta_nao_encontrada"Error description.
"Conta simplificada não encontrada."412webhook_nao_cadastrado: register a webhook first.
Error code.
"conta_nao_encontrada"Error description.
"Conta simplificada não encontrada."500erro_aplicacao: "Ocorreu um erro na aplicação."
Error code.
"conta_nao_encontrada"Error description.
"Conta simplificada não encontrada."