Skip to main content

Interest

The interest instruction is used to configure the interest that will be applied if the bank slip is paid after the due date. If there is already an interest configuration for the bank slip in question, and an interest instruction is accepted, the previously existing configuration will be overwritten.

Attention!

If there is any pending interest instruction awaiting confirmation, sending a new instruction is not allowed.

Request

ENDPOINT
/account/ACCOUNT_KEY/requester_profile/REQUESTER_PROFILE_KEY/bank_slip/BANK_SLIP_KEY/interest
METHOD
POST

Path parameters

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key in uuid v4 format36
requester_profile_keyuuidv4Unique wallet identification key in uuid v4 format36
bank_slip_keyuuidv4Unique bank slip identification key in uuid v4 format36
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

FieldTypeDescriptionCharacters
request_control_key *uuidv4Unique request identification key used by the client in uuid v4 format36
interest_dataobjectInterest configurationsinterest_data Object

interest_data Object

Option 1: interest using absolute values (interest_type=calendar_days_daily_amount or interest_type=workdays_daily_amount)
FieldTypeDescriptionCharacters
interest_type *stringInterest typeinterest_type Enumerators
interest_amount *floatAmount to be charged per determined time unit (working days or calendar days)-
days_to_interest *integerDays after due date for interest to start being charged-
Option 2: interest using percentage values (interest_type=calendar_days_monthly_percentage)
FieldTypeDescriptionCharacters
interest_type *stringInterest typeinterest_type Enumerators
interest_percentage *integerPercentage to be charged per determined time unit (working days or calendar days)-
days_to_interest *integerDays after due date for interest to start being charged-

interest_type Enumerators

EnumeratorDescription
calendar_days_daily_amountDaily amount on calendar days
workdays_daily_amountDaily amount on working days
calendar_days_monthly_percentageMonthly interest percentage charged based on calendar days

Response

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

Response Body Params

FieldTypeDescriptionCharacters
occurrence_key *uuidv4Unique occurrence (instruction) identification key in uuid v4 format36
bank_slip_key *uuidv4Unique bank slip identification key in uuid v4 format36

Error Response

STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Status
status
QI Code
code
Title
title
Description (eng)
description
Description (pt-br)
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>
400BKS000018Bad RequestThe discount dates must be less than the expiration date and increasing.A data dos descontos devem ser menores que a de expiração e crescentes.
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.