po.create

Start a purchase order (draft) for parts for a job from a supplier. Nothing counts as job cost until po.receive. Owner or office.

WhoAgents can call this
RESTPOST /v1/purchase-orders
MCP toolpo_create
Writesyes, send an Idempotency-Key
AreaShop

When to use it

Start a purchase order (draft) for parts for a job from a supplier. Nothing counts as job cost until po.receive.

What to tell the owner

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

Input

FieldTypeRequired
job_idstring (uuid)yes
vendor_idstring (uuid)yes
notestringno
linesarrayyes
lines[].namestringyes
lines[].unitstringno
lines[].quantitynumberyes
lines[].unit_cost_minorintegeryes
lines[].unit_price_minorintegerno
lines[].taxablebooleanno

Example

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

{
  "job_id": "00000000-0000-4000-8000-000000000000",
  "vendor_id": "00000000-0000-4000-8000-000000000000",
  "lines": [
    {
      "name": "Ruiz Plumbing",
      "quantity": "...",
      "unit_cost_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.