跳到主要内容

通过密钥查询 Boleto

通过密钥查询 Boleto 可返回该 Boleto 的详细信息,例如与该 Boleto 相关的所有指令。

Request

ENDPOINT
/account/ACCOUNT_KEY/requester_profile/REQUESTER_PROFILE_KEY/bank_slip/BANK_SLIP_KEY
MÉTODO
GET

路径参数

字段类型描述字符数
account_keyuuidv4账户唯一标识密钥,格式为 uuid v436
requester_profile_keyuuidv4钱包唯一标识密钥,格式为 uuid v436
bank_slip_keyuuidv4Boleto 唯一标识密钥,格式为 uuid v436

Response

STATUS
200
Response Body
{
"bank_slip_key": "4c2fa514-a44d-40f2-8d57-c0caf1b9165a",
"request_control_key": "0dcb3182-4d7e-4526-8f92-c15cdbc51bad",
"our_number": 26652176735,
"document_number": "DOC4561237",
"amount": "5000.00",
"rebate_amount": "0.00",
"expiration": "2024-07-12",
"barcode": "32994978900005000000001546128483498231955340",
"digitable_line": "32990001524612848349582319553408497890000500000",
"bank_teller_instructions": "Confirm payment",
"protest_data": {
"days_to_protest": 7
},
"bankruptcy_protest_data": {
"days_to_bankruptcy_protest": 14
},
"max_payment_days": 45,
"fine_data": {
"fine_type": "absolute",
"fine_amount": 100.0,
"days_to_fine": 10
},
"interest_data": {
"interest_type": "workdays_daily_amount",
"interest_amount": 10.0,
"days_to_interest": 2
},
"discounts_data": [
{
"discount_type": "absolute",
"discount_amount": 50.0,
"discount_number": 1,
"discount_limit_date": "2024-07-12"
}
],
"payer_data": {
"name": "Global Tech",
"address": {
"city": "Innovation City",
"state": "SP",
"number": "202",
"street": "101 High St.",
"complement": "Building A",
"postal_code": "57099999",
"neighborhood": "Tech Park"
},
"person_type": "legal",
"document_number": "12345678000195"
},
"guarantor_data": {
"name": "Jane Doe",
"address": {
"city": "Peaceful Town",
"state": "RJ",
"number": "303",
"street": "202 Elm St.",
"complement": "House 1",
"postal_code": "57099999",
"neighborhood": "Quiet Neighborhood"
},
"person_type": "natural",
"document_number": "23456789012"
},
"qr_code_data": {
"qr_code_key": "58bd3558-f214-4e83-9c88-1ac4c93db214",
"pix_key": "f9b05a58-9dcf-49cb-bc7f-99c5b3f1fdcb",
"receiver_conciliation_id": "a3861b53f5414b0ba6c9f800d7374474",
"url": "00020126890014br.gov.bcb.pix2567qrcode-h.dev.qitech.app/bacen/cobv/a3861b53f5414b0ba6c9f800d73744745204000053039865802BR5922BeatrizCoutodeCarvalho6012SAOJOSEDORIO61081501410062070503***6304ED95",
"image": "<base64 encoded QR code image>"
},
"payment_notice_data": {
"payment_method": "account_debit",
"payment_origin": "internet",
"payment_notice_date": "2024-07-01"
},
"payment_data": {
"paid_amount": 850.0,
"paid_rebate_amount": 200.0,
"paid_discount_amount": 0.0,
"paid_fine_amount": 0.0,
"paid_interest_amount": 50.0,
"payment_method": "account_debit",
"payment_origin": "internet",
"payment_credit_date": "2024-07-02"
},
"bank_slip_status": "registered",
"occurrences": [
{
"request_control_key": "0dcb3182-4d7e-4526-8f92-c15cdbc51bad",
"occurrence_key": "ec67408c-a149-418a-b89b-b9c9d3b6c403",
"occurrence_type": "registration",
"occurrence_status": "confirmed",
"created_at": "2024-06-23T09:15:32Z"
},
{
"request_control_key": "9618c632-7f4d-490b-8817-2bb72ec1e84a",
"occurrence_key": "70d3e632-644d-499f-baac-f65f21fb8574",
"occurrence_type": "rebate",
"occurrence_status": "confirmed",
"created_at": "2024-06-26T12:36:04Z"
},
{
"request_control_key": "c2b2ba59-9c37-488d-823d-2c3bfc1e9108",
"occurrence_key": "dbdd513c-e918-4d17-b194-b5ae3d979988",
"occurrence_type": "cancel_rebate",
"occurrence_status": "confirmed",
"created_at": "2024-06-26T12:53:47Z"
}
]
}

