createExampleProductAndStoreProductId Copy
POST {{api_url}}/product/{{tenant}}/products
Create new product.
Accepted scopes:
hybris.product_create
- mandatoryhybris.product_publish
- required if product is created as published (by providing published flag true )
Parameters:
tenant:
Request Body
{"id"=>"{{product_id_1}}", "code"=>"{{product_id_1}}", "name"=>{"de"=>"T-Shirt any size"}, "description"=>{"de"=>"A T-Shirt that fits anyone. Really."}, "published"=>true, "taxClasses"=>{"DE"=>"STANDARD"}, "mixins"=>{"productCustomAttributes"=>{"inStock"=>true, "unitPricingMeasure"=>{"value"=>1, "unitCode"=>"H87"}, "unitPricingBaseMeasure"=>{"value"=>1, "unitCode"=>"H87"}, "pricingMeasure"=>{"value"=>1, "unitCode"=>"H87"}, "weightDependant"=>false, "taxClass"=>"HALF", "pricingMeasurePrice"=>1.75, "defaultOrderQuantity"=>1, "minOrderQuantity"=>1, "maxOrderQuantity"=>5000}}, "metadata"=>{"mixins"=>{"productCustomAttributes"=>"https://res.cloudinary.com/saas-ag/raw/upload/v1560527845/schemata/CAAS/productCustomAttributesMixIn-v38.json"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Language | string | ||
Content-Type | string |