DevelopersAPI referenceCronCrunchExpenses
Delete an expense
Owner-scoped. Also deletes the stored receipt, best effort.
View as MarkdownAuthorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/expenses/string"{ "message": "string"}Update an expense
Owner-scoped. Omitted fields stay as they are. clientId or projectId of "" clears that link. Sending pricing, amount, quantity, or unitRate recomputes the total from the merged values.
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.