POST
/
prices

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Body

application/json
cadence
enum<string>
required

The cadence to bill for this price on.

Available options:
annual,
semi_annual,
monthly,
quarterly,
one_time,
custom
currency
string
required

An ISO 4217 currency string for which this price is billed in.

item_id
string
required

The id of the item the plan will be associated with.

model_type
enum<string>
required
Available options:
unit
name
string
required

The name of the price.

unit_config
object
required
billable_metric_id
string | null

The id of the billable metric for the price. Only needed if the price is usage-based.

billed_in_advance
boolean | null

If the Price represents a fixed cost, the price will be billed in-advance if this is true, and in-arrears if this is false.

billing_cycle_configuration
object | null

For custom cadence: specifies the duration of the billing period in days or months.

conversion_rate
number | null

The per unit conversion rate of the price currency to the invoicing currency.

external_price_id
string | null

An alias for the price.

fixed_price_quantity
number | null

If the Price represents a fixed cost, this represents the quantity of units applied.

invoice_grouping_key
string | null

The property used to group this price on an invoice

invoicing_cycle_configuration
object | null

Within each billing cycle, specifies the cadence at which invoices are produced. If unspecified, a single invoice is produced per billing cycle.

metadata
object | null

User-specified key/value pairs for the resource. Individual keys can be removed by setting the value to null, and the entire metadata mapping can be cleared by setting metadata to null.

Response

201 - application/json

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

billable_metric
object | null
required
billing_cycle_configuration
object
required
cadence
enum<string>
required
Available options:
one_time,
monthly,
quarterly,
semi_annual,
annual,
custom
conversion_rate
number | null
required
created_at
string
required
credit_allocation
object | null
required
currency
string
required
discount
object | null
required
external_price_id
string | null
required
fixed_price_quantity
number | null
required
id
string
required
invoicing_cycle_configuration
object | null
required
item
object
required
maximum
object | null
required
maximum_amount
string | null
required
metadata
object
required

User specified key-value pairs for the resource. If not present, this defaults to an empty dictionary. Individual keys can be removed by setting the value to null, and the entire metadata mapping can be cleared by setting metadata to null.

minimum
object | null
required
minimum_amount
string | null
required
model_type
enum<string>
required
Available options:
unit
name
string
required
plan_phase_order
integer | null
required
price_type
enum<string>
required
Available options:
usage_price,
fixed_price
unit_config
object
required