Attributes
- idstring
Unique identifier for the object.
- line_
itemsobjectIncludable A list of items the customer is being quoted for.
- metadatamap
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.
More attributes
- objectstring, value is "quote"
- amount_
subtotalinteger - amount_
totalinteger - applicationnullable stringExpandableConnect only
- application_
fee_ amountnullable integerConnect only - application_
fee_ percentnullable numberConnect only - automatic_
taxobject - collection_
methodenum - computedobject
- createdtimestamp
- currencynullable string
- customernullable stringExpandable
- customer_
accountnullable string - default_
tax_ ratesarray of stringsExpandable - descriptionnullable string
- discountsarray of stringsExpandable
- expires_
attimestamp - footernullable string
- from_
quotenullable object - headernullable string
- invoicenullable stringExpandable
- invoice_
settingsobject - livemodeboolean
- numbernullable string
- on_
behalf_ ofnullable stringExpandableConnect only - statusenum
- status_
transitionsobject - subscriptionnullable stringExpandable
- subscription_
dataobject - subscription_
schedulenullable stringExpandable - test_
clocknullable stringExpandable - total_
detailsobject - transfer_
datanullable objectConnect only
{ "id": "qt_1Mr7wVLkdIwHu7ixJYSiPTGq", "object": "quote", "amount_subtotal": 2198, "amount_total": 2198, "application": null, "application_fee_amount": null, "application_fee_percent": null, "automatic_tax": { "enabled": false, "liability": null, "status": null }, "collection_method": "charge_automatically", "computed": { "recurring": null, "upfront": { "amount_subtotal": 2198, "amount_total": 2198, "total_details": { "amount_discount": 0, "amount_shipping": 0, "amount_tax": 0 } } }, "created": 1680130691, "currency": "usd", "customer": "cus_NcMfB0SSFHINCV", "default_tax_rates": [], "description": null, "discounts": [], "expires_at": 1682722691, "footer": null, "from_quote": null, "header": null, "invoice": null, "invoice_settings": { "days_until_due": null, "issuer": { "type": "self" } }, "livemode": false, "metadata": {}, "number": null, "on_behalf_of": null, "status": "draft", "status_transitions": { "accepted_at": null, "canceled_at": null, "finalized_at": null }, "subscription": null, "subscription_data": { "description": null, "effective_date": null, "trial_period_days": null }, "subscription_schedule": null, "test_clock": null, "total_details": { "amount_discount": 0, "amount_shipping": 0, "amount_tax": 0 }, "transfer_data": null}The Quote Preview Invoice object v1Preview
Attributes
- idstring
Unique identifier for the object. For preview invoices created using the create preview endpoint, this id will be prefixed with
upcoming_.in - automatic_
taxobject Settings and latest results for automatic tax lookup for this invoice.
- collection_
methodenum Either
charge_, orautomatically send_. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions.invoice Possible enum valuescharge_automatically Attempt payment using the default source attached to the customer.
send_invoice Email payment instructions to the customer.
- confirmation_
secretnullable objectIncludable The confirmation secret associated with this invoice. Currently, this contains the client_secret of the PaymentIntent that Stripe creates during invoice finalization.
- currencyenum
Three-letter ISO currency code, in lowercase. Must be a supported currency.
- customer_
accountnullable string The ID of the account representing the customer to bill.
- descriptionnullable string
An arbitrary string attached to the object. Often useful for displaying to users. Referenced as ‘memo’ in the Dashboard.
- linesobject
The individual line items that make up the invoice.
linesis sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order. - metadatanullable map
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.
- parentnullable object
The parent that generated this invoice
- paymentsobjectIncludable
Payments for this invoice. Use invoice payment to get more details.
- period_
endtimestamp The latest timestamp at which invoice items can be associated with this invoice. Use the line item period to get the service period for each price.
- period_
starttimestamp The earliest timestamp at which invoice items can be associated with this invoice. Use the line item period to get the service period for each price.
- statusnullable enum
The status of the invoice, one of
draft,open,paid,uncollectible, orvoid. Learn morePossible enum valuesdraftopenpaiduncollectiblevoid - totalinteger
Total after discounts and taxes.
More attributes
- objectstring, value is "quote_preview_invoice"
- account_
countrynullable string - account_
namenullable string - account_
tax_ idsnullable array of stringsExpandable - amount_
dueinteger - amount_
overpaidinteger - amount_
paidinteger - amount_
paid_ off_ stripeintegerIncludable - amount_
remaininginteger - amount_
shippinginteger - applicationnullable stringExpandableConnect only
- attempt_
countinteger - attemptedboolean
- automatically_
finalizes_ atnullable timestamp - billing_
reasonnullable enum - createdtimestamp
- custom_
fieldsnullable array of objects - customer_
addressnullable object - customer_
emailnullable string - customer_
namenullable string - customer_
phonenullable string - customer_
shippingnullable object - customer_
tax_ exemptnullable enum - customer_
tax_ idsnullable array of objects - default_
payment_ methodnullable stringExpandable - default_
sourcenullable stringExpandable - default_
tax_ ratesarray of objects - discountsarray of stringsExpandable
- due_
datenullable timestamp - effective_
atnullable timestamp - ending_
balancenullable integer - footernullable string
- from_
invoicenullable object - issuerobjectConnect only
- last_
finalization_ errornullable object - latest_
revisionnullable stringExpandable - livemodeboolean
- next_
payment_ attemptnullable timestamp - numbernullable string
- on_
behalf_ ofnullable stringExpandableConnect only - payment_
settingsobject - post_
payment_ credit_ notes_ amountinteger - pre_
payment_ credit_ notes_ amountinteger - receipt_
numbernullable string - renderingnullable object
- shipping_
costnullable object - shipping_
detailsnullable object - starting_
balanceinteger - statement_
descriptornullable string - status_
detailsnullable object - status_
transitionsobject - subtotalinteger
- subtotal_
excluding_ taxnullable integer - test_
clocknullable stringExpandable - threshold_
reasonnullable object - total_
discount_ amountsnullable array of objects - total_
excluding_ taxnullable integer - total_
pretax_ credit_ amountsnullable array of objects - total_
taxesnullable array of objects - webhooks_
delivered_ atnullable timestamp
{ "id": "preview_in_1MtHbELkdIwHu7ixl4OzzPMv", "object": "quote_preview_invoice", "account_country": "US", "account_name": "Stripe Docs", "account_tax_ids": null, "amount_due": 0, "amount_paid": 0, "amount_overpaid": 0, "amount_remaining": 0, "amount_shipping": 0, "application": null, "applies_to": { "type": "new_reference", "new_reference": "subscription-1", "subscription_schedule": null }, "attempt_count": 0, "attempted": false, "automatic_tax": { "enabled": false, "liability": null, "status": null }, "billing_reason": "subscription_create", "collection_method": "charge_automatically", "created": 1680644467, "currency": "usd", "custom_fields": null, "customer_address": null, "customer_email": "jennyrosen@example.com", "customer_name": "Jenny Rosen", "customer_phone": null, "customer_shipping": null, "customer_tax_exempt": "none", "customer_tax_ids": [], "confirmation_secret": null, "default_payment_method": null, "default_source": null, "default_tax_rates": [], "description": null, "discounts": [], "due_date": null, "ending_balance": null, "footer": null, "from_invoice": null, "issuer": { "type": "self" }, "last_finalization_error": null, "latest_revision": null, "lines": { "object": "list", "data": [], "has_more": false, "total_count": 0, "url": "/v1/quotes/qt_1Mr7CILkdIwHu7ixwSqY2nMz/preview_invoices/preview_in_1MtHbELkdIwHu7ixl4OzzPMv/lines" }, "payments": { "object": "list", "data": [], "has_more": false, "total_count": 0, "url": "/v1/invoice_payments" }, "livemode": false, "metadata": {}, "next_payment_attempt": null, "number": null, "on_behalf_of": null, "parent": null, "payment_settings": { "default_mandate": null, "payment_method_options": null, "payment_method_types": null }, "period_end": 1680644467, "period_start": 1680644467, "post_payment_credit_notes_amount": 0, "pre_payment_credit_notes_amount": 0, "receipt_number": null, "shipping_cost": null, "shipping_details": null, "starting_balance": 0, "statement_descriptor": null, "status": "draft", "status_transitions": { "finalized_at": null, "marked_uncollectible_at": null, "paid_at": null, "voided_at": null }, "subscription": null, "subtotal": 0, "subtotal_excluding_tax": 0, "test_clock": null, "total": 0, "total_discount_amounts": [], "total_excluding_tax": 0, "total_taxes": [], "webhooks_delivered_at": 1680644467}Attributes
- idstring
Unique identifier for the object.
- applies_
toobject Details to identify the subscription schedule the quote line applies to.
- current_
phasenullable object Object representing the start and end dates for the current phase of the subscription schedule, if it is
active. - customerstringExpandable
ID of the customer who owns the subscription schedule.
- metadatanullable map
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.
- phasesarray of objects
Configuration for the subscription schedule’s phases.
- statusenum
The present status of the subscription schedule. Possible values are
not_,started active,completed,released, andcanceled. You can read more about the different states in our behavior guide.Possible enum valuesactivecanceledcompletednot_started released - subscriptionnullable stringExpandable
ID of the subscription managed by the subscription schedule.
More attributes
- objectstring, value is "quote_preview_subscription_schedule"
- applicationnullable stringExpandableConnect only
- billing_
modeobject - canceled_
atnullable timestamp - completed_
atnullable timestamp - createdtimestamp
- customer_
accountnullable string - default_
settingsobject - end_
behaviorenum - livemodeboolean
- pause_
schedulesarray of objects - released_
atnullable timestamp - released_
subscriptionnullable string - test_
clocknullable stringExpandable
{ "id": "preview_sub_sched_1Mr3YdLkdIwHu7ixjop3qtff", "object": "quote_preview_subscription_schedule", "application": null, "applies_to": { "type": "new_reference", "new_reference": "subscription-1", "subscription_schedule": null }, "billing_mode": { "type": "classic", "updated_at": null }, "canceled_at": null, "completed_at": null, "created": 1724058651, "current_phase": null, "customer": "cus_NcI8FsMbh0OeFs", "default_settings": { "application_fee_percent": null, "automatic_tax": { "enabled": false, "liability": null }, "billing_cycle_anchor": "automatic", "collection_method": "charge_automatically", "default_payment_method": null, "default_source": null, "description": null, "invoice_settings": { "issuer": { "type": "self" } }, "on_behalf_of": null, "transfer_data": null }, "end_behavior": "release", "livemode": false, "metadata": {}, "phases": [ { "add_invoice_items": [], "application_fee_percent": null, "billing_cycle_anchor": null, "collection_method": null, "currency": "usd", "default_payment_method": null, "default_tax_rates": [], "description": null, "discounts": null, "end_date": 1818666418, "invoice_settings": null, "items": [ { "discounts": null, "metadata": {}, "plan": "price_1Mr3YcLkdIwHu7ixYCFhXHNb", "price": "price_1Mr3YcLkdIwHu7ixYCFhXHNb", "quantity": 1, "tax_rates": [] } ], "metadata": {}, "on_behalf_of": null, "proration_behavior": "create_prorations", "start_date": 1787130418, "transfer_data": null, "trial_end": null } ], "released_at": null, "released_subscription": null, "renewal_interval": null, "status": "not_started", "subscription": null, "test_clock": null}