Skip to main content

Edit wallet

Wallet editing overrides the default settings (configuration_data) of the bill wallet and all its child objects.

Request

ENDPOINT
/account/ACCOUNT_KEY/requester_profile/REQUESTER_PROFILE_KEY
METHOD
PUT

Path parameters

FieldTypeDescriptionCharacters
account_keyuuidv4Unique account identification key in uuid v4 format36
requester_profile_keyuuidv4Unique wallet identification key in uuid v4 format36
Request Body
{
"max_payment_days": 1,
"protest_settings": {
"days_to_protest": 0
},
"bankruptcy_protest_settings": {
"days_to_bankruptcy_protest": 0
},
"write_off_settings": {
"days_to_write_off": 0
},
"fine_settings": {
"fine_type": "absolute",
"fine_amount": 10,
"days_to_fine": 0
},
"interest_settings": {
"interest_type": "workdays_daily_amount",
"interest_amount": 10,
"days_to_interest": 0
},
"qr_code_settings": {
"pix_key": "248ebea3-9bdd-44b3-a8b9-7f2bd34cd7bf",
"qr_code_on_discharge_enabled": false
},
"cnab_settings": {
"default_bank": "qi_scd",
"preferred_layout": "400"
}
}

Request Body Params

FieldTypeDescriptionCharacters
max_payment_days *integerMaximum calendar days the bill will remain available for payment after due date (can be at most 365)-
write_off_settingsobjectDefault write-off configurationwrite_off_settings object
protest_settingsobjectDefault protest configurationprotest_settings object
bankruptcy_protest_settingsobjectDefault bankruptcy protest configurationbankruptcy_protest_settings object
fine_settingsobjectDefault fine configurationfine_settings object
interest_settingsobjectDefault interest configurationinterest_settings object
qr_code_settingsobjectDefault PIX QR Code configuration (for bolePix)qr_code_settings object
cnab_settingsobjectDefault CNAB file configurationcnab_settings object

write_off_settings object

FieldTypeDescriptionCharacters
days_to_write_off *integerDays after due date for the bill to be automatically written off-

protest_settings object

FieldTypeDescriptionCharacters
days_to_protest *integerDays after due date for the bill to be automatically protested-

bankruptcy_protest_settings object

FieldTypeDescriptionCharacters
days_to_bankruptcy_protest *integerDays after due date for a bankruptcy protest process to be automatically started-

fine_settings object

Option 1: absolute value fine (fine_type=absolute)
FieldTypeDescriptionCharacters
fine_type *stringFine typefine_type enumerators
fine_amount *floatFine absolute value-
days_to_fine *integerDays after due date for the fine to be charged-
Option 2: percentage value fine (fine_type=percentage)
FieldTypeDescriptionCharacters
fine_type *stringFine typefine_type enumerators
fine_percentage *integerFine percentage value, from 1 to 100-
days_to_fine *integerDays after due date for the fine to be charged-

fine_type enumerators

EnumeratorDescription
absoluteabsolute value
percentagepercentage value

interest_settings 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 (business days or calendar days)-
days_to_interest *integerDays after due date to start charging interest-
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 (business days or calendar days)-
days_to_interest *integerDays after due date to start charging interest-

interest_type enumerators

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

qr_code_settings object

FieldTypeDescriptionCharacters
pix_key *uuidv4Random type Pix key36
qr_code_on_discharge_enabled *booleanDetermines if QR Code information will appear in the return file (CNAB)-
Information

The PIX copy and paste will be returned in the CNAB file at positions 029 to 105.

Attention!

If the qr_code_settings object is sent in the request, this wallet will have bolePix generation as its default configuration. BolePix are bills whose payment is linked to a Pix QR Code. Therefore, the payer can make bill payments both using the bill's digital lines and by reading the linked Pix QR Codes. If payment is made via QR Code, financial settlement occurs instantly. Regarding notifications, two webhooks are sent: one at the time of the PIX transfer (payment notice, bill goes to payment_notice status); and another a few seconds or minutes later, after confirmation of discharge at CIP/Nuclea (paid, bill goes to paid status).

cnab_settings object

FieldTypeDescriptionCharacters
default_bankstringDefault bank layout for CNAB file processingdefault_bank enumerators
preferred_layoutstringPreferred layout for CNAB filespreferred_layout enumerators

default_bank enumerators

EnumeratorDescription
santanderBanco Santander
itauBanco Itaú
bradescoBanco Bradesco
qi_scdQI SCD

preferred_layout enumerators

EnumeratorDescription
400CNAB 400 Layout
240CNAB 240 Layout

Response

STATUS
200
Response Body
{
"requester_profile_key": "c92e8666-e310-4a72-b15e-753525684ae2",
"requester_profile_code": "329-48-2628-2625918",
"request_control_key": "727a5f00-1f86-4a7a-9aa5-c45cf8a2394c",
"account_key": "e0089187-ab08-42c0-82f2-259d40726117",
"requester_profile_status": "pending",
"configuration_data": {
"max_payment_days": 1,
"protest_settings": {
"days_to_protest": 0
},
"bankruptcy_protest_settings": {
"days_to_bankruptcy_protest": 0
},
"write_off_settings": {
"days_to_write_off": 0
},
"fine_settings": {
"fine_type": "absolute",
"fine_amount": 10,
"days_to_fine": 0
},
"interest_settings": {
"interest_type": "workdays_daily_amount",
"interest_amount": 10,
"days_to_interest": 0
},
"qr_code_settings": {
"pix_key": "248ebea3-9bdd-44b3-a8b9-7f2bd34cd7bf",
"qr_code_on_discharge_enabled": false
},
"cnab_settings": {
"default_bank": "qi_scd",
"preferred_layout": "400"
}
}
}

Response Body Params

FieldTypeDescriptionCharacters
requester_profile_key *uuidv4Unique wallet identification key in uuid v4 format36
requester_profile_code *stringUnique wallet identification code19
request_control_key *uuidv4Unique request identification key used by the client in uuid v4 format36
account_key *uuidv4Unique account identification key in uuid v4 format36
requester_profile_status *stringWallet statusrequester_profile_status enumerators
configuration_data *objectDefault wallet configurationsconfiguration_data object

profile_status enumerators

EnumeratorDescription
pendingWallet accepted and pending confirmation
openedWallet opened

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
404BKS000001Not FoundPerson not found with key: person_key`Pessoa não encontrada com a chave: person_key`
404BKS000004Not FoundPix key not found: {pix_key}Chave pix não encontrada: {pix_key}
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.
403BKS000010ForbiddenThe pix key owner does not match the account owner.O proprietário da chave pix não corresponde ao proprietário da conta.
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}
400BKS000047Bad RequestIt was not possible to consult the sent pix key at this time. Please try again in a few minutes.Não foi possível consultar a chave pix enviada no momento. Por favor, tente novamente em alguns minutos.