Create price
This endpoint is used to create a price. A price created using this endpoint is always an add-on, meaning that it’s not associated with a specific plan and can instead be individually added to subscriptions, including subscriptions on different plans.
An external_price_id can be optionally specified as an alias to allow ergonomic interaction with prices in the Orb API.
See the Price resource for the specification of different price model configurations possible in this endpoint.
Body
- NewFloatingUnitPrice
- NewFloatingTieredPrice
- NewFloatingBulkPrice
- NewFloatingBulkWithFiltersPrice
- NewFloatingPackagePrice
- NewFloatingMatrixPrice
- NewFloatingThresholdTotalAmountPrice
- NewFloatingTieredPackagePrice
- NewFloatingTieredWithMinimumPrice
- NewFloatingGroupedTieredPrice
- NewFloatingGroupedTieredMatrixPrice
- NewFloatingTieredPackageWithMinimumPrice
- NewFloatingPackageWithAllocationPrice
- NewFloatingUnitWithPercentPrice
- NewFloatingMatrixWithAllocationPrice
- NewFloatingTieredMatrixWithAllocationPrice
- NewFloatingMatrixWithThresholdDiscountsPrice
- NewFloatingTieredWithProrationPrice
- NewFloatingUnitWithProrationPrice
- NewFloatingGroupedAllocationPrice
- NewFloatingBulkWithProrationPrice
- NewFloatingGroupedWithProratedMinimumPrice
- NewFloatingGroupedWithMeteredMinimumPrice
- NewFloatingGroupedWithMinMaxThresholdsPrice
- NewFloatingMatrixWithDisplayNamePrice
- NewFloatingGroupedTieredPackagePrice
- NewFloatingMaxGroupTieredPackagePrice
- NewFloatingScalableMatrixWithUnitPricingPrice
- NewFloatingScalableMatrixWithTieredPricingPrice
- NewFloatingCumulativeGroupedBulkPrice
- NewFloatingCumulativeGroupedAllocationPrice
- NewFloatingDailyCreditAllowancePrice
- NewFloatingMeteredAllowancePrice
- NewFloatingMinimumCompositePrice
- NewFloatingPercentCompositePrice
- NewFloatingEventOutputPrice
- NewFloatingUnitWithMultiplierPrice
New floating price request body params.
The ID of the license type to associate with this price. On a usage price this also marks the price as eligible to draw down from that license type's allocation; a usage price created without it is billed normally. Usage prices with a license type must use the unit model, and only draw down when their currency matches the allocation's.
Response
Created
- UnitPrice
- TieredPrice
- BulkPrice
- BulkWithFiltersPrice
- PackagePrice
- MatrixPrice
- ThresholdTotalAmountPrice
- TieredPackagePrice
- TieredWithMinimumPrice
- GroupedTieredPrice
- GroupedTieredMatrixPrice
- TieredPackageWithMinimumPrice
- PackageWithAllocationPrice
- UnitWithPercentPrice
- MatrixWithAllocationPrice
- TieredMatrixWithAllocationPrice
- MatrixWithThresholdDiscountsPrice
- TieredWithProrationPrice
- UnitWithProrationPrice
- GroupedAllocationPrice
- BulkWithProrationPrice
- GroupedWithProratedMinimumPrice
- GroupedWithMeteredMinimumPrice
- GroupedWithMinMaxThresholdsPrice
- MatrixWithDisplayNamePrice
- GroupedTieredPackagePrice
- MaxGroupTieredPackagePrice
- ScalableMatrixWithUnitPricingPrice
- ScalableMatrixWithTieredPricingPrice
- CumulativeGroupedBulkPrice
- CumulativeGroupedAllocationPrice
- DailyCreditAllowancePrice
- MeteredAllowancePrice
- MinimumCompositePrice
- PercentCompositePrice
- EventOutputPrice
- UnitWithMultiplierPrice
The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in the form of an invoice line item. Prices take a quantity and determine an amount to bill.
Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a given Price object. The model_type field determines the key for the configuration object that is present.
For more on the types of prices, see the core concepts documentation