invoices.createFromQuote
Create an invoice for a signed quote, for the total of the option and optional lines the customer picked.
| Who | Agents can call this |
| REST | POST /v1/invoices |
| MCP tool | invoices_createFromQuote |
| Writes | yes, send an Idempotency-Key |
| Area | Invoices and payments (unlimited) |
When to use it
The quote is signed. Make the invoice, with a deposit if the owner wants one.
What to tell the owner
I made the invoice from the signed quote.
Input
| Field | Type | Required |
|---|---|---|
quote_id | string | yes |
deposit_minor | integer | no |
Example
POST https://doingwork.work/v1/invoices
content-type: application/json
Idempotency-Key: 3f1c...
{
"quote_id": "00000000-0000-4000-8000-000000000000"
}Output
JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.
Errors
| Code | Status | What to do |
|---|---|---|
conflict | 409 | The record is in the wrong state for this, for example sending a quote that's already signed. Read it again and pick the next step. |
not_found | 404 | No such record, or this worker can't see it. |
invalid_input, invalid_token, rate_limited | Can happen on any call. See errors. |