Products are offerings that can be sold to customers either as one-time purchases or as recurring subscriptions. These products could include physical items, digital goods, or services that are delivered over a period of time. Chargebee's API allows developers to interact with and manipulate product data, enabling businesses to seamlessly integrate their product offerings into their subscription management workflows.
{
"created_at": 1678784632,
"deleted": false,
"description": "Tshirt for men",
"external_name": "HRX-TSHIRT",
"has_variant": false,
"id": "01GVFNS59M840MZFWPY188H2A1",
"metadata": {
"brand": "HRX"
},
"name": "HRX TSHIRT",
"object": "product",
"resource_version": 1678784632143,
"shippable": true,
"status": "active",
"updated_at": 1678784632
}
product_id
.The following table will help you to understand the status of the mapped item and item_price after passing product status value during product updation.
Product Status(Input parameter) | Item and Item Price Status |
active | active |
inactive | archived |
true
. Deletion of a product is not allowed if there are active
or archived
variants under the product or if there are items mapped to the product. Once deleted, the name
of the product can be reused.active
or inactive
. Use include_deleted
parameter to include deleted products with active
and inactive
products.