Documentation

Issue a boleto

Issue a boleto through the API with POST /v1/boletos: fields, bank-specific details, response and errors.

Before you start

A boleto (Brazilian bank payment slip) is registered straight into the organization's bank account, through the integration with the bank. Register the bank credential under Banking → Credenciais (Banking → Credentials) and use an organization token. Issuing a boleto requires an active subscription.

HeaderRequiredValue
AuthorizationyesBearer <organization token>
X-Credential-Keynokey of the credential that issues the boleto

Without X-Credential-Key, the boleto goes out through the organization's first active credential that has the boleto configured, from the oldest to the newest. If the body sends integrationType, the first one of that bank is used. If no active credential has the boleto configured, the oldest active one is used and the bank answers what is missing.

Issue the boleto

curl -X POST https://api.intopays.com/v1/boletos \
  -H "Authorization: Bearer $INTOPAYS_TOKEN" \
  -H "X-Credential-Key: $INTOPAYS_CREDENTIAL_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 350.00,
    "dueDate": "2026-12-10T00:00:00.000Z",
    "daysAfterDueDateForCancellation": 30,
    "payerDocument": "12345678909",
    "payerName": "Maria Silva",
    "payerEmail": "[email protected]",
    "payerZipCode": "01310100",
    "payerAddress": "Avenida Paulista",
    "payerNumber": "1000",
    "payerNeighborhood": "Bela Vista",
    "payerCity": "São Paulo",
    "payerState": "SP",
    "messageLine1": "Mensalidade de dezembro"
  }'
FieldRequiredValues
amountyesamount in Brazilian reais, greater than zero
dueDateyesdue date
daysAfterDueDateForCancellationyesdays after the due date during which the boleto can still be paid, from 1
payerDocumentyespayer's CPF or CNPJ (individual or company taxpayer ID) with a valid check digit (punctuation is ignored). Digits only: the alphanumeric CNPJ (with letters) is not accepted on boletos yet
payerNameyespayer's name
payerZipCodeyespayer's CEP (Brazilian ZIP code)
payerAddressyespayer's street
payerNumber, payerComplement, payerNeighborhood, payerCityno (Santander: payerNeighborhood and payerCity yes)rest of the payer's address
payerStateno (Santander: yes)two-letter state code (UF), such as SP
payerEmail, payerPhonenopayer's contact
messageLine1, messageLine2nomessages printed on the boleto
referenceCodenoyour number for the boleto, unique in the organization. Without it, Intopays generates one
integrationTypenothe bank. Only used without X-Credential-Key, to pick the first active credential of that bank. With the key, if sent, it must be the credential's bank

Late fee, interest and discount

All optional. Without them, the boleto has no late fee, no interest and no discount.

FieldRequiredValues
fineCodenoNO_FINE (default), AMOUNT, PERCENT
fineDate, fineValue, fineRatenostart date, amount and percentage of the late fee
interestCodenoEXEMPT (default), AMOUNT_PER_DAY, MONTHLY_RATE
interestDate, interestValue, interestRatenostart date, amount and percentage of the interest
discount1Code, discount2CodenoNO_DISCOUNT (default), FIXED_VALUE_UNTIL_INFORMED_DATE, PERCENTAGE_UNTIL_INFORMED_DATE
discount1Date, discount1Value, discount1Ratenodeadline, amount and percentage of the first discount
discount2Date, discount2Value, discount2Ratenothe same for the second discount
finalBeneficiaryName, finalBeneficiaryDocumentnofinal beneficiary, when different from the account holder
finalBeneficiaryZipCode, finalBeneficiaryAddress, finalBeneficiaryNeighborhood, finalBeneficiaryCity, finalBeneficiaryStatenofinal beneficiary's address

Each bank accepts a subset of these fields. Check on the issued boleto that the late fee, interest and discount came out as you sent them.

Bank-specific details

