Documentation

Integration logs

Check in the dashboard the errors returned by the bank and SEFAZ to find out why a Pix charge, boleto or invoice failed.

What gets recorded

Intopays writes a log whenever the bank, SEFAZ (the state tax authority) or the Sefin Nacional (the national NFS-e system) returns an error for an operation of your organization. Only errors are recorded: an operation that succeeds creates no log.

OperationWhen the error is recordedreference
pix.createthe bank refused to create the Pix charge (Pix is Brazil's instant payment system)the identifier generated for the charge that failed
pix.updatethe status check at the bank failed while reading a Pix chargethe charge's transactionId
boleto.createthe bank refused to issue the boleto (Brazilian bank payment slip)the boleto's reference code
boleto.updatethe boleto check at the bank failedthe boleto's reference code
boleto.deletethe bank refused to cancel the boletothe boleto's reference code
fiscal.createissuing the invoice at SEFAZ or at the Sefin Nacional failedthe referenceCode sent when issuing, if any
fiscal.updatechecking the invoice at SEFAZ or at the Sefin Nacional failedthe invoice's access key (for an NFS-e without a key yet, the DPS id)
fiscal.deletecancelling the invoice was refused or got no answerthe invoice's access key

The periodic status check Intopays runs against the banks does not create logs.

View in the dashboard

Logs live only in the dashboard, under Integração → Logs (Integration → Logs). The API does not list logs with a token: you read them with your signed-in session.

The list shows Provedor (Provider), Operação (Operation), Referência (Reference), Status and Data (Date), newest first. You can search by reference (TXID or code) and filter by Provedor and Operação. Click a row to see the details. Exportar (Export) downloads the filtered list as an .xlsx spreadsheet, with the message and the provider's response.

Organization members need the Logs permission of the Integração area.

What each log shows

InformationUse
Provedor (Provider)who returned the error: the credential's bank (SICOOB, SICREDI, BANCODOBRASIL, BRADESCO, SANTANDER, INTER), SEFAZ (NFC-e and NF-e) or SEFIN NACIONAL (NFS-e)
Operação (Operation)the operation that failed, as in the table above
Referência (Reference)identifier to match the log with the charge or invoice; may be empty
StatusHTTP status returned by the provider; empty when there was no response
Mensagem (Message)error message, up to 500 characters
Resposta do provedor (Provider response)the provider's response body, as text, up to 2000 characters; empty when there was no response
Data (Date)date and time of the error

Sensitive data

The log stores only what the provider returned. The data you sent in the request is not recorded.

Before saving, the message and the provider's response are cleaned:

  • Values of secret fields, such as password, senha, token, secret, authorization, certificate, client_secret, csc and pixKey, become [REDACTED].
  • Sequences of 11 or more digits, such as CPF and CNPJ (Brazilian individual and company taxpayer IDs) and access keys, become [REDACTED].
  • Text over the limit is cut and ends with ….

Diagnose a failure

  1. Note the operation that failed and the time of the call.
  2. In Integração → Logs, filter by Operação. For Pix and boleto, also filter by Provedor with the credential's bank. For invoices, use the SEFAZ provider (NFC-e and NF-e) or SEFIN NACIONAL (NFS-e).
  3. If you have the reference, such as the Pix transactionId or the invoice's access key, search for part of it.
  4. Open the log and read the Status and the Resposta do provedor: that is the bank's or SEFAZ's answer for that operation.
What the log showsMeaning
Status filled inthe provider answered with that status; the reason is in Resposta do provedor
Status emptythe provider did not answer; Mensagem gives the cause

The API's own validations, such as a missing field or a credential that does not exist, do not create logs: the reason comes in the request's response. See the errors in Create a Pix charge, Issue an NFC-e, Issue an NF-e and Issue an NFS-e.

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