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.
| Header | Required | Value |
|---|---|---|
Authorization | yes | Bearer <organization token> |
X-Credential-Key | no | key 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"
}'
| Field | Required | Values |
|---|---|---|
amount | yes | amount in Brazilian reais, greater than zero |
dueDate | yes | due date |
daysAfterDueDateForCancellation | yes | days after the due date during which the boleto can still be paid, from 1 |
payerDocument | yes | payer'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 |
payerName | yes | payer's name |
payerZipCode | yes | payer's CEP (Brazilian ZIP code) |
payerAddress | yes | payer's street |
payerNumber, payerComplement, payerNeighborhood, payerCity | no (Santander: payerNeighborhood and payerCity yes) | rest of the payer's address |
payerState | no (Santander: yes) | two-letter state code (UF), such as SP |
payerEmail, payerPhone | no | payer's contact |
messageLine1, messageLine2 | no | messages printed on the boleto |
referenceCode | no | your number for the boleto, unique in the organization. Without it, Intopays generates one |
integrationType | no | the 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.
| Field | Required | Values |
|---|---|---|
fineCode | no | NO_FINE (default), AMOUNT, PERCENT |
fineDate, fineValue, fineRate | no | start date, amount and percentage of the late fee |
interestCode | no | EXEMPT (default), AMOUNT_PER_DAY, MONTHLY_RATE |
interestDate, interestValue, interestRate | no | start date, amount and percentage of the interest |
discount1Code, discount2Code | no | NO_DISCOUNT (default), FIXED_VALUE_UNTIL_INFORMED_DATE, PERCENTAGE_UNTIL_INFORMED_DATE |
discount1Date, discount1Value, discount1Rate | no | deadline, amount and percentage of the first discount |
discount2Date, discount2Value, discount2Rate | no | the same for the second discount |
finalBeneficiaryName, finalBeneficiaryDocument | no | final beneficiary, when different from the account holder |
finalBeneficiaryZipCode, finalBeneficiaryAddress, finalBeneficiaryNeighborhood, finalBeneficiaryCity, finalBeneficiaryState | no | final 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
| Bank | Boleto | Notes |
|---|---|---|
| Sicoob | yes | referenceCode with 18 characters; payer's name and street limited to 40 characters; returns qrcode |
| Sicredi | yes | referenceCode with 10 characters; name and street limited to 40 and city to 25 characters; does not return qrcode |
| Banco do Brasil | yes | referenceCode with 15 characters; name and street limited to 40 characters; returns qrcode |
| Santander | yes | referenceCode 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 |
| Inter | yes | referenceCode with 10 characters; daysAfterDueDateForCancellation above 60 counts as 60; does not return qrcode |
| Bradesco | no | issuing 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"
}
| Field | Use |
|---|---|
id | the boleto's identifier at Intopays, to look it up and cancel it |
digitableLine | the typeable line (linha digitável) |
barcode | barcode |
qrcode | the 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 |
referenceCode | your number |
status | the boleto's situation; see Look up and cancel boletos |
Issuing fires the boleto.create event on the organization's webhooks.
Errors
| Status | Response | Fix |
|---|---|---|
400 | Param is Missing: <campo> | Send payerDocument, amount, dueDate and daysAfterDueDateForCancellation |
400 | name 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 |
400 | Bank credential not found for the provided X-Credential-Key | Use the key of a credential of this organization |
400 | The bank credential of the provided X-Credential-Key is inactive | Activate the credential in Credenciais or use another one |
400 | integrationType ... does not match the credential of the provided X-Credential-Key | Remove integrationType or send the credential's bank |
400 | the bank's response as text (code, field and message), in message | The 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 |
400 | O 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 |
400 | Credencial 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 |
503 | O banco não respondeu ao registro do boleto… (the bank did not answer the registration), with the boleto id | The 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 |
401 | invalid token or inactive subscription | See Authentication |
403 | Você 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.
