Items Management
General Summary
The Items Service is responsible to handle the Item (aka. product, SKU or material) entity insertion, deletion, maintainability (updating). An Item entity represents an available product for a specific Zone. It is also the root entity that allows to build the Product Assortment, Inventory and Prices entities relation flow, as well the integration with the information provided by the Content Management System (CMS) tool.
Item Insertion and Update
Item insertion and update are done using the same relay endpoint and the HTTP method PUT.
Required Fields
A set of the required fields to have a valid single item are described below:
There are also fields that can only be updated by relay and others by the CMS tools, following below a set of the most important:
isNarcotic: Identification if the item is of the narcotic type or not.
isNarcotic = true (Narcotic product);
isNarcotic = false (Non-Narcotic product);
isNarcotic = null (Not classified yet);
isAlcoholic: Identification if the item is of the alcoholic type or not.
isAlcoholic = true (Narcotic product);
isAlcoholic = false (Non-Alcoholic product);
isAlcoholic = null (Not classified yet);
Note: The fields not required, if any of them are omitted, Relay will record it as null value
Load Limits
Item Deletion
To perform a DELETE operation the field skus has to be send as a URL path parameter to the items relay endpoint.