createExampleProductAndStoreProductId

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"=>"581", "code"=>"581", "name"=>{"de"=>"Tulip Bacon mild geraeuchert 125g"}, "description"=>{"de"=>"Bacon mild"}, "taxClasses"=>{"DE"=>"STANDARD"}, "published"=>true, "mixins"=>{"productCustomAttributes"=>{"inStock"=>true, "unitPricingMeasure"=>{"value"=>1, "unitCode"=>"H87"}, "unitPricingBaseMeasure"=>{"value"=>1, "unitCode"=>"H87"}, "pricingMeasure"=>{"value"=>1, "unitCode"=>"H87"}, "weightDependant"=>4, "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", "templateAttributes"=>"https://res.cloudinary.com/saas-ag/raw/upload/v1668518407/schemata/andidemo/63739207bd9c09706d74a189-templateAttributes_v1.json"}}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Languagestring
Content-Typestring

RESPONSES

status: Created

{"id":"581","yrn":"urn:yaas:saasag:caasproduct:product:andidemo4;581","link":"https://product-v2.k8s-prod.emporix.io/andidemo4/products/581"}