Optionalautomatic_OptionalcurrencyThe currency to preview this invoice in. Defaults to that of customer if not specified.
OptionalcustomerThe identifier of the customer whose upcoming invoice you're retrieving. If automatic_tax is enabled then one of customer, customer_details, subscription, or schedule must be set.
Optionalcustomer_The identifier of the account representing the customer whose upcoming invoice you're retrieving. If automatic_tax is enabled then one of customer, customer_account, customer_details, subscription, or schedule must be set.
Optionalcustomer_Details about the customer you want to invoice or overrides for an existing customer. If automatic_tax is enabled then one of customer, customer_details, subscription, or schedule must be set.
OptionaldiscountsThe coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the subscription or customer. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts.
OptionalexpandSpecifies which fields in the response should be expanded.
Optionalinvoice_List of invoice items to add or update in the upcoming invoice preview (up to 250).
OptionalissuerThe connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
Optionalon_The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details.
Optionalpreview_Customizes the types of values to include when calculating the invoice. Defaults to next if unspecified.
OptionalscheduleThe identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
Optionalschedule_The schedule creation or modification params to apply as a preview. Cannot be used with subscription or subscription_ prefixed fields.
OptionalsubscriptionThe identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a subscription_details.items is provided, you will preview creating a subscription with those items. If neither subscription nor subscription_details.items is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions.
Optionalsubscription_The subscription creation or modification params to apply as a preview. Cannot be used with schedule or schedule_details fields.
Settings for automatic tax lookup for this invoice preview.