The objective of this use case is to catalog the active variants of a product along with the barcodes that uniquely identify each SKU (Stock Keeping Unit). Each SKU represents a specific combination of dimensions, such as size and color, which describe a unique version of a product. For example, if a product, MAGLIA123, has size and color as dimensions, and uses "EU Sizes" and "Pastel Colors" as dimension groups, an SKU could be MAGLIA123-XL-RED. Each SKU can be linked to one or more barcodes. However, not every product has every dimension combination, as variants are defined by the supplier's catalog.To achieve this, the process will involve:
1.
Creating the product.
2.
Activating desired variants (dimensions).
3.
Associating barcodes to the SKU for precise identification.
Create the Product Using Insert product, the client creates a product (e.g., MAGLIA123).
2.
Activate Desired Variants For each dimension type (e.g., size, color), the client activates the required variants using Insert active dimensions.Example Call:
3.
Associate Barcodes to the SKU For each SKU generated by the product dimensions, the client associates barcodes using Insert barcode.Example Call:
Error in Barcode Submission If the submitted barcode already exists for another SKU, the API will respond with an error. The client should verify barcode uniqueness before resubmitting.
2.
Inactivation of a Variant If a variant is no longer offered, it should be deactivated by updating the product dimensions API to remove the specified dimension.