The significant changes made with these new endpoints are as follows:
{
"category_id": "62198631",
"product_category_attribute_fields":{
"name": "Product Name",
"short_description": "This is the description for Product,
"description": "New API test 1 product",
"brand": "Fred Perry",
"warranty_type": "Local (Singapore) manufacturer warranty",
"made_in": "CHINA",
"delivery_option_economy": 1,
"delivery_option_sof": "true"
},
"default_images":["https://fb-es.mrvcdn.com/kf/Ed72d9145a56c45668e374567eb5e283df.jpg"],
"sku_data":[
{
"quantity": "2",
"sku_images": ["https://fb-es.mrvcdn.com/kf/Ed72d9145a56c45668e374567eb5e283df.jpg"],
"status": "ACTIVE",
"seller_sku": "Newproduct123_{{timestamp}}",
"package_width": "20",
"package_height": "20",
"package_length": "30",
"package_weight": "1",
"sale_price": "20.95",
"price": "22.95",
"sku_category_attribute_fields":{
"color_family": "red",
"size":"42",
"ean_code": "{{randomEan1}}"
}
}
]
}
Imagine you have a product that already exists and is associated with three Stock Keeping Units (SKUs) - let's call them sku1, sku2, and sku3. Now, if you want to introduce a new SKU, say sku4, to this existing product, you would utilize the "createAndUpdate" endpoint.
Here's the step-by-step breakdown:
So, by using the "createAndUpdate" endpoint with the new SKU information, you effectively append sku4 to the existing product configuration, resulting in a product that now includes all four SKUs: sku1, sku2, sku3, and the newly added sku4
Updating an existing SKU using the "/createUpdateProduct" endpoint:
In summary, by making a call to the "/createUpdateProduct" endpoint with the same sellerSku and the updated SKU information, you effectively modify the existing SKU1 in the product configuration. The resulting product now includes the updated SKU1 along with the other existing SKUs, sku2 and sku3.