generate_monthly_invoice_drafts
Mutation/readOnly:false, script-tier/no-model-token action. Generate monthly billing draft invoices for every active client who has a monthlyRateCents or standing recurringItems. Clients that already have a draft or invoice for that billing month are skipped safely. Creates DRAFTS ONLY — nothing is emailed or charged until you send them with send_custom_invoice or bulk_send_custom_invoices. 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": {
"proAccessToken": "<proAccessToken>"
},
"name": "generate_monthly_invoice_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetMonth | No | 'current' (default) builds drafts for the current month; 'next' builds drafts for next month. | |
| 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. |