Private preview of the new site. Not live.

expenses.add

Record money a worker spent on a job, with the receipt photo. The worker types the amount and tax from the receipt; core never reads or fills in amounts. spent_on defaults to today in the shop's time zone.

WhoAgents can call this
RESTPOST /v1/expenses
MCP toolexpenses_add
Writesyes, send an Idempotency-Key
AreaCosts, expenses and reports

When to use it

Record money a worker spent on a job, with the receipt photo. The worker types the amount and tax from the receipt; core never reads or fills in amounts.

What to tell the owner

Say what you did in plain words and what happens next.

Input

FieldTypeRequired
job_idstring (uuid)yes
spent_onstringno
vendorstringno
categorystring (one of materials, equipment, subcontractor, permit, fuel, disposal, other)no
amount_minorintegeryes
tax_minorintegerno
receipt_media_idstring (uuid)no
notestringno

Example

POST https://doingwork.work/v1/expenses
content-type: application/json
Idempotency-Key: 3f1c...

{
  "job_id": "00000000-0000-4000-8000-000000000000",
  "amount_minor": 50000
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.