Skip to main content
GET
/
prices
/
{price_id}
Fetch price
curl --request GET \
  --url https://api.withorb.com/v1/prices/{price_id} \
  --header 'Authorization: Bearer <token>'
{
  "model_type": "unit",
  "unit_config": {
    "unit_amount": "<string>",
    "prorated": false
  },
  "metadata": {},
  "id": "<string>",
  "name": "<string>",
  "external_price_id": "<string>",
  "replaces_price_id": "<string>",
  "price_type": "usage_price",
  "created_at": "2023-11-07T05:31:56Z",
  "cadence": "one_time",
  "billing_mode": "in_advance",
  "billing_cycle_configuration": {
    "duration": 123,
    "duration_unit": "day"
  },
  "invoicing_cycle_configuration": {
    "duration": 123,
    "duration_unit": "day"
  },
  "billable_metric": {
    "id": "<string>"
  },
  "fixed_price_quantity": 123,
  "plan_phase_order": 123,
  "currency": "<string>",
  "conversion_rate": 123,
  "conversion_rate_config": {
    "conversion_rate_type": "unit",
    "unit_config": {
      "unit_amount": "<string>"
    }
  },
  "item": {
    "id": "<string>",
    "name": "<string>"
  },
  "credit_allocation": {
    "currency": "<string>",
    "allows_rollover": true,
    "custom_expiration": {
      "duration": 123,
      "duration_unit": "day"
    },
    "filters": [
      {
        "field": "price_id",
        "operator": "includes",
        "values": [
          "<string>"
        ]
      }
    ]
  },
  "composite_price_filters": [
    {
      "field": "price_id",
      "operator": "includes",
      "values": [
        "<string>"
      ]
    }
  ],
  "discount": {
    "discount_type": "percentage",
    "percentage_discount": 0.5,
    "applies_to_price_ids": [
      "h74gfhdjvn7ujokd",
      "7hfgtgjnbvc3ujkl"
    ],
    "filters": [
      {
        "field": "price_id",
        "operator": "includes",
        "values": [
          "<string>"
        ]
      }
    ],
    "reason": "<string>"
  },
  "minimum": {
    "minimum_amount": "<string>",
    "filters": [
      {
        "field": "price_id",
        "operator": "includes",
        "values": [
          "<string>"
        ]
      }
    ],
    "applies_to_price_ids": [
      "<string>"
    ]
  },
  "minimum_amount": "<string>",
  "maximum": {
    "maximum_amount": "<string>",
    "filters": [
      {
        "field": "price_id",
        "operator": "includes",
        "values": [
          "<string>"
        ]
      }
    ],
    "applies_to_price_ids": [
      "<string>"
    ]
  },
  "maximum_amount": "<string>",
  "dimensional_price_configuration": {
    "dimensional_price_group_id": "<string>",
    "dimension_values": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

price_id
string
required

Response

OK

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

model_type
enum<string>
required

The pricing model type

Available options:
unit
unit_config
UnitConfig · object
required

Configuration for unit pricing

metadata
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.

id
string
required
name
string
required
external_price_id
string | null
required
replaces_price_id
string | null
required

The price id this price replaces. This price will take the place of the replaced price in plan version migrations.

price_type
enum<string>
required
Available options:
usage_price,
fixed_price,
composite_price
created_at
string<date-time>
required
cadence
enum<string>
required
Available options:
one_time,
monthly,
quarterly,
semi_annual,
annual,
custom
billing_mode
enum<string>
required
Available options:
in_advance,
in_arrear
billing_cycle_configuration
BillingCycleConfiguration · object
required
invoicing_cycle_configuration
BillingCycleConfiguration · object
required
billable_metric
BillableMetricTiny · object
required
fixed_price_quantity
number | null
required
plan_phase_order
integer | null
required
currency
string
required
conversion_rate
number | null
required
conversion_rate_config
UnitConversionRateConfig · object
required
item
ItemSlim · object
required

A minimal representation of an Item containing only the essential identifying information.

credit_allocation
Allocation · object
required
composite_price_filters
PriceFilter · object[] | null
required
discount
PercentageDiscount · object
required
deprecated
minimum
Minimum · object
required
deprecated
minimum_amount
string | null
required
deprecated
maximum
Maximum · object
required
deprecated
maximum_amount
string | null
required
deprecated
dimensional_price_configuration
DimensionalPriceConfiguration · object