update_custom_invoice_draft
Mutation/readOnly:false, script-tier/no-model-token action. Update an unsent draft custom invoice (line items, title, client/recipient, CC emails, due date/terms, markup display mode, payment method mode, adjustments, receipt links, overdue reminders, or note). Send only the fields you want to change; if you send items, send the full updated list. Sent/paid/void invoices cannot be edited. Call get_custom_invoice first to inspect the draft. Requires the Owner or Admin role. Storefront Pro.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoiceId": "<invoiceId>",
"proAccessToken": "<proAccessToken>"
},
"name": "update_custom_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional message shown to the client on the invoice, up to 500 characters. | |
| dueAt | No | Explicit due date/timestamp in ISO 8601 format (e.g. "2026-12-15"). Overrides dueDays when set. | |
| items | No | Replacement line items list (1 to 40). Omit to keep existing items unchanged. | |
| dueDays | No | Days until due (0 = due on receipt, up to 90). Ignored if dueAt is provided. | |
| ccEmails | No | Up to 5 additional CC email addresses (e.g. owner's bookkeeper or captain). | |
| clientId | No | Saved client id from list_invoice_clients. Automatically fills defaults (email, terms, markup, CC, payment methods) unless overridden. | |
| invoiceId | Yes | The draft invoice id from list_custom_invoices. | |
| requestId | No | Optional idempotency key so retrying the same create or send does not create duplicates. | |
| saveClient | No | Set true to save a new ad-hoc customer into the private invoice client directory when saving the draft. | |
| customerName | No | Client/customer name shown on the invoice (required if clientId is not set). | |
| invoiceTitle | No | Short invoice title shown to the client (e.g. "December 2026 Yacht Management"), up to 140 characters. | |
| adjustmentIds | No | Optional saved shop adjustment ids (from list_adjustments, e.g. sales tax or discount), up to 20. | |
| customerEmail | No | Client/customer email where the invoice will be sent (required before sending if clientId is not set). | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. | |
| clientVesselName | No | Vessel name to store on the client record when saveClient is true. | |
| autoRemindOverdue | No | true = automatically email overdue reminders if this invoice goes past due. | |
| markupDisplayMode | No | 'separate_line' shows reimbursable markup on its own line; 'included_in_line' folds markup into each line. | |
| paymentMethodMode | No | Payment methods allowed on the Stripe invoice: 'card_and_ach', 'card_only', or 'ach_only'. | |
| includeReceiptLinks | No | true = include links to attached receipts on the invoice email/page. | |
| clientVesselLengthFt | No | Vessel length in whole feet (1–500) to store on the client record when saveClient is true. |