Documentation

Bank credentials

Register your bank credential and certificate in the dashboard, and choose which credential issues each charge with the X-Credential-Key header.

What a credential is

A bank credential holds the access data for your bank's API: client identifier, Pix key (Pix is Brazil's instant payment system), account details and certificate. Intopays uses it to issue Pix charges and boletos (Brazilian bank payment slips) straight into the organization's account.

The credential belongs to the organization. An organization can have several credentials, including more than one from the same bank (two Sicredi accounts, for example).

Credentials are registered and maintained only in the dashboard, with your signed-in session. The API does not create, list or change credentials: on the public Pix and boleto routes it only selects which credential issues, through the X-Credential-Key header.

BankintegrationType
SicoobSICOOB
SicrediSICREDI
Banco do BrasilBANCODOBRASIL
BradescoBRADESCO
SantanderSANTANDER
InterINTER

Register in the dashboard

Open Banking → Credenciais → Nova credencial (Banking → Credentials → New credential) and choose the bank. Every credential has two sections, one per product:

SectionWhat it holdsWho uses it
Pixthe access the bank gave for the Pix API (client ID, client secret, certificate) and the account's Pix keyonly the Pix
Boletothe collection data (covenant, contract, wallet, beneficiary) and the boleto accessonly the boleto

In O que esta credencial vai fazer (what this credential is for), choose Pix e boleto (Pix and boleto), Só Pix (Pix only) or Só boleto (boleto only). The section you do not use now can be filled in later, when editing. The Pix never reads anything from the boleto section: filling in or changing the boleto does not change how Pix is issued.

In the list, the Produtos (Products) column shows the Pix and Boleto tags of each credential. When editing, each section says Configurado (configured) or Falta: (missing) with the fields that are missing.

Pix section

BankFields of the Pix section
SicoobID do cliente (client ID), Chave Pix (Pix key), certificate
SicrediID do cliente, Chave secreta (client secret), Chave Pix, certificate
Banco do BrasilID do cliente, Chave secreta, Chave da aplicação (application key), Chave Pix, certificate
InterID do cliente, Chave secreta, Chave Pix, Conta corrente (checking account, optional), certificate
SantanderID do cliente, Chave secreta, Chave Pix, certificate
BradescoID do cliente, Chave secreta, Chave Pix, certificate

The certificate is the set of files the bank gave you: Certificado CRT (CRT certificate: .crt, .cer or .pem) with Certificado KEY (KEY certificate: .key), or Certificado PFX (PFX certificate: .pfx), plus the certificate password when there is one.

You do not type the certificate's validity. It is read from the file itself after you save (from the PFX opened with the password or, without a PFX, from the CRT) and shows in the list in the Certificado (Certificate), Válido até (Valid until) and Titular (Holder) columns.

Boleto section

The boleto section holds the data the bank needs to register boletos and the access the boleto uses.

BankCollection dataBoleto access
SicrediCooperativa (cooperative), Posto (service point), Código do beneficiário (beneficiary code)Código de acesso da cobrança (collection access code), used only by the boleto
SicoobNúmero do contrato (contract number: digits only, up to 15), Conta corrente (checking account)same as Pix or own access
Banco do BrasilNúmero do convênio (covenant number: up to 10 digits), Variação da carteira (wallet variation: up to 5 digits), Carteira (wallet)same as Pix or own access
Internonesame as Pix or own access
SantanderConvênio de cobrança (collection covenant: up to 9 digits), Workspace de cobrança (collection workspace, generated by Santander)same as Pix or own access
BradescoIntopays does not issue boletos through Bradesco yetnot applicable

A value in the wrong format is refused when you save, with the field's name in the message. Clearing the field and saving removes the value. Credentials registered before the two sections already show the covenant or contract they had.

Boleto access

At Sicoob, Banco do Brasil, Inter and Santander the boleto can use the same access as the Pix or a separate collection application in the bank's portal. In Acesso do boleto (boleto access):

OptionWhat the boleto uses
Mesmo do PIX (same as Pix)the ID, secret and certificate of the Pix section. This is the default
Acesso próprio (own access)the boleto fields of the table below. The ID and the keys count together; the certificate counts on its own: without its own certificate, the boleto uses the Pix certificate
BankFields of the own access
SicoobID do cliente do boleto (boleto client ID), boleto certificate
Banco do BrasilID do cliente do boleto, Chave secreta do boleto (boleto client secret), Chave da aplicação do boleto (boleto application key), boleto certificate
InterID do cliente do boleto, Chave secreta do boleto, boleto certificate
SantanderID do cliente do boleto, Chave secreta do boleto, boleto certificate

