HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulestripeapi-3.0.0.0Haskell2010

StripeAPI.Types.Invoiceitem

Contains the types generated from the schema Invoiceitem

  • 20 types
  • 5 values
datadata Invoiceitem
#

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

Sometimes you want to add a charge or credit to a customer, but actually charge or credit the customer's card only at the end of a regular billing cycle. This is useful for combining several charges (to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals.

Related guide: Subscription Invoices.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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

The ID of the customer who will be billed when this invoice item is billed.

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.invoiceitem.properties.discounts.items.anyOf in the specification.

Instances4Eq, Show, FromJSON, ToJSON

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

The ID of the invoice this invoice item belongs to.

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.invoiceitem.properties.price.anyOf in the specification.

The price of the invoice item.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.billing_scheme in the specification.

Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.custom_unit_amount.anyOf in the specification.

When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.object in the specification.

String representing the object's type. Objects of the same type share the same value.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.product.anyOf in the specification.

The ID of the product this price is associated with.

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.recurring.anyOf in the specification.

The recurring components of a price such as \`interval\` and \`usage_type\`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.recurring.anyOf.properties.aggregate_usage in the specification.

Specifies a usage aggregation strategy for prices of `usage_type=metered`. Allowed values are `sum` for summing up all usage during a period, `last_during_period` for using the last usage record reported within a period, `last_ever` for using the last usage record ever (across period bounds) or `max` which uses the usage record with the maximum reported usage during a period. Defaults to `sum`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.recurring.anyOf.properties.interval in the specification.

The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.recurring.anyOf.properties.usage_type in the specification.

Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.tax_behavior in the specification.

Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.tiers_mode in the specification.

Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.transform_quantity.anyOf in the specification.

Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with \`tiers\`.

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.transform_quantity.anyOf.properties.round in the specification.

After division, either round the result `up` or `down`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.type in the specification.

One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.invoiceitem.properties.subscription.anyOf in the specification.

The subscription that this invoice item has been created for, if any.

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.invoiceitem.properties.test_clock.anyOf in the specification.

ID of the test clock this invoice item belongs to.

Instances4Eq, Show, FromJSON, ToJSON