Field Service Business Platform by Doing Work

v1.0.4
work.doingwork/shop Checked 3 days ago Published 6 days ago

Run a service shop by text, WhatsApp or voice.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

me_get

The signed-in person. Call me.start for shops, what this connection can do, and the next tasks.

me_start

Start here. Shops this connection can use, the grant in plain words, counts, and the next tasks for the state of each shop.

jobs_create

Start a job at a home, found or created from the address: address is an object, not a string, with required line1, locality, postal_code and jurisdiction (line2 is optional; jurisdiction is an ISO 3166-2 code like US-ID, and a US shop also accepts ID, id, or Idaho), for example {"line1":"100 Test St","locality":"Boise","postal_code":"83702","jurisdiction":"US-ID"}.

ParameterTypeDescription
address *objectaddress is an object, not a string, with required line1, locality, postal_code and jurisdiction (line2 is optional; jurisdiction is an ISO 3166-2 code like US-ID, and a US shop also accepts ID, id, or…
shop_id *string
customer_idstring
summarystring

jobs_list

Jobs of a shop you belong to, newest first. A field worker sees only jobs with a visit they are assigned to. A lead also sees jobs their crew is on. Another shop is refused, including a shop token pointed at a different shop. Optional status filter. Shop roles are owner, office, lead and field.

ParameterTypeDescription
shop_id *string
limitintegerHow many jobs to return (default 50). An integer, or a numeric string such as "50".
statusstring

quotes_create

Create a quote (AI can draft lines; a person who can send quotes approves agent-drafted lines before the quote is sent). Optional: good, better, best options and optional lines the customer picks when signing.

ParameterTypeDescription
job_id *string
lines *array
notesstring | nullWritten scope of work stored on this version. The customer page and PDF show it.
optionsarrayGood, better, best: 2 to 5 options the customer chooses one of when signing. Each needs its own lines.
tax_rate_idstring | nullTax rate to charge (taxes.listRates). Leave out to use the shop default rate; null for no tax.
tmobjectRush or open-ended work: the customer signs the rates, and invoices.createFromTm bills approved time and materials at them. Lines may then be empty.

quotes_send

Lock the quote and get a single-use signing link for the customer (the customer signs on the hosted page; an agent cannot sign or accept a quote). Who may send is shops.sendPermissions: the owner always may, office for any job, a lead for jobs on their crew, and a field worker for jobs assigned to them, until the owner turns that off. Lines an agent drafted are refused until a person who may send quotes sends the quote. An agent token cannot send those lines. A quote imported as history cannot be sent.

ParameterTypeDescription
quote_id *string
email_customerbooleanAlso email the customer a branded email with their own signing link, from the shop. Default false: you share sign_url yourself.

quotes_revise

Pass the COMPLETE new line list; any line you omit is removed. Replace an unsigned quote with a new version. Earlier signing links stop working; send it again for a new link.

ParameterTypeDescription
lines *array
quote_id *string
notesstring | nullWritten scope of work stored on this version. Leave out to keep the notes of the last version; null to clear.
optionsarrayGood, better, best: 2 to 5 options the customer chooses one of when signing. Each needs its own lines.
tax_rate_idstring | nullTax rate to charge (taxes.listRates). Leave out to use the shop default rate; null for no tax.
tmobject | nullNew rates. Leave out to keep the rates of the last version; null to make it a fixed price quote.

quotes_list

Customer quotes in one shop, newest first. Filter by job_id, status, or both. Read only. Send shop_id or job_id. A shop you are not a member of is refused, and a job you cannot access is not found.

ParameterTypeDescription
cursorstring
job_idstring
limitintegerHow many rows to return. Default 50 when you leave it out. An integer, or a numeric string such as "50".
shop_idstring
statusstring

invoices_createFromQuote

Create an invoice for a signed quote, for the total of the option and optional lines the customer picked. A quote imported as history cannot be invoiced.

ParameterTypeDescription
quote_id *string
deposit_minorintegerOptional deposit asked for on the first send

invoices_send

Send an invoice (or the next part of it) and get a single-use pay link. Who may send is shops.sendPermissions: the owner always may, office for any job, a lead for jobs on their crew, and a field worker for jobs assigned to them, until the owner turns that off. Lines an agent drafted stay unsent until a person who may send invoices sends them. An agent token cannot send those lines. Earlier pay links stop working. Refused with conflict on a Doing Work deposit invoice whose booking ended (shop cancel or no-show). payments_ready false means the shop has no active payments account yet (after a ha…

ParameterTypeDescription
invoice_id *string
amount_minorintegerAmount to ask for now. Defaults to the deposit on the first send, then the balance.
email_customerbooleanAlso email the customer a branded email with their own pay link, from the shop. Default false: you share pay_url yourself.
percentnumberProgress billing: ask for this percent of the invoice total now (capped at the balance). Use instead of amount_minor.

customers_create

Add a customer to a shop, with kind, company, email, phone, billing address, lead source, tags and notes in one call.

ParameterTypeDescription
name *string
shop_id *string
billing_addressobject
company_namestring
emailstring
kindstring
lead_sourcestring
notesstring
phonestring
tagsarray

visits_create

Book a visit to a job at a time, optionally with the workers going (assignee_ids, a saved crew_id, or both). Overlaps for those workers come back in conflicts.

ParameterTypeDescription
ends_at *string
job_id *string
starts_at *string
arrival_window_minutesintegerArrival window in minutes: the customer is told the worker arrives between starts_at and starts_at plus this. Defaults to the shop's setting (schedule.setRules).
assignee_idsarray
crew_idstring
notesstring
prioritystringnormal (default), urgent or emergency. Urgent and emergency visits send visit.priority_set and can use dispatch.suggest.
titlestring

invoices_create

Create an invoice without a quote (AI can draft lines; a person who can send invoices approves agent-drafted lines before the invoice is sent). Optional due date, memo and deposit. Send it with invoices.send.

ParameterTypeDescription
job_id *string
lines *array
deposit_minorinteger
due_onstring
memostring
tax_rate_idstring | nullTax rate to charge. Leave out for the shop default rate; null for no tax.

invoices_list

Invoices in one shop, newest first. Filter by status or by a customer name or invoice id. Read only. A shop you are not a member of is refused. Seeing the amounts needs see_prices, the same as invoices.get.

ParameterTypeDescription
shop_id *string
cursorstring
limitintegerHow many rows to return. Default 50 when you leave it out. An integer, or a numeric string such as "50".
qstring
statusstring

notes_add

Write a note on any shop record: a job, visit, photo or video, customer, property, equipment, quote, invoice, request, worker, payment, price book item, maintenance plan or the shop (target_kind and target_id; job_id or visit_id alone also work). Any shop member can. Notes are internal to the shop and never shown to the customer. Set audience office to keep it to owner and office (owner or office only); notes on a worker or payment are always office. pinned keeps it at the top (owner or office only). Attach photos or videos already on the job with media_ids. Mention members to notify them; say…

ParameterTypeDescription
body *string
agent_namestringYour agent's name, shown next to the writer, when an agent wrote the note for the worker.
audiencestringteam (default): every shop member sees it. office: owner, office and the managing platform only.
channelstringWhere the words came from: typed, email, call, text, or visit.
job_idstring
media_idsarrayPhotos or videos already on the job.
mentionsarrayPerson ids of shop members to notify (team.list). They get an email unless they turned it off. Office notes can mention only owner and office. Customers are never notified.
pinnedboolean
target_idstring
target_kindstringWhat the note is on. worker is a membership id, payment a charge id, media a photo or video id, shop the shop id. Notes on a worker or a payment are office only.
visit_idstring

ops_call

Invoke any Doing Work operation discovered via ops_search (or known by name, e.g. 'po_create' or 'books.export') with its arguments and optional idempotencyKey.

ParameterTypeDescription
tool_name *stringOperation tool name (e.g. 'po_create' or 'po.create').
argumentsobjectArguments object matching the operation's inputSchema.
idempotencyKeystringOptional idempotency key for write operations.