GET/POST
/api/v1/customer/manufacturer/swag-shop/categories
This API method will return a list of swag shop categories, wrapped in their parent groups for organizational purposes.
Request Parameters
Parameter | Value / Type | Required |
|---|---|---|
manufacturer_id | STRING | true |
Sample Response
{
"status": true,
"items": [
{
"id": "LZWBJx0PmYkEwjGdr2vO",
"name": "Group A",
"created_at": "2019-02-15 15:12:20"
},
{
"id": "nK8oWGj0zxqELP1A53ak",
"name": "Group B",
"created_at": "2019-02-22 19:58:17",
"categories": [
{
"id": "LZWBJx0PmYkEwjGdr2vO",
"group_id": "nK8oWGj0zxqELP1A53ak",
"name": "Category A",
"created_at": "2019-02-15 15:12:20",
"items_count": 1
}
]
}
]
}{
"status": false,
"errorCode": "NO_ITEMS",
"message": "No items exist under your account"
}