create_recurring_invoice
Set up a monthly recurring invoice (a Stripe subscription billed by invoice — no card on file). items = [{description, unit_amount_cents, quantity}] per month. start_date (YYYY-MM-DD, a future date) is the first billing date; it bills on that day each month. Optional discount_percent with discount_months (e.g. the rest of a contract's initial term; omit months for forever), days_until_due (default 30), description, new_customer. hold_for_approval (default true) keeps each month's invoice as a draft until the user finalizes and sends it from the Billing page; false has Stripe finalize and email each month's invoice automatically. Confirm the details with the user before creating.
Parameters
- customer_email (string, required)
- items (array, required)
- start_date (string, required)
- customer_name (string)
- days_until_due (integer, default 30)
- discount_percent (number)
- discount_months (integer)
- hold_for_approval (boolean, default true)
- description (string)
- new_customer (boolean, default false)