General Usage Product API
Overview Model API Reference Docs

Product Create Workflow

This workflow is used when THG is handling the website and fulfilment for products. You are able to supply the content for the product page on the website and simultaneously create the physical products that will appear on that product page.



POST /v1/product

Creation of a product and its variants.
                  {"name": "summer dress", "modelName": "dress", "modelVersion": "0.1", "attributes": {}, "variants": [{"name": "purple summer dress", "modelName": "coloured_dress", "modelVersion": "0.1", "attributes": {"title": "Purple Summer dress"}, "variants": [{"sku": "30493049304903", "barcode": {"EAN": "93849384398493"}, "prices": {"DE": {"EUR": 30.99, "GBP": 27.99}}, "mass_g": 45, "height_mm": 32, "width_mm": 24, "length_mm": 13, "countryOfOrigin": "GB", "harmonizedSystemCode": "839402943859", "variantType": {"size": "38"}}], "variantType": {"colour": "purple"}}]}