跳到主要内容

银行票据查询

此端点用于查询银行票据信息。

银行票据

这是常规银行票据(数字行不以数字8开头)。在银行间支付结算所(CIP/Núclea)注册,可在巴西中央银行授权的金融和支付机构付款。

Request

请求端点

ENDPOINT
/bill_payment/bank_slip/DIGITABLE_LINE or BARCODE
MÉTODO
GET

请求路径参数

字段类型描述字符数
digitable_linestring待查询的数字行。47
barcodestring待查询的条形码。44

查询字符串参数

字段类型描述字符数
payment_datestring支付日期,将用于计算票据金额。YYYY-MM-DD

Response

成功响应

STATUS
200
Response Body: 银行票据可支付
{
"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 参数

字段类型描述
barcode *string条形码。
digitable_line *string数字行。
payer_name *string付款人名称。
payer_document_number *string付款人文件号码(CPF/CNPJ)。
beneficiary_name *string受益人名称。
beneficiary_trading_namestring受益人商业名称。
beneficiary_document_number *string受益人文件号码(CPF/CNPJ)。
beneficiary_bank_ispb *string受益人银行 ISPB 代码。
guarantor_namestring保证人名称。
guarantor_document_numberstring保证人文件号码(CPF/CNPJ)。
expiration_date *string到期日期。
max_payment_date *string最大支付日期。
partial_payment_indicator *enum部分付款指示符
registered_payment_amountstring已登记的总支付金额。
nominal_amount *number原始金额。
total_amount *number总金额。
rebate_amount *number折扣金额。
discount_amount *number优惠金额。
fine_amount *number罚款金额。
interest_amount *number利息金额。

partial_payment_indicator 枚举值

枚举值类型描述
allowedstring允许
not_allowedstring不允许

错误响应

STATUS
4XX
Response Body
{
"title": "Título",
"description": "Description in english",
"translation": "Descrição em português",
"code": "Código"
}
HTTP 代码QI 代码标题描述(英文)描述(葡文)
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 bank slip was not found.O boleto não foi encontrado.
400BIP000005Bad RequestIt was not possible to consult the bank slip 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 RequestBank slip already written offBoleto já baixado
400BIP000007Bad RequestBank slip blocked for paymentBoleto bloqueado para pagamento
400BIP000008Bad RequestBank slip already paidBoleto já pago
400BIP000009Bad RequestInvalid bank slip. Please consult issuing bankBoleto inválido. Favor consultar banco emissor

沙盒环境

在我们的沙盒环境中,我们提供模拟的数字行用于模拟成功支付和错误场景测试。

成功场景

数字行
00190000090361557400500000024174396700000991000
00190000090282802601919212747174596760001294161
23793390014000000455277000249001596900000103995
75691434020137513680900001040013196770002417240
21390001171200000570700168167484796770000148206
07790001161200000039300602819070498470000182970
23792372059034189564835003432701998420000008306
03399199530490000005254172701010698420000467696
03399135012340000000830681701014198420038743888
75691324620100735471370255730478698420064900819
75691413310108906500520369970015899610000033705
13695621010000389701400000037598810770000217000

错误场景

数字行错误代码
34191090083273252027893634770007296690012513600BIP000007
07090010287045349010776686070590896770001160123BIP000007
42297048060005815702500130494123896770000239491BIP000006
74891123702849020818918378871083196690000050000BIP000009
23792374119000209350986000372408496610000122810BIP000008