Defines the object schema located at components.schemas.customer in the specification.
This object represents a customer of your business. It lets you create recurring charges and track payments that belong to the same customer.
Related guide: Save a card during payment.
Constructors
CustomercustomerAddress :: Maybe (Nullable CustomerAddress'NonNullable)address: The customer's address.
customerBalance :: Maybe Intbalance: Current balance, if any, being stored on the customer. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized.
customerCashBalance :: Maybe (Nullable CustomerCashBalance'NonNullable)cash_balance: The current funds being held by Stripe on behalf of the customer. These funds can be applied towards payment intents with source "cash_balance".The settings[reconciliation_mode] field describes whether these funds are applied to such payment intents manually or automatically.
customerCreated :: Intcreated: Time at which the object was created. Measured in seconds since the Unix epoch.
customerCurrency :: Maybe (Nullable Text)currency: Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.
Constraints:
Maximum length of 5000
customerDefaultSource :: Maybe (Nullable CustomerDefaultSource'NonNullableVariants)default_source: ID of the default payment source for the customer.
If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method field instead.
customerDelinquent :: Maybe (Nullable Bool)delinquent: When the customer's latest invoice is billed by charging automatically, `delinquent` is `true` if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, `delinquent` is `true` if the invoice isn't paid by its due date.
If an invoice is marked uncollectible by dunning, `delinquent` doesn't get reset to `false`.
customerDescription :: Maybe (Nullable Text)description: An arbitrary string attached to the object. Often useful for displaying to users.
Constraints:
Maximum length of 5000
customerDiscount :: Maybe (Nullable CustomerDiscount'NonNullable)discount: Describes the current discount active on the customer, if there is one.
customerEmail :: Maybe (Nullable Text)email: The customer's email address.
Constraints:
Maximum length of 5000
customerId :: Textid: Unique identifier for the object.
Constraints:
Maximum length of 5000
customerInvoicePrefix :: Maybe (Nullable Text)invoice_prefix: The prefix for the customer used to generate unique invoice numbers.
Constraints:
Maximum length of 5000
customerInvoiceSettings :: Maybe InvoiceSettingCustomerSettinginvoice_settings:
customerLivemode :: Boollivemode: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
customerMetadata :: Maybe Objectmetadata: 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.
customerName :: Maybe (Nullable Text)name: The customer's full name or business name.
Constraints:
Maximum length of 5000
customerNextInvoiceSequence :: Maybe Intnext_invoice_sequence: The suffix of the customer's next invoice number, e.g., 0001.
customerPhone :: Maybe (Nullable Text)phone: The customer's phone number.
Constraints:
Maximum length of 5000
customerPreferredLocales :: Maybe (Nullable [Text])preferred_locales: The customer's preferred locales (languages), ordered by preference.
customerShipping :: Maybe (Nullable CustomerShipping'NonNullable)shipping: Mailing and shipping address for the customer. Appears on invoices emailed to this customer.
customerSources :: Maybe CustomerSources'sources: The customer's payment sources, if any.
customerSubscriptions :: Maybe CustomerSubscriptions'subscriptions: The customer's current subscriptions, if any.
customerTax :: Maybe CustomerTaxtax:
customerTaxExempt :: Maybe (Nullable CustomerTaxExempt'NonNullable)tax_exempt: Describes the customer's tax exemption status. One of `none`, `exempt`, or `reverse`. When set to `reverse`, invoice and receipt PDFs include the text **"Reverse charge"**.
customerTaxIds :: Maybe CustomerTaxIds'tax_ids: The customer's tax IDs.
customerTestClock :: Maybe (Nullable CustomerTestClock'NonNullableVariants)test_clock: ID of the test clock this customer belongs to.