stripe_invoices_create
Create a draft Stripe invoice for a customer that bills nothing until finalized. Build the safe, unpaid half of invoicing before you charge.
Instructions
Create a draft invoice for a customer. It bills nothing until finalised, so this is the safe half of invoicing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| footer | No | Footer text displayed on the invoice. | |
| dueDate | No | Unix timestamp when payment is due. Valid only when `collection_method` is 'send_invoice'. Seconds, not milliseconds: 1700000000, not 1700000000000. | |
| currency | No | Three-letter lowercase ISO currency code. Absent, the customer's currency. | |
| customer | Yes | The ID of the customer to bill. | |
| metadata | No | Set of key-value pairs attached to the invoice. | |
| discounts | No | Coupons and promotion codes to apply. Absent, the invoice inherits the customer's discount. | |
| onBehalfOf | No | The connected account the funds are intended for. Its branding and support information appear on the invoice. | |
| autoAdvance | No | Whether Stripe collects the invoice automatically. False leaves the invoice where it is until you act on it. | |
| description | No | An arbitrary string attached to the invoice. Shown as the memo in the Dashboard. | |
| daysUntilDue | No | Days until the invoice is due. Valid only when `collection_method` is 'send_invoice'. | |
| subscription | No | Bill this subscription. The invoice then includes only that subscription's pending items, and its billing cycle is untouched. | |
| collectionMethod | No | How to collect payment. Absent, Stripe charges the customer's default payment method. | |
| statementDescriptor | No | What the customer sees on their card statement. Must contain at least one letter. | |
| defaultPaymentMethod | No | The payment method to charge. It must belong to the invoice's customer. | |
| pendingInvoiceItemsBehavior | No | Whether to pull the customer's pending invoice items onto this invoice. Absent, Stripe excludes them and the draft is empty. |