跳到主要内容

利息

利息指令用于配置在截止日期后付款时应收取的利息。若相关 Boleto 已存在利息配置,且利息指令被接受,则原有配置将被覆盖。

注意!

若存在待确认的利息指令,则不允许发送新的指令。

Request

ENDPOINT
/account/ACCOUNT_KEY/requester_profile/REQUESTER_PROFILE_KEY/bank_slip/BANK_SLIP_KEY/interest
MÉTODO
POST

路径参数

字段类型描述字符数
account_keyuuidv4账户唯一识别密钥,格式为 uuid v436
requester_profile_keyuuidv4钱包唯一识别密钥,格式为 uuid v436
bank_slip_keyuuidv4Boleto 唯一识别密钥,格式为 uuid v436
Request Body
{
"request_control_key": "c4dd443a-6e2f-4261-8f28-adfa4c0d4c5b",
"interest_data": {
"interest_type": "calendar_days_daily_amount",
"interest_amount": 50.00,
"days_to_interest": 5
}
}

Request Body Params

字段类型描述字符数
request_control_key *uuidv4客户使用的请求唯一识别密钥,格式为 uuid v436
interest_dataobject利息配置interest_data 对象

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按自然日计的月利率

Response

STATUS
202
Response Body
{
"occurrence_key": "5a745b65-9a2c-44eb-b43e-c80ef5429d94",
"bank_slip_key": "fdafdffa-cbd4-4f3c-8e3d-990428305161"
}

Response Body Params

字段类型描述字符数
occurrence_key *uuidv4事件(指令)唯一识别密钥,格式为 uuid v436
bank_slip_key *uuidv4Boleto 唯一识别密钥,格式为 uuid v436

错误响应

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
409BKS000014ConflictRequest control key already sent or duplicated sent: <request_control_key>Chave de controle da requisição já utilizada ou enviada duplicada: <request_control_key>
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}).
400BKS000032Bad RequestBank slip must be in 'registered' status.O boleto deve possuir o status 'registered'.
409BKS000051ConflictThere is already a pending interest occurrence for this bank slip. Please, wait for the confirmation of this occurrence before sending another one.Já existe uma ocorrência de juros pendente para este boleto. Por favor, aguarde a confirmação dessa ocorrência antes de enviar outra.