BankBoletoNotes
SicoobyesreferenceCode with 18 characters; payer's name and street limited to 40 characters; returns qrcode
SicrediyesreferenceCode with 10 characters; name and street limited to 40 and city to 25 characters; does not return qrcode
Banco do BrasilyesreferenceCode with 15 characters; name and street limited to 40 characters; returns qrcode
SantanderyesreferenceCode with 13 characters; requires payerName, payerAddress, payerNeighborhood, payerCity, a valid payerState and an 8-digit payerZipCode; interest only MONTHLY_RATE; a discount needs a date and a value; a fixed late fee becomes a percent of the boleto; the final beneficiary is not sent; the credential needs the collection covenant and workspace (Bank credentials); returns qrcode
InteryesreferenceCode with 10 characters; daysAfterDueDateForCancellation above 60 counts as 60; does not return qrcode
Bradesconoissuing answers 400 with Method not implemented.

A referenceCode shorter than the bank's length is padded with X on the left. A longer one is cut, keeping the last characters.

Response

The API answers 201 with the boleto registered at the bank. Main fields:

{
  "id": "0193a1b2-7c4d-7e8f-9a0b-1c2d3e4f5a6b",
  "status": "OPEN",
  "integrationType": "SICOOB",
  "amount": 350,
  "dueDate": "2026-12-10T00:00:00.000Z",
  "daysAfterDueDateForCancellation": 30,
  "payerDocument": "12345678909",
  "payerName": "Maria Silva",
  "referenceCode": "XINTOPAYSXSI200000",
  "integrationBankingCode": "1048",
  "digitableLine": "75691324560100254871300001048001912340000035000",
  "barcode": "75699123400000350001324501002548713000010480",
  "qrcode": "00020101021226950014br.gov.bcb.pix2573…",
  "createdAt": "2026-11-15T14:20:06.153Z",
  "updatedAt": "2026-11-15T14:20:07.412Z"
}
FieldUse
idthe boleto's identifier at Intopays, to look it up and cancel it
digitableLinethe typeable line (linha digitável)
barcodebarcode
qrcodethe boleto's Pix copy-and-paste code (Pix is Brazil's instant payment system), at the banks that return it
integrationBankingCode"nosso número", the number assigned by the bank
referenceCodeyour number
statusthe boleto's situation; see Look up and cancel boletos

Issuing fires the boleto.create event on the organization's webhooks.

Errors

StatusResponseFix
400Param is Missing: <campo>Send payerDocument, amount, dueDate and daysAfterDueDateForCancellation
400name of the invalid field: amount, daysAfterDueDateForCancellation, payerDocument, integrationType (at Santander also payerName, payerAddress, payerNeighborhood, payerCity, payerState, payerZipCode)Fix the value according to the fields table. payerDocument must be a CPF or CNPJ with a valid check digit
400Bank credential not found for the provided X-Credential-KeyUse the key of a credential of this organization
400The bank credential of the provided X-Credential-Key is inactiveActivate the credential in Credenciais or use another one
400integrationType ... does not match the credential of the provided X-Credential-KeyRemove integrationType or send the credential's bank
400the bank's response as text (code, field and message), in messageThe bank refused the boleto and it is not kept. Fix what it points out and send it again, with the same referenceCode if you want
400O banco BRADESCO não emite boleto pela Intopays…The chosen credential belongs to a bank without boletos here. Send the X-Credential-Key of a credential from another bank
400Credencial sem convênio de cobrança do Santander… or …sem workspace de cobrança… (the credential has no Santander collection covenant / workspace)Fill in the covenant and create the workspace in the credential's boleto area
503O banco não respondeu ao registro do boleto… (the bank did not answer the registration), with the boleto idThe bank did not answer and the registration may have happened. The boleto stays PROCESSING and Intopays checks it with the bank. Do not send it again: read it by id
401invalid token or inactive subscriptionSee Authentication
403Você precisa criar uma credencial bancária ativa ("you need to create an active bank credential")Register or activate a credential in Credenciais

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