Logo
Emporix Digital Commerce Platform API Documentation

product templates

Number of APIs: 8


1. Access Token

POST {{api-url}}/{{oauth}}/token



2. Creating a new product template

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

Preview Creates a new product template. The product template defines a set of attributes which are common for all product instances based on the product template.



3. Getting a list of product templates

GET {{api-url}}/product/{{tenant}}/product-templates?q=attributes.type:DATETIME

Preview Returns a list of product templates. The product template defines a set of attributes which are common for all product instances based on the product template.



4. Updating a product template

PUT {{api-url}}/product/{{tenant}}/product-templates/{{product-template-id}}

Preview Updates an existing product template. Every product template update causes creating a new version of product template. Products created in previous versions are not automaticaly updated. In order to see the changes (for example new attributes) on product level, updating the product template version on product level is required. The product template defines a set of attributes which are common for all product instances based on the product template.



5. Deleting a product template

DELETE {{api-url}}/product/{{tenant}}/product-templates/{{product-template-id}}

Preview Deletes a product template. The product template defines a set of attributes which are common for all product instances based on the product template.



6. Creating product with template

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.



7. Retrieving a product's details

GET {{api-url}}/product/{{tenant}}/products/{{productId}}?fields=name,mixins.productTemplateAttributes

Retrieves a specified product and its details.


Required scopes

  • product.product_read_unpublished

    Note: Only required if the product has not been published.



8. Getting a single product template

GET {{api-url}}/product/{{tenant}}/product-templates/{{product-template-id}}?version=1

Preview Gets a single product template. The product template defines a set of attributes which are common for all product instances based on the product template.



ENDPOINTS