响应体参数

字段类型描述字符数
bank_slip_key *uuidv4Boleto 唯一标识密钥,格式为 uuid v436
request_control_key *uuidv4客户请求唯一标识密钥,格式为 uuid v436
our_number *integerBoleto 在钱包中的唯一识别编号11
bank_slip_status *stringBoleto 状态bank_slip_status 枚举值
protest_status *stringBoleto 在公证处的抗议状态protest_status 枚举值
document_number *stringBoleto 识别编号10
amount *floatBoleto 基准金额-
expiration *string到期日10
barcode *stringBoleto 条形码44
digitable_line *stringBoleto 可打印行47
bank_teller_instructionsstring额外注册说明,将显示在 Boleto PDF 中320
rebate_amountfloatBoleto 减免金额,将在基准金额之上应用-
max_payment_days *integerBoleto 到期后可供支付的最大自然日数(最多 365 天)-
write_off_dataobject核销配置write_off_data 对象
protest_dataobject抗议配置protest_data 对象
bankruptcy_protest_dataobject破产抗议配置bankruptcy_protest_data 对象
fine_dataobject罚款配置fine_data 对象
interest_dataobject利息配置interest_data 对象
discounts_dataobject array折扣配置discount 对象
payer_data *object付款方数据payer_data 对象
guarantor_data *object担保人数据guarantor_data 对象
qr_code_dataobjectQR Code 数据qr_code_data 对象
payment_notice_dataobject 或 array付款通知数据payment_notice_data 对象或数组
payment_dataobject 或 array付款数据payment_data 对象或数组
occurrencesobject arrayBoleto 相关指令bank_slip_occurrence 对象
说明

amount 字段是 Boleto 的基准金额,即不含罚款(fine)、利息(interest)、减免(rebate)和折扣(discounts)。

bank_slip_status 枚举值

枚举值描述
accepted已接受并发送至 Nuclea/CIP 进行分析
rejected被 Nuclea/CIP 拒绝注册
payment_notice付款通知(Boleto 已付但付款尚未清算)
notary_office_payment_notice公证处付款通知(Boleto 已付但付款尚未清算)
registeredNuclea/CIP 已确认注册
payment_blocked已锁定支付(处于抗议流程中)
paid已支付
written_off已核销

protest_status 枚举值

枚举值描述
not_protestedBoleto 尚未启动抗议流程
protest_requested已申请公证处抗议
notary_office_entryBoleto 在公证处,处于三日期间
protest_cancel_requested已申请撤销抗议
notary_office_exitBoleto 已离开公证处
protestedBoleto 已被抗议
paid_at_notary_office在公证处支付
judicially_suspended抗议被司法暂停
protest_remove_requested已申请移除抗议

write_off_data 对象

字段类型描述字符数
days_to_write_off *integerBoleto 到期后自动核销的天数-

protest_data 对象

字段类型描述字符数
days_to_protest *integerBoleto 到期后自动抗议的天数-

bankruptcy_protest_data 对象

字段类型描述字符数
days_to_bankruptcy_protest *integerBoleto 到期后自动破产抗议的天数-

fine_data 对象

