quotes.draftFromVisit

Draft quote lines from a visit, in the worker's words and what you saw and heard. Leave out a price to look it up: the shop's own history, then its price book, then past quotes. Every line stays a draft with its source until the worker approves, changes or rejects it (quotes.decideDraftLine). Nothing is sent. Read the returned lessons first and follow them.

WhoAgents can call this
RESTPOST /v1/quotes/drafts
MCP toolquotes_draftFromVisit
Writesyes, send an Idempotency-Key
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

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

Input

FieldTypeRequired
visit_idstring (uuid)no
job_idstring (uuid)no
linesarrayyes
lines[].descriptionstringyes
lines[].quantitynumberno
lines[].unit_price_minorintegerno

Example

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

{
  "lines": [
    {
      "description": "40 gallon gas heater, installed"
    }
  ]
}

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.