An item price is a price point for an item. It defines the currency, pricing model, price, billing period and other attributes for an item. For example, consider a cloud storage service as an item. Then each of the following defines an item price:
The cloud storage sold at USD 10 per month.
The same service sold at AUD 100 per year.
The service sold at a monthly rate determined by the following stairstep pricing model:
1-10 users for EUR 10
11-25 users for EUR 20
26-50 users for EUR 45
51 and above for EUR 100
The billing period
of an item price (only applies to plan-item prices and addon-item prices), is the period
of the item price in period_unit
s. An item can have only one item price for a given currency and billing period.
The type of an item price corresponds to the type of the item that the item price belongs to. In other words, item prices can be of the following types:
{
"created_at": 1594106928,
"currency_code": "USD",
"external_name": "silver USD",
"free_quantity": 0,
"id": "silver-USD-monthly",
"is_taxable": true,
"item_id": "silver",
"item_type": "plan",
"name": "silver USD monthly",
"object": "item_price",
"period": 1,
"period_unit": "month",
"price": 1000,
"pricing_model": "per_unit",
"resource_version": 1594106928574,
"status": "active",
"updated_at": 1594106928
}A unique display name for the item price in the Chargebee UI. If external_name
is not provided, this is also used in customer-facing pages and documents such as invoices
and hosted pages
.
Description of the item price.
Note:
- testing - desc .The name of the item price used in customer-facing pages and documents. These include invoices
and hosted pages.
If not provided, then name
is used
Note Applicable only for item prices with:
item_type = addon.pricing_model = per_unit.Specifies how to manage charges or credits for the addon item price during a subscription update or estimating a subscription update.
The pricing scheme for this item price. If subscriptions, invoices or differential prices exist for this item price, pricing_model cannot be changed.
The cost of the item price when the pricing model is flat_fee.
When the pricing model is per_unit
, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the minor unit of the currency
.
The price of the item when the pricing_model is flat_fee.
When the pricing model is per_unit
, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when multi-decimal pricing
is enabled.
type is plan: The billing period of the plan in period_units. For example, create a 6 month plan by providing period as 6 and period_unit as month.type is addon: The period of the addon in period_units. For example, create an addon with a 2 month period by providing period as 2 and period_unit as month. The period of an addon is the duration for which its price applies. When attached to a plan, the addon is billed for the billing period of the plan. Learn more.If subscriptions or invoices exist for this item price, period
cannot be changed. The period
is mandatory when the item type
is plan
or addon
The currency code (ISO 4217 format
) for the item price. If subscriptions, invoices or differential prices
exist for this item price, currency_code
cannot be changed.
The trial period of the plan in trial_period_unit
s. You can also set trial periods for addons
; contact Support
to enable that feature.
Applicable only when End-of-trial Action
has been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the item.type
is plan
and a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the subscription-level
.
The default number of billing cycles a subscription to the plan must run. Can be overridden for a subscription.
Addons can also have billing cycles. Also, for addons, you can override this while attaching it to a plan. However, if you provide the value while applying the addon to a subscription, then that value takes still higher precedence.
If subscriptions, invoices or differential prices
exist for this item price, billing_cycles
cannot be changed.
Note:
If you want to change the billing_cycles
to unlimited renewals, enter an empty string. This value can only be updated if the item_price
is not attached to a subscription or invoice. If no billing_cycles
value is entered, then by default the value will be set as unlimited billing_cycles
renewals.
Free quantity the subscriptions of this item_price will have. Only the quantity more than this will be charged for the subscription.
Note:
free_quantity
is not supported for the Usage-Based Billing
(UBB). All included or free quantities should be configured exclusively through entitlements
.
The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when multi-decimal pricing is enabled.
A customer-facing note added to all invoices associated with this API resource. This note becomes one among all the notes displayed on the invoice PDF.
Specifies whether taxes apply to this item price. This value is set and returned even if Taxes have been disabled in Chargebee. However, the value is effective only while Taxes are enabled.
A collection of key-value pairs that provides extra information about the item price. Learn more .
Whether the item price's description should be shown on invoice PDFs. If this Boolean is changed, only invoices generated (or regenerated ) after the change are affected; past invoices are not.
Whether the item price's description should be shown on quote PDFs. If this Boolean is changed, only quotes created after the change are affected; past quotes are not.
The unique ID of the
business entity
of this item_family.
This is applicable only when multiple business entities have been created for the site. The value of this attribute indicates that the resource is specific to the given business entity.
List of quantity-based pricing tiers for the item price. Applicable only for tiered
, volume
, and stairstep
pricing_models
.
The tax details for the item price. Includes those details relevant for third-party integrations.
List of vendor specific tax related information.
Accounting integration details. The values are typically dependent on the accounting integration used.
This API creates an item price (a price point) for an item.
A unique display name for the item price in the Chargebee UI. If external_name
is not provided, this is also used in customer-facing pages and documents such as invoices
and hosted pages
.
Description of the item price.
Note:
- testing - desc .A customer-facing note added to all invoices associated with this API resource. This note becomes one among all the notes displayed on the invoice PDF.
Note Applicable only for item prices with:
item_type = addon.pricing_model = per_unit.Specifies how to manage charges or credits for the addon item price during a subscription update or estimating a subscription update.
The name of the item price used in customer-facing pages and documents. These include invoices
and hosted pages.
If not provided, then name
is used.
The currency code (ISO 4217 format ) for the item price. Is required when multiple currencies have been enabled.
An immutable unique identifier of a price variant.
Specifies whether taxes apply to this item price. This value is set and returned even if Taxes have been disabled in Chargebee. However, the value is effective only while Taxes are enabled.
Free quantity the subscriptions of this item_price will have. Only the quantity more than this will be charged for the subscription.
Note:
free_quantity
is not supported for the Usage-Based Billing
(UBB). All included or free quantities should be configured exclusively through entitlements
.
The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when multi-decimal pricing is enabled.
A collection of key-value pairs that provides extra information about the item price.
Note: There's a character limit of 65,535.
Whether the item price's description should be shown on invoice PDFs. If this Boolean is changed, only invoices generated (or regenerated ) after the change are affected; past invoices are not.
Whether the item price's description should be shown on quote PDFs. If this Boolean is changed, only quotes created after the change are affected; past quotes are not.
The unique ID of the business entity
for this item_price.
This is applicable only when multiple business entities have been created for the site. When provided, the operation will read or write data associated with the specified business entity. If not provided, the resource will be created at the site level, and the business_entity_id
will not be included in the API response.
Note An alternative way of passing this parameter is by means of a custom HTTP header.
.
The pricing scheme for this item price. If subscriptions, invoices or differential prices exist for this item price, pricing_model cannot be changed.
The cost of the item price when the pricing model is flat_fee.
When the pricing model is per_unit
, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the minor unit of the currency
.
The price of the item when the pricing_model is flat_fee.
When the pricing model is per_unit
, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when multi-decimal pricing
is enabled.
The unit of time for period.
If subscriptions or invoices exist for this item price, period_unit
cannot be changed. The period_unit
is mandatory when the item type
is plan
or addon
.
Important:
The period + period_unit pair must match a configured billing frequency on your site. The API does not create new frequencies. To use a new frequency (for example, 3 months or 2 weeks), add it in the site settings first. Requests with non-configured combinations fail validation.
period=1, period_unit=month (available by default)period=3, period_unit=month (enable 3-month frequency in settings)period=1, period_unit=week (available by default)
See how billing periods apply
.type is plan: The billing period of the plan in period_units. For example, create a 6 month plan by providing period as 6 and period_unit as month.type is addon: The period of the addon in period_units. For example, create an addon with a 2 month period by providing period as 2 and period_unit as month. The period of an addon is the duration for which its price applies. When attached to a plan, the addon is billed for the billing period of the plan. Learn more.If subscriptions or invoices exist for this item price, period
cannot be changed. The period
is mandatory when the item type
is plan
or addon.
Important:
The period value, together with period_unit, must equal one of your site's configured billing frequencies. If the combination does not exist, the request fails with an invalid billing period configuration error. Configure the frequency in site settings and retry. See Addons and billing cycle.
The trial period of the plan in trial_period_unit
s. You can also set trial periods for addons
; contact Support
to enable that feature.
The default number of billing cycles a subscription to the plan must run. Can be overridden for a subscription.
Addons can also have billing cycles. Also, for addons, you can override this while attaching it to a plan. However, if you provide the value while applying the addon to a subscription, then that value takes still higher precedence.
If subscriptions, invoices or differential prices
exist for this item price, billing_cycles
cannot be changed.
Note:
If you want to change the billing_cycles
to unlimited renewals, enter an empty string. This value can only be updated if the item_price
is not attached to a subscription or invoice. If no billing_cycles
value is entered, then by default the value will be set as unlimited billing_cycles
renewals.
Applicable only when End-of-trial Action
has been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the item.type
is plan
and a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the subscription-level
.
This API retrieves a specific item price using the id.
Updates an item price with the changes specified. Unspecified item price attributes are not modified.
A unique display name for the item price in the Chargebee UI. If external_name
is not provided, this is also used in customer-facing pages and documents such as invoices
and hosted pages
.
Description of the item price.
Note:
- testing - desc .Note Applicable only for item prices with:
item_type = addon.pricing_model = per_unit.Specifies how to manage charges or credits for the addon item price during a subscription update or estimating a subscription update.
An immutable unique identifier of a price variant.
The name of the item price used in customer-facing pages and documents. These include invoices
and hosted pages.
If not provided, then name
is used.
The currency code (ISO 4217 format
) for the item price. If subscriptions, invoices or differential prices
exist for this item price, currency_code
cannot be changed.
A customer-facing note added to all invoices associated with this API resource. This note becomes one among all the notes displayed on the invoice PDF.
Specifies whether taxes apply to this item price. This value is set and returned even if Taxes have been disabled in Chargebee. However, the value is effective only while Taxes are enabled.
Free quantity the subscriptions of this item_price will have. Only the quantity more than this will be charged for the subscription.
Note:
free_quantity
is not supported for the Usage-Based Billing
(UBB). All included or free quantities should be configured exclusively through entitlements
.
The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when multi-decimal pricing is enabled.
A collection of key-value pairs that provides extra information about the item price.
Note: There's a character limit of 65,535.
The pricing scheme for this item price. If subscriptions, invoices or differential prices exist for this item price, pricing_model cannot be changed.
The cost of the item price when the pricing model is flat_fee.
When the pricing model is per_unit
, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the minor unit of the currency
.
The price of the item when the pricing_model is flat_fee.
When the pricing model is per_unit
, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when multi-decimal pricing
is enabled.
The unit of time for period.
If subscriptions or invoices exist for this item price, period_unit
cannot be changed. The period_unit
is mandatory when the item type
is plan
or addon
.
Important:
The period + period_unit pair must match a configured billing frequency on your site. The API does not create new frequencies. To use a new frequency (for example, 3 months or 2 weeks), add it in the site settings first. Requests with non-configured combinations fail validation.
period=1, period_unit=month (available by default)period=3, period_unit=month (enable 3-month frequency in settings)period=1, period_unit=week (available by default)
See how billing periods apply
.type is plan: The billing period of the plan in period_units. For example, create a 6 month plan by providing period as 6 and period_unit as month.type is addon: The period of the addon in period_units. For example, create an addon with a 2 month period by providing period as 2 and period_unit as month. The period of an addon is the duration for which its price applies. When attached to a plan, the addon is billed for the billing period of the plan. Learn more.If subscriptions or invoices exist for this item price, period
cannot be changed. The period
is mandatory when the item type
is plan
or addon.
Important:
The period value, together with period_unit, must equal one of your site's configured billing frequencies. If the combination does not exist, the request fails with an invalid billing period configuration error. Configure the frequency in site settings and retry. See Addons and billing cycle.
The trial period of the plan in trial_period_unit
s. You can also set trial periods for addons
; contact Support
to enable that feature.
The default number of billing cycles a subscription to the plan must run. Can be overridden for a subscription.
Addons can also have billing cycles. Also, for addons, you can override this while attaching it to a plan. However, if you provide the value while applying the addon to a subscription, then that value takes still higher precedence.
If subscriptions, invoices or differential prices
exist for this item price, billing_cycles
cannot be changed.
Note:
If you want to change the billing_cycles
to unlimited renewals, enter an empty string. This value can only be updated if the item_price
is not attached to a subscription or invoice. If no billing_cycles
value is entered, then by default the value will be set as unlimited billing_cycles
renewals.
Applicable only when End-of-trial Action
has been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the item.type
is plan
and a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the subscription-level
.
Whether the item price's description should be shown on invoice PDFs. If this Boolean is changed, only invoices generated (or regenerated ) after the change are affected; past invoices are not.
Whether the item price's description should be shown on quote PDFs. If this Boolean is changed, only quotes created after the change are affected; past quotes are not.
Returns a list of item prices satisfying all the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order.
Filter item prices based on their id . Supported operators : is, is_not, starts_with, in, not_in
Example → id[is] = "basic_USD"
Filter item prices based on their price_variant_id
.
Supported operators :
is, is_not, starts_with, in, not_in
Example → price_variant_id[is] = "tamilNadu-India"
The unique ID of the
business entity
of this item_price.
Learn more
about all the scenarios before using this filter.
Supported operators : is, is_present
Example → business_entity_id[is_present] = "true"
Default value is true . To exclude site-level resources in specific cases, set this parameter to false.
Deletes an item price, marking its status as deleted. If it is part of a subscription or invoice, the item price status is marked archived instead. Once deleted, the id and name of the item price can be reused to create a new item price.
Returns the set of all applicable addon-items
for a specific plan-item price
. This set consists of all addon-items whose item prices can be applied to a subscription having the plan-item price in it. When determining this set, Chargebee considers the item_applicability
and applicable_items
defined for the parent item of the plan-item price.
Returns the set of all applicable addon-item prices for a specific plan-item price. This set consists of all the addon-item prices that can be applied to a subscription having the plan-item price. When determining this set, Chargebee considers the following:
item_applicability and applicable_items defined for the parent item of the plan-item priceNote
If an addon-item price has differential pricing defined against the parent item of the plan-item price, then the pricing information in the addon-item price object returned, reflects the differential pricing.