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.Operations.PostPrices

Contains the different functions to run the operation postPrices

  • 15 types
  • 7 values

Defines the object schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.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 paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.custom_unit_amount in the specification.

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

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.product_data in the specification.

These fields can be used to create a new product that this price will belong to.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.recurring in the specification.

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

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.recurring.properties.aggregate_usage in the specification.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.recurring.properties.interval in the specification.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.recurring.properties.usage_type in the specification.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.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 object schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tiers.items in the specification.

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tiers.items.properties.up_to.anyOf in the specification.

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.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 successively change as the quantity grows.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.transform_quantity in the specification.

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

Instances4Eq, Show, FromJSON, ToJSON

Defines the enum schema located at paths./v1/prices.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.transform_quantity.properties.round in the specification.

Constructors

Instances4Eq, Show, FromJSON, ToJSON
datadata PostPricesResponse
#

Represents a response of the operation postPrices.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostPricesResponseError is used.

Constructors

Instances2Eq, Show