oAuth token with mandatory Bearer before it. Example: Bearer e***s0, where e***s0 should be replaced with your oAuth token.
Response
A JSON array of objects of type 'ProductClass' with the following fields:
ProductClass
Field
Type
Description
id
number
Product type (class) internal unique ID. Class with ID 0 is the default 'General' type assigned to all products by default
name
string
Product type name. Empty for the "General" type
googleTaxonomy
string
Google taxonomy associated with this type
attributes
Array<Attribute>
Product type attributes
Attribute
Field
Type
Description
id
number
Attribute internal unique ID
name
string
Attribute title. Product attribute with an empty name field will also be returned
nameTranslated
<Translations>
Available translations for product attribute name
type
string
Attribute type. There are user-defined attributes, general attributes and special 'price per unit' attributes. The 'type' field contains one of the following: CUSTOM, UPC, BRAND, GENDER, AGE_GROUP, COLOR, SIZE, PRICE_PER_UNIT, UNITS_IN_PRODUCT. Attributes of type PRICE_PER_UNIT and UNITS_IN_PRODUCT are only returned if price per unit feature is enabled.
show
string
Defines if an attribute is visible on a product page. Supported values: NOTSHOW, DESCR, PRICE. The value PRICE = DESCR. For public tokens, NOTSHOW attributes are not returned
Translations
Field
Type
Description
<ISO_LANG_CODE>
string
Translations for each available language. If no other translations are provided, the default language translations is returned. See available languages in store language settings
Errors
In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description
HTTP codes
HTTP Status
Meaning
400
Request parameters are malformed
415
Unsupported content-type: expected application/json or text/json
500
Cannot retrieve the product type info because of an error on the server