HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulestripeapi-3.0.0.0Haskell2010

StripeAPI.Types.CustomerBalanceTransaction

Contains the types generated from the schema CustomerBalanceTransaction

  • 5 types
  • 1 value
  • Packagestripeapi-3.0.0.0
  • Exports6
  • LanguageHaskell2010
  • LicenceMIT
  • SourceCustomerBalanceTransaction.hs

Defines the object schema located at components.schemas.customer_balance_transaction in the specification.

Each customer has a `balance` value, which denotes a debit or credit that's automatically applied to their next invoice upon finalization. You may modify the value directly by using the update customer API, or by creating a Customer Balance Transaction, which increments or decrements the customer's `balance` by the specified `amount`.

Related guide: Customer Balance to learn more.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Create a new CustomerBalanceTransaction with all required fields.

Defines the oneOf schema located at components.schemas.customer_balance_transaction.properties.credit_note.anyOf in the specification.

The ID of the credit note (if any) related to the transaction.

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.customer_balance_transaction.properties.customer.anyOf in the specification.

The ID of the customer the transaction belongs to.

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.customer_balance_transaction.properties.invoice.anyOf in the specification.

The ID of the invoice (if any) related to the transaction.

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.customer_balance_transaction.properties.type in the specification.

Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, or `unapplied_from_invoice`. See the Customer Balance page to learn more about transaction types.

Constructors

Instances4Eq, Show, FromJSON, ToJSON