POST /items/{item-id}
Updates an item with the changes specified. Unspecified item parameters are not modified.
Servers
- {protocol}://{site}.{environment}:{port}/api/v2
- {protocol}://{site}-test.{environment}:{port}/api/v2
Path parameters
Name | Type | Required | Description |
---|---|---|---|
item-id |
String | Yes |
Request headers
Name | Type | Required | Description |
---|---|---|---|
chargebee-request-origin-device |
String | No |
The device from which the customer has made the request |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/x-www-form-urlencoded" |
chargebee-event-webhook |
String | No |
skip only webhooks Possible values:
|
chargebee-business-entity-id |
String | No |
If the site has multiple business entities, you can use this custom HTTP header to specify the business entity for which Chargebee should perform the operation. |
chargebee-event-actions |
String | No |
skip all actions to be done on the events Possible values:
|
chargebee-request-origin-user |
String | No |
The email address of your customer/user. Use this when the email address has only ASCII characters. |
chargebee-request-origin-ip |
String | No |
The IP address of the customer where the request originated |
chargebee-request-origin-user-encoded |
String | No |
The Base64-encoded email address of your customer/user. Use this if the email address has UTF-8 characters. When this header is provided, the header |
chargebee-event-email |
String | No |
skip only emails Possible values:
|
Request body fields
Name | Type | Required | Description |
---|---|---|---|
applicable_items[] |
Array | No |
The list of ids of addon-items and charge-items that can be applied to the plan-item. This parameter can be provided only for plan-items and that too when item_applicability is restricted. Other details of attaching items can be specified using the Create or Update an attached item API. |
included_in_mrr |
Boolean | No |
The item is included in MRR calculations for your site. This attribute is only applicable for items of |
description |
String | No |
Description of the item. This is visible only in Chargebee and not to customers.
|
metadata |
Object | No |
A collection of key-value pairs that provides extra information about the item. [Learn more](advanced-features#metadata). |
status |
String | No |
The status of the item. * active - The item can be used to create new item prices. * deleted - Indicates that the item has been deleted. The Possible values:
|
bundle_items_to_update |
Object | No |
Parameters for bundle_items_to_update |
bundle_items_to_update.quantity[] |
Array | No |
Quantity of the item(plan, addon, and charge) associated with the bundle. |
bundle_items_to_update.item_type[] |
Array | No | |
bundle_items_to_update.price_allocation[] |
Array | No |
Price allocation of the item(plan, addon, and charge) associated with the bundle. |
bundle_items_to_update.item_id[] |
Array | No |
|
enabled_for_checkout |
Boolean | No |
Allow the plan to subscribed to via Checkout. Applies only for plan-items. Default value: true |
unit |
String | No |
The unit of measure for a quantity-based item. This is displayed on the Chargebee UI and on customer facing documents/pages. The latter includes hosted pages, invoices and quotes. Examples follow:
|
is_percentage_pricing |
Boolean | No |
Default value: false |
bundle_items_to_remove |
Object | No |
Parameters for bundle_items_to_remove |
bundle_items_to_remove.item_type[] |
Array | No | |
bundle_items_to_remove.item_id[] |
Array | No |
|
name |
String | No |
The display name for the item. Must be unique. This is visible only in Chargebee and not to customers. |
redirect_url |
String | No |
If |
bundle_items_to_add |
Object | No |
Parameters for `bundle_items_to_add` |
bundle_items_to_add.quantity[] |
Array | No |
Quantity of the item(plan, addon, and charge) associated with the bundle. |
bundle_items_to_add.item_type[] |
Array | No | |
bundle_items_to_add.price_allocation[] |
Array | No |
Price allocation of the item(plan, addon, and charge) associated with the bundle. |
bundle_items_to_add.item_id[] |
Array | No |
|
external_name |
String | No |
A unique display name for the item. |
bundle_configuration |
Object | No |
Parameters of `bundle_configuration` |
bundle_configuration.type |
String | No |
Type of the bundle * fixed - Fixed Possible values:
|
is_shippable |
Boolean | No |
Indicates that the item is a physical product. If Orders are enabled in Chargebee, subscriptions created for this item will have orders associated with them. Default value: false |
item_applicability |
String | No |
Indicates which addon-items and charge-items can be applied to the item. Only possible for plan-items. Other details of attaching items such as whether to attach as a mandatory item or to attach on a certain event, can be specified using the Create or Update an attached item API. * all - all addon-items and charge-items are applicable to this plan-item. * restricted - only the addon-items or charge-items provided in Possible values:
Default value: "all" |
gift_claim_redirect_url |
String | No |
The URL to redirect to once the gift has been claimed by the receiver. |
item_family_id |
String | No |
The |
enabled_in_portal |
Boolean | No |
Allow customers to change their subscription to this plan via the Self-Serve Portal. Applies only for plan-items. This requires the Portal configuration to allow changing subscriptions. Default value: true |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.