createExampleProductAndStoreProductId Copy

POST {{api_url}}/product/{{tenant}}/products

Create new product.

Accepted scopes:

  • hybris.product_create - mandatory
  • hybris.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

KeyDatatypeRequiredDescription
Authorizationstring
Content-Languagestring
Content-Typestring