选项 1:绝对值罚款(fine_type=absolute

字段类型描述字符数
fine_type *string罚款类型fine_type 枚举值
fine_amount *float罚款绝对值-
days_to_fine *integer到期后开始收取罚款的天数-

选项 2:百分比罚款(fine_type=percentage

字段类型描述字符数
fine_type *string罚款类型fine_type 枚举值
fine_percentage *integer罚款百分比,1 至 100-
days_to_fine *integer到期后开始收取罚款的天数-

fine_type 枚举值

枚举值描述
absolute绝对值
percentage百分比

interest_data 对象

选项 1:绝对值利息(interest_type=calendar_days_daily_amountinterest_type=workdays_daily_amount

字段类型描述字符数
interest_type *string利息类型interest_type 枚举值
interest_amount *float每单位时间(工作日或自然日)收取的利息金额-
days_to_interest *integer到期后开始收取利息的天数-

选项 2:百分比利息(interest_type=calendar_days_monthly_percentage

字段类型描述字符数
interest_type *string利息类型interest_type 枚举值
interest_percentage *integer每单位时间(工作日或自然日)收取的利息百分比-
days_to_interest *integer到期后开始收取利息的天数-

interest_type 枚举值

枚举值描述
calendar_days_daily_amount按自然日计算的每日金额
workdays_daily_amount按工作日计算的每日金额
calendar_days_monthly_percentage按自然日计算的月利率百分比

discount 对象

选项 1:绝对值折扣(discount_type in ["absolute", "anticipation_calendar_days_daily_amount", "anticipation_workdays_daily_amount"]

字段类型描述字符数
discount_amount *float每单位时间的绝对折扣金额-
discount_number *integer折扣编号-
discount_type *string折扣类型(绝对值)discount_type 枚举值
discount_limit_date *string折扣截止日期10

选项 2:百分比折扣(discount_type in ["percentage", "anticipation_calendar_days_daily_percentage", "anticipation_workdays_daily_percentage"]

字段类型描述字符数
discount_percentage *float每单位时间的折扣百分比-
discount_number *integer折扣编号-
discount_type *string折扣类型(百分比)discount_type 枚举值
discount_limit_date *string折扣截止日期10
注意!

一张 Boleto 最多可有三个折扣,且所有折扣必须为同一类型,即具有相同的 discount_type。折扣编号必须从 1 开始,按递增顺序编号,最大到 3。即,若请求中发送两个折扣,必须分别编号为 1 和 2。

discount_type 枚举值

枚举值描述
absolute固定金额
anticipation_calendar_days_daily_amount按自然日计算的提前还款每日折扣金额
anticipation_workdays_daily_amount按工作日计算的提前还款每日折扣金额
percentage固定百分比
anticipation_calendar_days_daily_percentage按自然日计算的提前还款月折扣百分比
anticipation_workdays_daily_percentage按工作日计算的提前还款年折扣百分比

payer_data 和 guarantor_data 对象

字段类型描述字符数
name *string全名100
document_number *string证件号码(CPF/CNPJ)11 或 14
person_type *string人员类型(自然人或法人)person_type 枚举值
contactobject联系信息contact 对象
addressobject地址address 对象

person_type 枚举值

枚举值描述
natural自然人
legal法人

contact 对象

字段类型描述字符数
emailstring联系邮箱320
phoneobject联系电话phone 对象

phone 对象

字段类型描述字符数
international_dial_code *string国际区号(DDI)3
area_code *string地区区号(DDD)2
number *string电话号码9

address 对象

字段类型描述字符数
street *string街道500
number *string门牌号6
complementstring补充500
neighborhood *string社区100
postal_code *string邮编8
city *string城市100
state *string州(UF)state 枚举值

state 枚举值

枚举值描述
ACAcre
ALAlagoas
AMAmazonas
APAmapá
BABahia
CECeará
DFDistrito Federal
ESEspírito Santo
GOGoiás
MAMaranhão
MGMinas Gerais
MSMato Grosso do Sul
MTMato Grosso
PAPará
PBParaíba
PEPernambuco
PIPiauí
PRParaná
RJRio de Janeiro
RNRio Grande do Norte
RORondônia
RRRoraima
RSRio Grande do Sul
SCSanta Catarina
SESergipe
SPSão Paulo
TOTocantins
EX其他

qr_code_data 对象

字段类型描述字符数
qr_code_keyuuidv4QR Code 唯一标识密钥36
pix_keyuuidv4与 QR Code 关联的 PIX 密钥36
receiver_conciliation_iduuidv4QR Code 对账标识符36
urlstringQR Code 的 URL(Pix 复制粘贴)-
imagestringQR Code URL 的 base64 编码图片-

payment_notice_data 对象或数组

注意!

对于未配置部分支付的 Boleto,payment_notice_data 字段将以对象形式返回。对于配置了部分支付的 Boleto,将以对象数组形式返回,因为可能存在多笔付款。 此外,如果 Boleto 通过 QR Code 支付,该字段不会返回,因为清算在付款当日完成。

字段类型描述字符数
payment_methodstring支付方式payment_method 枚举值
payment_originstring支付来源payment_origin 枚举值
payment_notice_datestring付款通知日期10

payment_data 对象或数组

注意!

对于未配置部分支付的 Boleto,payment_data 字段将以对象形式返回。对于配置了部分支付的 Boleto,将以对象数组形式返回,因为可能存在多笔付款。

字段类型描述字符数
paid_amountfloat付款金额-
paid_rebate_amountfloat已付减免金额-
paid_discount_amountfloat已付折扣金额-
paid_fine_amountfloat已付罚款金额-
paid_interest_amountfloat已付利息金额-
payment_methodstring支付方式payment_method 枚举值
payment_originstring支付来源payment_origin 枚举值
payment_credit_datestring付款入账日期10

payment_method 枚举值

枚举值描述
cash现金
account_debit账户扣款
credit_card信用卡
check支票

payment_origin 枚举值

枚举值描述
phisical_cashier银行网点 - 传统柜台
taa自动取款机
internet互联网(网上/办公室银行)
corban银行代理
call_center电话客服中心
eletronic_file电子文件
ddaDDA
digital_correspondent数字银行代理
qr_codePix QR Code 支付

bank_slip_occurrence 对象

字段类型描述字符数
request_control_key *uuidv4客户请求唯一标识密钥,格式为 uuid v436
occurrence_key *uuidv4Boleto 唯一标识密钥,格式为 uuid v436
occurrence_type *string事件类型occurrence_type 枚举值
occurrence_status *string事件状态occurrence_status 枚举值
created_at *string事件创建日期,ISO 格式(UTC - "YYYY-MM-DDTHH:MM:SSZ")20

occurrence_type 枚举值

枚举值描述
registration注册事件
write_off核销申请事件
rebate添加减免事件
cancel_rebate取消减免事件
discount修改折扣事件
fine修改罚款事件
interest修改利息事件
extension延期事件
bank_slip_edit修改 Boleto 其他数据事件
payment_notice付款通知事件
payment付款清算事件
protest_request抗议申请事件

occurrence_status 枚举值

枚举值描述
pending已发送至 Nuclea/CIP 待分析
rejected已拒绝
confirmed已确认

错误响应

STATUS
4xx
Response Body: 错误
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 状态码
status
QI 代码
code
标题
title
英文描述
description
葡语描述
translation
400QIT000001Bad RequestSchema ErrorSchema Inválido
404BKS000006Not FoundThe source account key was not found.A chave da conta de origem não foi encontrada.
400BKS000007Bad RequestIt was not possible to consult the source account at this time. Please try again in a few minutes.Não foi possível consultar a conta de origem neste momento. Por favor, tente novamente em alguns minutos.
400BKS000008Bad RequestThe source account is closed.A conta de origem está fechada.
400BKS000009Bad RequestThe source account is blocked.A conta de origem está bloqueada.
404BKS000013Not FoundRequester profile not foundCarteira não encontrada
400BKS000022Bad RequestRequester profile is not opened.Carteira não está aberta.
404BKS000029Not FoundBank slip not found for the given key ({bank_slip_key}).Boleto não encontrado para a chave fornecida ({bank_slip_key}).