quotes.draft

A quote draft with each line's state (draft, approved, rejected), its source, the shop's lessons and the next line to read to the worker.

WhoAgents can call this
RESTGET /v1/quotes/drafts/get
MCP toolquotes_draft
Writesno
AreaShop

When to use it

Turn what the worker said and what you saw into quote lines without ever setting a price on your own. Call quotes.draftFromVisit with lines in the worker's words.

What to tell the owner

Tell them what you found in plain words. Don't read back raw fields.

Input

FieldTypeRequired
draft_idstring (uuid)yes

Example

GET https://doingwork.work/v1/quotes/drafts/get?draft_id=00000000-0000-4000-8000-000000000000

Output

FieldTypeAlways there
draft_idstring (uuid)yes
job_idstring (uuid)yes
visit_id['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')']yes
statusstringyes
quote_id['string', 'null', ' ', '(', 'u', 'u', 'i', 'd', ')']yes
linesarrayyes
lines[].line_idstring (uuid)yes
lines[].positionintegeryes
lines[].descriptionstringyes
lines[].quantitynumberyes
lines[].unit_price_minor['integer', 'null']yes
lines[].sourcestringyes
lines[].source_note['string', 'null']yes
lines[].statestringyes
open_linesintegeryes
lessonsarrayyes
next_actionsarrayyes
next_actions[].saystringyes
next_actions[].op['string', 'null']yes
{
  "draft_id": "00000000-0000-4000-8000-000000000000",
  "job_id": "00000000-0000-4000-8000-000000000000",
  "visit_id": "00000000-0000-4000-8000-000000000000",
  "status": "...",
  "quote_id": "00000000-0000-4000-8000-000000000000",
  "lines": [
    {
      "line_id": "00000000-0000-4000-8000-000000000000",
      "position": 1,
      "description": "40 gallon gas heater, installed",
      "quantity": "...",
      "unit_price_minor": "...",
      "source": "...",
      "source_note": "...",
      "state": "..."
    }
  ],
  "open_lines": 1,
  "lessons": [
    "..."
  ],
  "next_actions": [
    {
      "say": "...",
      "op": "..."
    }
  ]
}

Errors

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