API Example
Category Properties
| id |
{ "id" : 989034056 }
The unique ShopWired ID for the product |
| title |
{ "title" : This is the product name }
The name/title entered for the product. |
| description |
{ "description" : This product is available }
The description for the product. |
GET /v1/categories/ID
Retrieves a single category.
| embed | parents |
| fields | Comma separated list of properties to include |
GET /v1/categories/1?embed=parents
HTTP/1.1 200 OK
{
"id": 1,
"title": "...",
"description": "...",
"url": "http://www.domain.com/slug",
"active": true,
"metaTitle": "...",
"metaKeywords": "...",
"metaDescription": "...",
"image": {
"url": "https://static.ecommercedns.uk/images/456e70cea611e36883b4dd3e02bb3a70.jpg?1"
},
"parents": [
{
"id": 2,
"title": "...",
"description": "...",
"url": "http://www.domain.com/slug",
"active": true,
"metaTitle": "...",
"metaKeywords": "...",
"metaDescription": "..."
}
]
}