Expenses

Put expenses into an expense report

Moves lines into a nota spese and restates its three totals in the same breath. The report has to be open — a draft or a rejected one — and every line has to belong to the report’s owner, be complete, already be converted into the company’s currency, and carry a proof of payment where the company demands one. ⚠ ALL OR NOTHING: if one line is refused, none of them move, and the answer says which line and why. A line already in THIS report is not an error — putting it in twice is one act. A line in ANOTHER report is refused and never taken from it.

post/api/v1/rest/spese/reports/{id}/expenses

Request

  • Base URL: https://api.custodo.ai
  • URL: https://api.custodo.ai/api/v1/rest/spese/reports/{id}/expenses
  • Auth: HTTP bearer

Path parameters

idstring uuid required

The nota spese id, from spese_list_reports.

Headers

X-Tenant-Idstring uuid

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

expense_idsstring[] required

The lines to put in, 1–200. From spese_list_expenses. Past that ceiling the answer is several calls.

Response

Done. data is the tool’s own answer.

oktrue required
dataunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.