Skip to main content

Edit

The edit instruction serves to modify configurable data of the bank slip after its issuance, such as automatic write-off settings, protest, bankruptcy protest, and payer data. This instruction allows updating multiple aspects of the bank slip in a single request.

Attention!

The bank slip must be in 'registered' status for it to be editable. At least one of the data fields (write_off_data, protest_data, bankruptcy_protest_data or payer_data) must be provided along with the request_control_key.

Request

ENDPOINT
/account/ACCOUNT_KEY/requester_profile/REQUESTER_PROFILE_KEY/bank_slip/BANK_SLIP_KEY/bank_slip_edit
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",
"write_off_data": {"days_to_write_off": 365},
"protest_data": {"days_to_protest": 7},
"bankruptcy_protest_data": {"days_to_bankruptcy_protest": 14},
"payer_data": {
"contact": {
"email": "finance@globaltech.com",
"phone": {"international_dial_code": "055", "area_code": "11", "number": "987654321"},
},
"address": {
"street": "101 High St.",
"neighborhood": "Tech Park",
"number": "202",
"postal_code": "01001000",
"city": "Innovation City",
"state": "SP",
"complement": "Building A",
},
},
}

Request Body Params

FieldTypeDescriptionCharacters
request_control_key *uuidv4Unique request identification key used by the client in uuid v4 format36
write_off_dataobjectAutomatic write-off settings (null to remove)write_off_data Object
protest_dataobjectProtest settings (null to remove)protest_data Object
bankruptcy_protest_dataobjectBankruptcy protest settings (null to remove)bankruptcy_protest_data Object
payer_dataobjectPayer data (address null or contact null to remove)payer_data Object
Note

At least one of the data fields (write_off_data, protest_data, bankruptcy_protest_data or payer_data) must be provided in the request.

write_off_data Object

FieldTypeDescriptionCharacters
days_to_write_off *integerDays, after due date, for the bank slip to be automatically written off-

protest_data Object

FieldTypeDescriptionCharacters
days_to_protest *integerDays, after due date, for the bank slip to be automatically protested-

bankruptcy_protest_data Object

FieldTypeDescriptionCharacters
days_to_bankruptcy_protest *integerDays, after due date, for the bank slip to be automatically protested-

payer_data Object

FieldTypeDescriptionCharacters
contactobjectContact informationcontact Object
addressobjectAddressaddress Object

contact Object

FieldTypeDescriptionCharacters
emailstringContact email320
phoneobjectContact phonephone Object

phone Object

FieldTypeDescriptionCharacters
international_dial_code *stringInternational Direct Dialing Code3
area_code *stringArea Code2
number *stringNumber9

address Object

FieldTypeDescriptionCharacters
street *stringStreet500
number *stringNumber6
complementstringComplement500
neighborhood *stringNeighborhood100
postal_code *stringPostal Code8
city *stringCity100
state *stringStatestate Enumerator

state Enumerators

EnumeratorDescription
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
EXException

Response

STATUS
200
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 Code
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>
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'.