Logo
Emporix Digital Commerce Platform API Documentation

Creating a bundle product

POST {{api-url}}/product/{{tenant}}/products/

Creates a new product.


Required scopes

  • product.product_create
  • product.product_publish

    Note: Only required if you want to publish the product when creating it.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Language
string
Content-Type
string




RESPONSES

status Created

{ "id": "61f9289906dc0733d29455db", "yrn": "urn:yaas:saasag:caasproduct:product:saastest2;61f9289906dc0733d29455db", "link": "https://product.k8s-stage.emporix.io/saastest2/products/61f9289906dc0733d29455db" }



Curl
curl -X POST 'api-url/product/tenant/products/' -H 'Content-Language: en' -H 'Content-Type: application/json' -d '{"name":"Smartphone Zony Yperia X2 with headset","code":"BUNDLE001","description":"The world's best camera and camcorder in a waterproof smartphone with high quality headset.","published":true,"taxClassess":{"DE":"STANDARD"},"bundledProducts":[{"id":"53a358901b2e9dd2718b5c12","amount":1},{"id":"53a358901b2e9dd2718b5c13","amount":1}],"productType":"BUNDLE","template":{"id":"634cea2740033d7c2e7b03a8","version":1}}'

ENDPOINTS