Get product type
GET
https://app.ecwid.com/api/v3/{storeId}/classes/{classId}
Required access scopes
Your app must have the following access scopes to make this request: read_catalog
Path params
All path params are required.
storeId
number
Ecwid store ID.
classId
number
Internal product type ID.
Headers
The Authorization header is required.
Authorization
Bearer secret_ab***cd
Access token of the application.
Response JSON
A JSON object with the following fields:
id
number
Internal unique ID of the product type.
By default, all products get the "General" type which ID is 0
.
name
string
Product type name. Empty for the "General" type.
googleTaxonomy
string
Google taxonomy associated with the type.
attributes
Product attributes assigned to this product type.
attributes
id
number
Internal unique ID of the product attribute.
name
string
Attribute title visible. Product attribute with an empty name field will also be returned
nameTranslated
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
translations
Object with text field translations in the "lang": "text"
format, where the "lang"
is an ISO 639-1 language code. For example:
Translations are available for all active store languages. Only the default language translations are returned if no other translations are provided for the field. Find active store languages with GET
/profile
request > languages
> enabledLanguages
.
Last updated
Was this helpful?