Create individual component items
You can create individual component items such as GIFT_BASKET,
MERLOT, SWISS, CHEDDAR. To ensure that the
application identifies the items when they are associated to the bundle, each component item must be
created separately.
The Upsert Item API supports batch creation of items. So, create all four items in a single API call:
POST https://api.watsoncommerce.ibm.com/catalog/{tenantId}/v1/items
{
"items": [
{"itemId": "GIFT_BASKET","unitOfMeasure": "EACH","itemGroupCode": "PROD"},
{"itemId": "MERLOT","unitOfMeasure": "EACH","itemGroupCode": "PROD"},
{"itemId": "SWISS","unitOfMeasure": "EACH","itemGroupCode": "PROD"},
{"itemId": "CHEDDAR","unitOfMeasure": "EACH","itemGroupCode": "PROD"}
]
}
Note: For the simplicity of example, bare minimum information is provided for an item creation. You
can include additional item attributes such as description in the API request.