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_editMETHOD
POSTPath parameters
| Field | Type | Description | Characters |
|---|---|---|---|
account_key | uuidv4 | Unique account identification key, in uuid v4 format | 36 |
requester_profile_key | uuidv4 | Unique wallet identification key, in uuid v4 format | 36 |
bank_slip_key | uuidv4 | Unique bank slip identification key, in uuid v4 format | 36 |
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
| Field | Type | Description | Characters |
|---|---|---|---|
request_control_key * | uuidv4 | Unique request identification key used by the client in uuid v4 format | 36 |
write_off_data | object | Automatic write-off settings (null to remove) | write_off_data Object |
protest_data | object | Protest settings (null to remove) | protest_data Object |
bankruptcy_protest_data | object | Bankruptcy protest settings (null to remove) | bankruptcy_protest_data Object |
payer_data | object | Payer 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.