/v1/invoices/{invoice}Draft invoices are fully editable. Once an invoice is finalized,
monetary values, as well as collection_method, become uneditable.
If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
sending reminders for, or automatically reconciling invoices, pass
auto_advance=false.
| Name | Description |
|---|---|
| invoice* |
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| account_tax_ids | array<string> | string | The account tax IDs associated with the invoice. Only editable when the invoice is a draft. | |||||||||||||||||||||||||||||||||||||||||||||
| application_fee_amount | integer | A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees documentation. | |||||||||||||||||||||||||||||||||||||||||||||
| auto_advance | boolean | Controls whether Stripe performs automatic collection of the invoice. | |||||||||||||||||||||||||||||||||||||||||||||
| automatic_tax | object | Settings for automatic tax lookup for this invoice. 2 nested fields
| |||||||||||||||||||||||||||||||||||||||||||||
| automatically_finalizes_at | integer (unix-time) | The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state. To turn off automatic finalization, set | |||||||||||||||||||||||||||||||||||||||||||||
| collection_method | string | Either | |||||||||||||||||||||||||||||||||||||||||||||
| custom_fields | array<object> | string | A list of up to 4 custom fields to be displayed on the invoice. If a value for | |||||||||||||||||||||||||||||||||||||||||||||
| days_until_due | integer | The number of days from which the invoice is created until it is due. Only valid for invoices where | |||||||||||||||||||||||||||||||||||||||||||||
| default_payment_method | string | ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings. | |||||||||||||||||||||||||||||||||||||||||||||
| default_source | string | string | ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source. | |||||||||||||||||||||||||||||||||||||||||||||
| default_tax_rates | array<string> | string | The tax rates that will apply to any line item that does not have | |||||||||||||||||||||||||||||||||||||||||||||
| description | string | An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard. | |||||||||||||||||||||||||||||||||||||||||||||
| discounts | array<object> | string | The discounts that will apply to the invoice. Pass an empty string to remove previously-defined discounts. | |||||||||||||||||||||||||||||||||||||||||||||
| due_date | integer (unix-time) | The date on which payment for this invoice is due. Only valid for invoices where | |||||||||||||||||||||||||||||||||||||||||||||
| effective_at | integer (unix-time) | string | The date when this invoice is in effect. Same as | |||||||||||||||||||||||||||||||||||||||||||||
| expand | array<string> | Specifies which fields in the response should be expanded. | |||||||||||||||||||||||||||||||||||||||||||||
| footer | string | Footer to be displayed on the invoice. | |||||||||||||||||||||||||||||||||||||||||||||
| issuer | object | The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. 2 nested fields
| |||||||||||||||||||||||||||||||||||||||||||||
| metadata | object | string | Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to | |||||||||||||||||||||||||||||||||||||||||||||
| number | string | string | Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically. | |||||||||||||||||||||||||||||||||||||||||||||
| on_behalf_of | string | string | 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. | |||||||||||||||||||||||||||||||||||||||||||||
| payment_settings | object | Configuration settings for the PaymentIntent that is generated when the invoice is finalized. 3 nested fields
| |||||||||||||||||||||||||||||||||||||||||||||
| rendering | object | The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. 4 nested fields
| |||||||||||||||||||||||||||||||||||||||||||||
| shipping_cost | object | string | Settings for the cost of shipping for this invoice. | |||||||||||||||||||||||||||||||||||||||||||||
| shipping_details | object | string | Shipping details for the invoice. The Invoice PDF will use the | |||||||||||||||||||||||||||||||||||||||||||||
| statement_descriptor | string | Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default | |||||||||||||||||||||||||||||||||||||||||||||
| transfer_data | object | string | If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge. This will be unset if you POST an empty value. |
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| account_country | string | The country of the business associated with this invoice, most often the business creating the invoice. | ||||||||||||||||||
| account_name | string | The public name of the business associated with this invoice, most often the business creating the invoice. | ||||||||||||||||||
| account_tax_ids | array<string | tax_id | deleted_tax_id> | The account tax IDs associated with the invoice. Only editable when the invoice is a draft. | ||||||||||||||||||
| amount_due* | integer | Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the | ||||||||||||||||||
| amount_overpaid* | integer | Amount that was overpaid on the invoice. The amount overpaid is credited to the customer's credit balance. | ||||||||||||||||||
| amount_paid* | integer | The amount, in cents (or local equivalent), that was paid. | ||||||||||||||||||
| amount_paid_off_stripe* | integer | Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe. | ||||||||||||||||||
| amount_remaining* | integer | The difference between amount_due and amount_paid, in cents (or local equivalent). | ||||||||||||||||||
| amount_shipping* | integer | This is the sum of all the shipping amounts. | ||||||||||||||||||
| application | string | application | deleted_application | ID of the Connect Application that created the invoice. | ||||||||||||||||||
| attempt_count* | integer | Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained. | ||||||||||||||||||
| attempted* | boolean | Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the | ||||||||||||||||||
| auto_advance* | boolean | Controls whether Stripe performs automatic collection of the invoice. If | ||||||||||||||||||
| automatic_tax* | automatic_tax | 5 nested fields
| ||||||||||||||||||
| automatically_finalizes_at | integer (unix-time) | The time when this invoice is currently scheduled to be automatically finalized. The field will be | ||||||||||||||||||
| billing_reason | string | Indicates the reason why the invoice was created.
* | ||||||||||||||||||
| collection_method* | string | Either | ||||||||||||||||||
| confirmation_secret | invoices_resource_confirmation_secret | The confirmation secret associated with this invoice. Currently, this contains the client_secret of the PaymentIntent that Stripe creates during invoice finalization. | ||||||||||||||||||
| created* | integer (unix-time) | Time at which the object was created. Measured in seconds since the Unix epoch. | ||||||||||||||||||
| currency* | string (currency) | Three-letter ISO currency code, in lowercase. Must be a supported currency. | ||||||||||||||||||
| custom_fields | array<invoice_setting_custom_field> | Custom fields displayed on the invoice. array item fields
| ||||||||||||||||||
| customer* | string | customer | deleted_customer | The ID of the customer to bill. | ||||||||||||||||||
| customer_account | string | The ID of the account representing the customer to bill. | ||||||||||||||||||
| customer_address | address | The customer's address. Until the invoice is finalized, this field will equal | ||||||||||||||||||
| customer_email | string | The customer's email. Until the invoice is finalized, this field will equal | ||||||||||||||||||
| customer_name | string | The customer's name. Until the invoice is finalized, this field will equal | ||||||||||||||||||
| customer_phone | string | The customer's phone number. Until the invoice is finalized, this field will equal | ||||||||||||||||||
| customer_shipping | shipping | The customer's shipping information. Until the invoice is finalized, this field will equal | ||||||||||||||||||
| customer_tax_exempt | string | The customer's tax exempt status. Until the invoice is finalized, this field will equal | ||||||||||||||||||
| customer_tax_ids | array<invoices_resource_invoice_tax_id> | The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as array item fields
|