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.
Types of item prices
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:
- Plan-item prices
- Addon-item prices
- Charge-item prices
Sample Item priceJSON
Item prices attributes
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
.
The status of the item price.
The item price can be used in subscriptions.
The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price.
Indicates that the item price has been deleted. The id
and name
can be reused.
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.
Use the site-wide proration setting .
Prorate the charges or credits for the rest of the current term.
Charge the full price of the addon item price or give the full credit. Don't apply any proration.
The pricing scheme for this item price. If subscriptions, invoices or differential prices exist for this item price, pricing_model cannot be changed.
A fixed price that is not quantity-based.
A fixed price per unit quantity.
There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.
The per unit price is based on the tier that the total quantity falls in.
A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.
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.
- When the item
typeisplan: The billing period of the plan inperiod_units. For example, create a 6 month plan by providingperiodas 6 andperiod_unitas month. - When item
typeisaddon: The period of the addon inperiod_units. For example, create an addon with a 2 monthperiodby providing period as 2 andperiod_unitasmonth. The period of an addon is the duration for which itspriceapplies. 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 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
A period of 24 hours.
A period of 7 days.
A period of 1 calendar month.
A period of 1 calendar year.
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 unit of time for trial_period
.
A period of 24 hours.
A period of 1 calendar month.
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 action configured for the site at the time when the trial ends, takes effect.
The subscription activates and charges are raised for non-metered items.
The subscription cancels.
Defines the shipping frequency. Example: to bill customer every 2 weeks, provide "2" here.
Defines the shipping frequency in association with shipping period.
A period of 24 hours.
A period of 7 days.
A period of 1 calendar month.
A period of 1 calendar year.
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 plan item_price will have. Only the quantity exceeding this value will be charged in the subscription.
Note:
free_quantityis currently supported only for planitem_price.free_quantityis 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.
The subscription channel this object originated from and is maintained in.
The object was created (and is maintained) for the web channel directly in Chargebee via API or UI.
The object data is synchronized with data from in-app subscription(s) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed.
The object data is synchronized with data from in-app subscription(s) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.
In-App Subscriptions is currently in early access. Contact eap@chargebee.com for more information.
Version number of this resource. The resource_version
is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
Timestamp indicating when this item price was last updated
Specifies the frequency at which the usage counter needs to be reset.
Note:
Changes to the usage_accumulation_reset_frequency
parameter for item_price
is not allowed if the item
is already linked to a subscription.
Accumulates usage without ever resetting it.
Accumulates usage until the subscription's billing frequency ends.
Timestamp indicating when this item price was archived.
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 .
Type of item.
An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription.
A recurring component that can be added to a subscription in addition to its plan.
A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer directly without being applied to a subscription.
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.