create_custom_invoice_draft
Mutation/readOnly:false, script-tier/no-model-token action. Create an unsent draft custom client invoice. Does NOT email or charge the client — you can review, edit, or add expenses to it before calling send_custom_invoice. Pass either clientId (from list_invoice_clients) or customerName/customerEmail (optionally set saveClient:true to save them to the client directory). All amounts are whole cents; markups are basis points. 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": {
"items": "<items>",
"proAccessToken": "<proAccessToken>"
},
"name": "create_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 | Yes | At least one line item, up to 40. Prices in cents; markups in basis points. | |
| 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. | |
| 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. |