Expense Cancellation
Cancel an expense that is no longer needed. Cancellation is an irreversible operation.
Attention
A canceled expense cannot be reactivated. Make sure the cancellation is really necessary before proceeding. Expenses in the approved or rejected statuses cannot be canceled.
Request
ENDPOINT
/expense_submission/fund_class/{fund_class_key}/contract/{contract_key}/expense/{expense_key}/cancelMETHOD
PUTPath params
| Parameter | Type | Description |
|---|---|---|
fund_class_key | string | Unique key of the fund (UUID) |
contract_key | string | Unique key of the contract |
expense_key | string | Unique key of the expense (UUID) |
This endpoint does not require a request body.
Response
STATUS
200Response Body
{
"expense_key": "7f3e9a1b-2c4d-5e6f-8901-abcdef234567",
"contract_key": "contrato-auditoria-2026",
"status": "canceled",
"payment_method": "transfer",
"start_deferral_date": "2026-06-02",
"end_deferral_date": "2026-06-30",
"description": "Honorários de auditoria referente ao 1º semestre de 2026",
"payment": {
"target": {
"name": "AUDITORES EXEMPLO S.A.",
"document_number": "12.345.678/0001-90"
},
"target_account": {
"account_number": "123456",
"account_branch": "0001",
"account_digit": "0",
"financial_institution_code": "341"
}
},
"payment_value": 15000.00,
"payment_date": "2026-07-01",
"rebate_expense_key": null,
"fund_class": {
"name": "FUNDO DE INVESTIMENTO EM DIREITOS CREDITÓRIOS EXEMPLO",
"manager": {
"name": "EXEMPLO GESTORA LTDA",
"manager_key": "a7498c6c-1893-42ec-a8f3-bc6ad0c6b52c",
"document_number": "45.585.471/0001-47"
},
"fund_class_key": "4b8377d0-58ec-479f-8ee9-9f963d5c47ad",
"document_number": "60.910.091/0001-24"
}
}
Response attributes
| Field | Type | Description |
|---|---|---|
status | string | New status of the expense. Always returns canceled after a successful cancellation. |
The remaining fields follow the same structure as the expense creation.
Possible errors
STATUS
404Expense not found
The fund_class_key + contract_key + expense_key set does not correspond to any registered expense.
{
"title": "Expense Not Found",
"description": "Expense with key {expense_key} was not found.",
"translation": "A despesa com chave {expense_key} não foi encontrada.",
"code": "ESB000016"
}
STATUS
400Expense already in a final status
The expense is already in a final status (approved or rejected) and cannot be canceled.
{
"title": "Already In Final Expense Status",
"description": "Expense {expense_key} is already in a final status: {current_status}.",
"translation": "A despesa {expense_key} já está em um status final: {current_status}.",
"code": "ESB000021"
}