DELETE
/businesses/{bid}/expenses/{id}Discard a draft
DELETE /businesses/{bid}/expenses/{id}
Requires the expenses scope.
A draft is yours to discard. A recorded expense is a ledger entry and can only be corrected (storno), so this answers 404.
Path parameters
| Name | Type | Description | |
|---|---|---|---|
bid | string | required | Business id, from POST /businesses. |
id | string | required | Expense id. |
Response
200: { "ok": true, … }
| Field | Type | Description | |
|---|---|---|---|
ok | boolean |
Errors: 400, 401, 403, 404, 429. Every failure answers { "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }: branch on reason, and read hint for what to change (https://docs.billos.co.il/errors.md).