Logo
Emporix Digital Commerce Platform API Documentation

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.

 

Body PARAM

Key Datatype Required Description 
version
number Indicates a version of product template. If the parameter is not provided then latest version of product template is returned.



HEADERS

Key Datatype Required Description 
Accept-Language
string The Accept-Language request HTTP header defines which languages the client is able to understand, and which locale variant is preferred. If empty then default system language is returned. It can be a priority list working as a fallback mechanism.
Accept
string




RESPONSES

status OK

{ "id": "31065d5b-b62e-4ceb-ba1f-ef931be7c3bd", "name": { "en": "T-shirt" }, "attributes": [ { "key": "color", "name": { "en": "Color", "pl": "Kolor" }, "type": "TEXT", "metadata": { "mandatory": false, "defaultValue": null }, "values": [ { "key": "GREEN" }, { "key": "RED" } ] } ], "metadata": { "createdAt": "2022-03-31T09:52:15.423Z", "modifiedAt": "2022-03-31T09:52:15.423Z", "version": 1 } }



Curl
curl -X GET 'api-url/product/api-url/product-templates/api-url?version=1?version=1' -H 'Accept-Language: en' -H 'Accept: application/json'

ENDPOINTS