Consult boleto
This endpoint is used to query information about a boleto.
Boleto
This is the conventional boleto (with digitable lines not starting with the digit 8). It is registered with the Interbank Payment Clearinghouse (CIP/Núclea) and can be paid at financial institutions and payment institutions authorized to operate by the Central Bank.
Request
Request Endpoint
ENDPOINT
/bill_payment/bank_slip/DIGITABLE_LINE or BARCODEMÉTODO
GETRequest Path Params
Field | Type | Description | Characters |
---|---|---|---|
digitable_line | string | Digitable line to be queried. | 47 |
barcode | string | Barcode to be queried. | 44 |
Response
Success Response
STATUS
200Response Body: Boleto available for payment
{
"barcode":"00193967000009910000000003615574000000002417",
"digitable_line":"00190000090361557400500000024174396700000991000",
"payer_name":"COOPERATIVA AGRO.INDUSTRIAL TEST",
"payer_document_number":"21063663000125",
"beneficiary_name":"TESTE EQUIPAMENTOS E SERVICOS LTDA.",
"beneficiary_trading_name":"TESTE EQUIPAMENTOS E SERVICOS LTDA",
"beneficiary_document_number":"30639204000138",
"beneficiary_bank_ispb":"00000000",
"guarantor_name":null,
"guarantor_document_number":null,
"expiration_date":"2024-03-29",
"max_payment_data": "2026-03-29",
"partial_payment_indicator":"not_allowed",
"registered_payment_amount":null,
"nominal_amount":9910.0,
"total_amount":10129.1,
"rebate_amount":0.0,
"discount_amount":0.0,
"fine_amount":0.0,
"interest_amount":219.1
}
Response Body Params
Field | Type | Description |
---|---|---|
barcode * | string | Barcode. |
digitable_line * | string | Digitable line. |
payer_name * | string | Payer's name. |
payer_document_number * | string | Payer's document number (CPF/CNPJ). |
beneficiary_name * | string | Beneficiary's name. |
beneficiary_trading_name | string | Beneficiary's trade name. |
beneficiary_document_number * | string | Beneficiary's document number (CPF/CNPJ). |
beneficiary_bank_ispb * | string | ISPB code of the beneficiary's bank. |
guarantor_name | string | Name of the guarantor. |
guarantor_document_number | string | Guarantor's document number (CPF/CNPJ). |
expiration_date * | string | Due date. |
max_payment_date * | string | Maximum payment date. |
partial_payment_indicator * | enum | Partial payment indicator |
registered_payment_amount | string | Total registered payment amount. |
nominal_amount * | number | Original amount. |
total_amount * | number | Total amount. |
rebate_amount * | number | Rebate amount. |
discount_amount * | number | Discount amount. |
fine_amount * | number | Fine amount. |
interest_amount * | number | Interest amount. |
Enumerators partial_payment_indicator
Enumerator | Type | Description |
---|---|---|
allowed | string | Allowed |
not_allowed | string | Not allowed |
Error Response
STATUS
4XXResponse Body
{
"title": "Título",
"description": "Description in english",
"translation": "Description in portuguese",
"code": "Código"
}
HTTP Code | QI Code | Title | Description (eng) | Description (pt-br) |
---|---|---|---|---|
400 | BIP000001 | Bad Request | The barcode or digitable line must have 44 or 47 characters. | O código de barras ou linha digitável deve ter 44 ou 47 caracteres. |
400 | BIP000002 | Bad Request | The bill sent does not correspond to a bank slip. | A conta enviado não corresponde a um boleto bancário. |
400 | BIP000003 | Bad Request | The digitable line sent is invalid. | A linha digitável enviada é inválida. |
404 | BIP000004 | Not Found | The boleto was not found. | O boleto não foi encontrado. |
400 | BIP000005 | Bad Request | It was not possible to consult the boleto at this time. Please try again in a few minutes. | Não foi possível consultar o boleto neste momento. Por favor, tente novamente em alguns minutos. |
400 | BIP000006 | Bad Request | Boleto already written off | Boleto já baixado |
400 | BIP000007 | Bad Request | Boleto blocked for payment | Boleto bloqueado para pagamento |
400 | BIP000008 | Bad Request | Boleto already paid | Boleto já pago |
400 | BIP000009 | Bad Request | Invalid boleto. Please consult issuing bank | Boleto inválido. Favor consultar banco emissor |
Sandbox Environment
In our sandbox environment, we provide mocked digitable lines for simulating successful payments and testing error scenarios.
Success Scenarios
Digitable Line |
---|
00190000090361557400500000024174396700000991000 |
00190000090282802601919212747174596760001294161 |
23793390014000000455277000249001596900000103995 |
75691434020137513680900001040013196770002417240 |
21390001171200000570700168167484796770000148206 |
Error Scenarios
Digitable Line | Error Code |
---|---|
34191090083273252027893634770007296690012513600 | BIP000007 |
07090010287045349010776686070590896770001160123 | BIP000007 |
42297048060005815702500130494123896770000239491 | BIP000006 |
74891123702849020818918378871083196690000050000 | BIP000009 |
23792374119000209350986000372408496610000122810 | BIP000008 |