Get & use JOOR traits
Retrieve and identify traits to use for product and SKU data
What are Traits?
At JOOR, a trait is an attribute of a product or an SKU. A product can have none or many traits. However, SKUs are required to have at least two traits, sizes and colour, which also defines an SKU.
JOOR has defined a list of traits currently supported by the JOOR platform; however, this list could change at any time. For example, we might remove a trait if we find that clients do not use it or add a new trait if there is a need for a new product or an SKU characteristic.
How to get and use Traits
To get the most recent list of traits use the GET /traits endpoint. If JOOR decides to remove or add a new trait the response that you will see might look slightly different from the below sample. However, the structure will not change.
Each trait has:
type
- indicates whether you can add the trait at the product level or SKU level. All product traits can be used in product and SKU requests but SKU traits can only be used in an SKU request. Currently, there are only two SKU level traits SIZE and COLORid
- trait IDs are used in the product and SKU requestname
- trait names like SIZE or MATERIALS
{
"data": [
{
"id": "UHJvZHVjdFRyYWl0OkNPTlRBSU5TRlVS",
"name": "Contains Fur",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0OkNPVU5UUllPRk9SSUdJTg==",
"name": "Country of Origin",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0OkRJVklTSU9O",
"name": "Division",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0OkZBQk5BTUU=",
"name": "Fabrication Name",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0OkhFRUxIRUlHSFQ=",
"name": "Heel Height",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0Ok1BVA==",
"name": "Materials",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0Ok1FQVNVUkVNRU5UUw==",
"name": "Measurements",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0Ok1PREVMSEVJR0hU",
"name": "Model Height",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0OlNJTE5BTUU=",
"name": "Silhouette Name",
"type": "product"
},
{
"id": "UHJvZHVjdFRyYWl0OlNSQ01BVEVSSUFMUw==",
"name": "Source of Materials",
"type": "product"
},
{
"id": "U0tVVHJhaXQ6U3R5bGVDb2xvcg==",
"name": "Color",
"type": "sku"
},
{
"id": "U0tVVHJhaXQ6U2l6ZQ==",
"name": "Size",
"type": "sku"
}
],
"errors": []
}
Updated over 1 year ago