Remove a receipt
Owner-scoped. No receipt is a success and leaves the expense in place.
View as MarkdownAuthorization
bearer In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/expenses/string/receipt"{ "expense": { "id": "string", "clientId": "string", "clientName": "string", "projectId": "string", "projectName": "string", "projectColor": "string", "spentOn": "2019-08-24", "pricing": "amount", "amount": 0, "quantity": 0, "unitRate": 0, "type": "string", "billable": true, "note": "string", "hasReceipt": true, "receipt": { "contentType": "string", "sizeBytes": 0, "filename": "string", "url": "string" }, "created": "2019-08-24T14:15:22Z" }}Upload or replace a receipt
Multipart file for an expense the caller owns. image/jpeg, image/png, image/webp, or application/pdf, at most 8 MB. The bytes are checked against the declared type. Replacing a receipt deletes the previous object. 503 when object storage is not configured.
Expense report
Totals over the caller's own expenses for the same filters as the list. Unlike the list, this is not capped at 500 (hard cap 10000). byClient, byProject and byType are ordered by total descending. byDay is ordered by date ascending. A missing client or project is one row named "No client" or "No project" with a null id.