Create Price

View as Markdown
Create a new price for a product. Works for both User and API Key authentication. Account access is automatically validated via endpoint dependency.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

account_idstringRequired

Request

This endpoint expects an object.
product_idstringRequired
currencyenumRequired
ISO 4217 currency codes.
namestring or nullOptional
is_activebooleanOptionalDefaults to true
unit_labelstring or nullOptional
pricing_typeenumOptionalDefaults to one_time
recurring_intervalenum or nullOptional
recurring_interval_countinteger or nullOptional
auto_renewboolean or nullOptional
contract_term_multipleinteger or nullOptional

Number of billing intervals in a contract term (e.g., 4 for quarterly billing in 1-year contract)

trial_daysintegerOptionalDefaults to 0
usage_typeenumOptionalDefaults to licensed
metered_idstring or nullOptional
billing_schemeenumOptionalDefaults to per_unit
unit_amount_atominteger or nullOptional
tier_amount_infoobject or nullOptional
Tiered pricing configuration.
prerequisite_price_idslist of strings or nullOptional
exclusive_customer_idslist of strings or nullOptional
metadatamap from strings to any or nullOptional
custom_fieldsmap from strings to any or nullOptional
Custom field values to set on this price. Keys must match defined field keys for the price entity type. Set a key to null to delete that field's value.
quantity_divisorinteger or nullOptional
Quantity divisor must be greater than or equal to 1
quantity_roundingenumOptionalDefaults to ceil

Rounding mode for fractional billable units. ‘ceil’ (default) rounds up for packaged pricing. ‘proportional’ keeps exact fractions for percentage-based fees. ‘floor’ rounds down. ‘round’ uses standard rounding.

Response

Successful Response
idstring
account_idstring
product_idstring
namestring or null
unit_amount_atominteger or null
currencyenum
ISO 4217 currency codes.
is_activeboolean
unit_labelstring or null
pricing_typestring
recurring_intervalstring or null
recurring_interval_countinteger or null
auto_renewboolean or null
contract_term_multipleinteger or null
trial_daysinteger
usage_typestring
metered_idstring or null
billing_schemestring
tier_amount_infoobject or null
Tiered pricing configuration.
prerequisite_price_idslist of strings or null
exclusive_customer_idslist of strings or null
metadatamap from strings to any or null
created_atdatetime
updated_atdatetime
product_namestring or nullOptional
product_descriptionstring or nullOptional
custom_fieldsmap from strings to any or nullOptional

Custom field values. Only included when expand=custom_fields is specified.

quantity_divisorintegerOptionalDefaults to 1
quantity_roundingenumOptional

Rounding mode for fractional billable units in metered pricing.

  • CEIL (default): Round up to next whole unit — for packaged pricing
  • PROPORTIONAL: Keep exact fractions — for percentage-based fees (e.g., 0.65% of volume)
  • FLOOR: Round down to whole unit
  • ROUND: Standard rounding (0.5+ rounds up)

Errors

422
Unprocessable Entity Error