Skip to main content

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 BARCODE
MÉTODO
GET

Request Path Params

FieldTypeDescriptionCharacters
digitable_linestringDigitable line to be queried.47
barcodestringBarcode to be queried.44

Response

Success Response

STATUS
200
Response 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

FieldTypeDescription
barcode *stringBarcode.
digitable_line *stringDigitable line.
payer_name *stringPayer's name.
payer_document_number *stringPayer's document number (CPF/CNPJ).
beneficiary_name *stringBeneficiary's name.
beneficiary_trading_namestringBeneficiary's trade name.
beneficiary_document_number *stringBeneficiary's document number (CPF/CNPJ).
beneficiary_bank_ispb *stringISPB code of the beneficiary's bank.
guarantor_namestringName of the guarantor.
guarantor_document_numberstringGuarantor's document number (CPF/CNPJ).
expiration_date *stringDue date.
max_payment_date *stringMaximum payment date.
partial_payment_indicator *enumPartial payment indicator
registered_payment_amountstringTotal registered payment amount.
nominal_amount *numberOriginal amount.
total_amount *numberTotal amount.
rebate_amount *numberRebate amount.
discount_amount *numberDiscount amount.
fine_amount *numberFine amount.
interest_amount *numberInterest amount.

Enumerators partial_payment_indicator

EnumeratorTypeDescription
allowedstringAllowed
not_allowedstringNot allowed

Error Response

STATUS
4XX
Response Body
{
"title": "Título",
"description": "Description in english",
"translation": "Description in portuguese",
"code": "Código"
}
HTTP CodeQI CodeTitleDescription (eng)Description (pt-br)
400BIP000001Bad RequestThe 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.
400BIP000002Bad RequestThe bill sent does not correspond to a bank slip.A conta enviado não corresponde a um boleto bancário.
400BIP000003Bad RequestThe digitable line sent is invalid.A linha digitável enviada é inválida.
404BIP000004Not FoundThe boleto was not found.O boleto não foi encontrado.
400BIP000005Bad RequestIt 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.
400BIP000006Bad RequestBoleto already written offBoleto já baixado
400BIP000007Bad RequestBoleto blocked for paymentBoleto bloqueado para pagamento
400BIP000008Bad RequestBoleto already paidBoleto já pago
400BIP000009Bad RequestInvalid boleto. Please consult issuing bankBoleto 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 LineError Code
34191090083273252027893634770007296690012513600BIP000007
07090010287045349010776686070590896770001160123BIP000007
42297048060005815702500130494123896770000239491BIP000006
74891123702849020818918378871083196690000050000BIP000009
23792374119000209350986000372408496610000122810BIP000008