Application Settings
To use the Open Finance API, it is recommended to set the "receberSemChave" attribute of the Pix API to true, as incorrect configuration can affect transactions. You can find the link to the endpoint here.
redirectURLAfter the payment authorization flow, the customer is redirected from the selected bank to Efí. It then returns to the integrator website, with the following parameters added to the URL:
- Payment identifier
- This parameter will always be added as a
queryParamin the integrator URL.
Example: https://urldocliente.com.br/callback?identificadorPagamento=urn:bancoabc:1234567677 - error
- This parameter is only added when an error occurs or when payment is refused by the customer.
Example: https://urldocliente.com.br/callback?identificadorPagamento=urn:bancoabc:1234567677&erro=acesso_negado
Configure Application URLs
This endpoint is used to create or modify a configuration in the application related to the Open Finance API.
PUT /v1/config
gn.opb.config.writeRequest
- URL settings - mTLS
- URL settings - hmac
// Example configuring a URL
{
"redirectURL": "https://client.com/redirect/here",
"webhookURL": "https://client.com/callback/here",
"webhookSecurity": {
"type": "mtls"
},
"processPayment": "sync",
"generateTxIdForInic": true
}
// Example configuring a URL
{
"redirectURL": "https://client.com/redirect/here",
"webhookURL": "https://client.com/callback/here",
"webhookSecurity": {
"type": "hmac",
"hash": "abc123def567ghi"
},
"processPayment": "sync",
"generateTxIdForInic": true
}
Responses
The responses below represent Success(201) and consumption failures/errors.
- 🟢 201 (mTLS)
- 🟢 201 (hmac)
- 🔴 400
- 🔴 422
- 🔴 500
{
"redirectURL": "https://client.com/redirect/here",
"webhookURL": "https://client.com/callback/here",
"webhookSecurity": {
"type": "mtls"
},
"processPayment": "sync",
"generateTxIdForInic": true
}
{
"redirectURL": "https://client.com/redirect/here",
"webhookURL": "https://client.com/callback/here",
"webhookSecurity": {
"type": "hmac",
"hash": "abc123def567ghi"
},
"processPayment": "sync",
"generateTxIdForInic": true
}
{
"nome": "redirect_url_obrigatorio",
"mensagem": "O parâmetro redirectURL é obrigatório"
}
Or
{
"nome": "webhook_url_obrigatorio",
"mensagem": "O parâmetro webhookURL é obrigatório"
}
Or
{
"nome": "webhook_url_mtls_obrigatorio",
"mensagem": "O webhookURL precisa ter um mTLS válido"
}
{
"nome": "conta_nao_encontrada",
"mensagem": "A conta não foi encontrada"
}
Or
{
"nome": "redirect_url_invalido",
"mensagem": "O redirectURL é inválido"
}
Or
{
"nome": "webhook_seguranca_invalido",
"mensagem": "O campo webhookSecurity é inválido"
}
Or
{
"nome": "webhook_seguranca_hash_invalido",
"mensagem": "O campo hash é inválido"
}
Or
{
"nome": "webhook_url_invalido",
"mensagem": "webhookURL não acessível"
}
Or
{
"nome": "webhook_url_invalido",
"mensagem": "Erro ao fazer handshake com mTLS no webhookURL"
}
Or
{
"nome": "process_payment_invalido",
"mensagem": "O campo processPayment é inválido, permitido (async/sync)"
}
{
"nome": "erro_aplicacao",
"mensagem": "Erro interno do servidor"
}
Get Application Settings
This endpoint is used to retrieve application settings related to the Open Finance API, no parameters need to be provided.
GET /v1/config
gn.opb.config.readResponses
The responses below represent Success(200) and consumption failures/errors.
- 🟢 200
- 🔴 404
- 🔴 500
{
"redirectURL": "https://client.com/redirect/here",
"webhookURL": "https://client.com/callback/here",
"webhookSecurity": {
"type": "mtls"
},
"processPayment": "sync",
"generateTxIdForInic": true
}
{
"nome": "configuracao_nao_encontrada",
"mensagem": "Nenhuma configuração encontrada"
}
{
"nome": "configuracao_nao_encontrada",
"mensagem": "Nenhuma configuração encontrada"
}