send_custom_invoice
Mutation/readOnly:false, script-tier/no-model-token action. Finalize and email one draft custom invoice to the client (and any CC emails) with a Stripe Connect hosted payment link (card and/or ACH). Requires confirm:true — without it, returns a confirmation preview naming the invoice, recipient, and total and sends nothing. You may optionally include draft field updates in the same call. 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": "send_custom_invoice"
}
}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 | Optional updated line items to apply right before sending. | |
| confirm | No | Must be true to finalize and email the invoice to the client. Omit to get a confirmation preview. | |
| 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. |