跳到主要内容

Boleto 列表查询

Boleto 列表将返回符合请求中发送的查询参数的所有钱包 Boleto。

Request

ENDPOINT
/account/ACCOUNT_KEY/requester_profile/REQUESTER_PROFILE_KEY/bank_slips
MÉTODO
GET

路径参数

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

查询参数

字段类型描述字符数
request_control_keyuuidv4请求唯一识别密钥,格式为 uuid v436
bank_slip_keyuuidv4Boleto 唯一识别密钥,格式为 uuid v436
bank_slip_statusstringBoleto 状态bank_slip_status 枚举值
pageinteger页码-
page_sizeinteger每页大小-
from_datestring起始登记日期(格式"YYYY-MM-DD")10
to_datestring终止登记日期(格式"YYYY-MM-DD")10

bank_slip_status 枚举值

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

Response

STATUS
200
Response Body
{
"data": [
{
"bank_slip_key": "b58ce415-5428-45c4-8e33-b2df0d3ab6e8",
"request_control_key": "53529224-330d-44b5-9f4d-59d55bc3cb8c",
"our_number": 24384760943,
"document_number": "DOC4561237",
"amount": "8000.00",
"rebate_amount": "200.00",
"expiration": "2024-07-13",
"barcode": "32994978900005000000001594438621284040114400",
"digitable_line": "32990001529443862128940401144007497890000500000",
"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": 5.0,
"days_to_interest": 10
},
"discounts_data": [
{
"discount_type": "anticipation_workdays_daily_percentage",
"discount_number": 1,
"discount_limit_date": "2024-07-13",
"discount_percentage": 10
}
],
"payer_data": {
"name": "Country Tech",
"address": {
"city": "Innovation City",
"state": "RS",
"number": "202",
"street": "101 High St.",
"complement": "Building A",
"postal_code": "57099999",
"neighborhood": "Tech Park"
},
"person_type": "legal",
"document_number": "12345678000195"
},
"guarantor_data": {
"name": "Jamie Doe",
"address": {
"city": "Peaceful Town",
"state": "MG",
"number": "303",
"street": "202 Elm St.",
"complement": "House 1",
"postal_code": "57099999",
"neighborhood": "Quiet Neighborhood"
},
"person_type": "natural",
"document_number": "98765432100"
},
"bank_slip_status": "accepted"
}
],
"pagination": {
"current_page": 1,
"rows_per_page": 100
}
}

Response Body Params

字段类型描述字符数
data *object arrayBoleto 列表bank_slip 对象
pagination *object分页信息pagination 对象

bank_slip 对象

字段类型描述字符数
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 *integer到期后可供付款的最大自然日数(最多 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 对象

pagination 对象

字段类型描述字符数
current_page *integer当前页码-
rows_per_page *integer每页条数-

protest_status 枚举值

枚举值描述
not_protested未启动抗议流程的 Boleto
protest_requested已申请公证处抗议
notary_office_entryBoleto 在公证处三日期内
protest_cancel_requested已申请撤销抗议
notary_office_exitBoleto 已离开公证处
protested已被抗议的 Boleto
paid_at_notary_office已在公证处付款
judicially_suspended抗议被司法中止
protest_remove_requested已申请移除抗议

write_off_data 对象

字段类型描述字符数
days_to_write_off *integer到期后自动注销 Boleto 所需天数-

protest_data 对象

字段类型描述字符数
days_to_protest *integer到期后自动抗议 Boleto 所需天数-

bankruptcy_protest_data 对象

字段类型描述字符数
days_to_bankruptcy_protest *integer到期后自动破产抗议 Boleto 所需天数-

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 开始。即,若请求中发送两个折扣,则必须编号为 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á
DF联邦区
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例外

错误响应

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
403BKS000005ForbiddenUser is not allowed to do this actionUsuário não tem autorização para fazer essa ação
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.
400BKS000012Bad RequestInvalid integer value for page or size query string parameters.Valor inválido para parâmetros de página ou tamanho de página.
404BKS000013Not FoundRequester profile not foundCarteira não encontrada