improved
API-v4 / Product - 03/17/2021
almost 4 years ago by Thomas Kerr
You can now store an external_id for the product traits of Division, Silhouette, and Fabrication.
- Use UHJvZHVjdFRyYWl0OkRJVklTSU9O for Division
- Use UHJvZHVjdFRyYWl0OkZBQk5BTUU= for Fabrication Name
- Use UHJvZHVjdFRyYWl0OlNJTE5BTUU= for Silhouette Name
Use the GET /traits endpoint to view a full list of available product traits.
[
{
"name": "Product Name",
"external_id": "product_123",
"product_identifier": "p123",
"description": "Product description here",
"order_minimum": 50,
"category_ids": [
"228"
],
"product_trait_values": [
{
"trait_id": "UHJvZHVjdFRyYWl0OkRJVklTSU9O",
"value": "Men's Pants",
"external_id": "555"
},
{
"trait_id": "UHJvZHVjdFRyYWl0OkZBQk5BTUU=",
"value": "Slick Fabrick",
"external_id": "666ABC"
}
]
}
]
{
"data": [
{
"id": "111111",
"name": "Product Name",
"external_id": "product_123",
"product_identifier": "p123",
"description": "Product description here",
"order_minimum": 50,
"categories": [
{
"id": "228",
"name": "Category Name",
"parent_name": "Category Parent Name",
"department": "Department Name"
}
],
"product_trait_values": [
{
"trait": {
"id": "UHJvZHVjdFRyYWl0OkRJVklTSU9O",
"name": "Division"
},
"value": "Men's Pants",
"external_id": "555"
},
{
"trait": {
"id": "UHJvZHVjdFRyYWl0OkZBQk5BTUU=",
"name": "Fabrication Name"
},
"value": "Slick Fabrick",
"external_id": "666ABC"
}
]
}
],
"errors": []
}