Use the own access when the Pix application in the bank's portal does not have the collection API enabled, or when the bank gave you different credentials for each product. In a Só boleto (boleto only) credential, the own access is the only access.

At Sicredi there is no choice: the boleto always authenticates with the Código de acesso da cobrança, generated in the bank's Internet Banking, and the Pix with the client ID and the certificate.

The boleto secrets follow the same rule as the Pix ones: they are never shown back, and a blank field keeps the current value. Going back to Mesmo do PIX and saving deletes the own access.

Verificar boleto (check boleto), in the credential's header, tests only the boleto access. A failure there does not deactivate the credential: the Pix keeps issuing.

Collection workspace (Santander)

The workspace is the Santander folder where the boletos live, tied to the covenant and to the payment notice.

  1. Fill in the Convênio de cobrança and save.
  2. In Workspace de cobrança, give it a name of 3 to 30 characters and click Criar workspace no Santander (create workspace at Santander).
  3. The ID Santander generated shows in Workspace de cobrança, in the boleto area.

The payment notice address is built by Intopays and stays fixed: registering the Pix webhook again does not change it. When Santander sends a payment notice, Intopays reads the boleto at the bank before changing its status.

Credential key

Each credential gets its own 32-character key, generated by Intopays. Copy it in Banking → Credenciais, from the ⋯ → Copiar chave da credencial (Copy credential key) menu. The key does not change when you edit, activate or deactivate the credential, and the list never shows the bank's secrets: only the credential key.

Send the key in the X-Credential-Key header when you create a Pix charge or issue a boleto. It only selects the credential: authentication is still the organization token.

RequestCredential used for PixCredential used for boleto
With X-Credential-Keythe credential of that key. It must belong to the token's organization and be activethe same
Without the key, with integrationType in the bodythe first active credential of that bank (the oldest)the first active credential of that bank with the boleto configured
Without the key and without integrationTypethe organization's first active credential (the oldest)the first active credential with the boleto configured

For Pix the choice does not look at the credential's products: it is always the oldest active one. For boletos, if no active credential has the boleto configured, the oldest active one is used and the bank answers what is missing.

With more than one credential, always send the key. A Só boleto (boleto only) credential older than the Pix one, for example, would be the one chosen for a Pix sent without the key.

Active and inactive

Every credential starts active. To deactivate it, use ⋯ → Desativar (Deactivate) in the list; ⋯ → Ativar (Activate) enables it again.

An inactive credential never issues, with or without the key. The charges it already issued are still looked up and canceled through it. Prefer deactivating to deleting while there are open charges: deleting removes the credential for good.

Edit, test and delete

Open the credential from the list's ⋯ → Editar (Edit) menu.

ActionHow
Change a valuechange the field and save. The bank cannot change after registration
Change a secretthe Chave secreta (Secret key), Chave da aplicação (Application key), Código de acesso da cobrança (Collection access code) and Senha do certificado (Certificate password) fields show empty with Configurado — em branco mantém o atual (set — leave blank to keep it). Type a new value only to replace it
Change the certificateupload the new file in Certificado CRT, Certificado KEY or Certificado PFX. It replaces the previous file of the same type, and the validity becomes the new file's
TestVerificar conexão (Check connection), in the header, shows whether the bank accepted the Pix access (the button does not show on a boleto-only credential). A warning means the bank accepted it, but the payment notice could not be registered with it
DeleteExcluir credencial (Delete credential) and Confirmar exclusão (Confirm deletion). Pix charges and boletos are no longer issued through it; what it already issued stays in the history

The certificate is limited to 64 KB. A file with another extension is refused: use .crt, .cer, .pem, .key or .pfx.

Organization members need the Credenciais bancárias (Bank credentials) permission in the Pagamentos (Payments) area (see Members and permission groups).

Credential selection errors

These errors come from the public Pix and boleto routes, when the key or the bank does not point to a credential that can issue:

StatusResponseFix
400Bank credential not found for the provided X-Credential-KeyCopy the key again from ⋯ → Copiar chave da credencial. The credential must belong to the token's organization
400The bank credential of the provided X-Credential-Key is inactiveActivate the credential with ⋯ → Ativar or use another one
400integrationType ... does not match the credential of the provided X-Credential-KeyRemove integrationType or send the credential's bank
403Você precisa criar uma credencial para: SICOOBRegister or activate a credential of that bank ("you need to create a credential for: SICOOB")
403Você precisa criar uma credencial bancária ativaRegister or activate a credential ("you need an active bank credential")
400O banco BRADESCO não emite boleto pela Intopays…Boleto only ("the bank does not issue boletos through Intopays"): send the X-Credential-Key of a credential from another bank

Missing something on this page? Contact support from the dashboard and we'll update the docs.