quotes.linesFromTasks

Turn the flat rate tasks a worker picked into quote lines for quotes.create: shared tasks, or tasks per good, better, best option. Uses the member price when the customer has an active maintenance plan. Writes nothing; send the lines the worker approves to quotes.create.

WhoAgents can call this
RESTPOST /v1/quotes/lines-from-tasks
MCP toolquotes_linesFromTasks
Writesno
AreaShop

When to use it

Turn the flat rate tasks a worker picked into quote lines for quotes.create: shared tasks, or tasks per good, better, best option. Uses the member price when the customer has an active maintenance plan.

What to tell the owner

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

Input

FieldTypeRequired
shop_idstring (uuid)yes
customer_idstring (uuid)no
tasksarrayno
tasks[].item_idstring (uuid)yes
tasks[].quantitynumberno
optionsarrayno
options[].keystringyes
options[].labelstringyes
options[].tasksarrayyes
options[].tasks[].item_idstring (uuid)yes
options[].tasks[].quantitynumberno

Example

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

{
  "shop_id": "00000000-0000-4000-8000-000000000000"
}

Output

FieldTypeAlways there
memberbooleanyes
plan['object', 'null']yes
options['array', 'null']yes
linesarrayyes
lines[].descriptionstringyes
lines[].quantitynumberyes
lines[].unit_price_minorintegeryes
lines[].taxablebooleanyes
lines[].option_keystringno
detailsarrayyes
details[].item_idstring (uuid)yes
details[].task_code['string', 'null']yes
details[].option_key['string', 'null']yes
details[].price_minorintegeryes
details[].member_price_minor['integer', 'null']yes
details[].member_price_appliedbooleanyes
details[].warranty_note['string', 'null']yes
option_totals['object', 'null']yes
{
  "member": true,
  "plan": "...",
  "options": "...",
  "lines": [
    {
      "description": "40 gallon gas heater, installed",
      "quantity": "...",
      "unit_price_minor": 50000,
      "taxable": true
    }
  ],
  "details": [
    {
      "item_id": "00000000-0000-4000-8000-000000000000",
      "task_code": "...",
      "option_key": "...",
      "price_minor": 50000,
      "member_price_minor": "...",
      "member_price_applied": true,
      "warranty_note": "..."
    }
  ],
  "option_totals": "..."
}

Errors

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