Record an expense
Files a line against the caller’s own name — whoever the credential belongs to is who gets reimbursed, and this tool cannot file on somebody else’s behalf. amount_cents is integer cents (42,00 € is 4200) and may be omitted when nobody has read the receipt yet: an incomplete line is accepted on purpose and only refused later, at the moment somebody tries to put it in a nota spese. ⚠ A CAR JOURNEY (kind: "km") IS PRICED BY THE SERVER: give distance_km and never an amount or a currency — the company’s kilometric rate, or the traveller’s own, is applied and frozen onto the line. No receipt image can be attached through this tool; photographing the giustificativo is something the person does in the app, and the line waits for it.
Request
- Base URL: https://api.custodo.ai
- URL: https://api.custodo.ai/api/v1/rest/spese/expenses
- Auth: HTTP bearer
Headers
The organisation to act in. An API key is bound to exactly one, so this is optional for a key and must match the one it was minted for.
Request body
Response
Done. data is the tool’s own answer.
Changes
No recorded changes to this operation across all 1 revision of this API.