api/v1/customer/swag-shop/categories

GET/POST

/api/v1/customer/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

store_id

STRING

true

Sample Response

{
  "status": true,
  "items": [
    {
      "id": "LZWBJx0PmYkEwjGdr2vO",
      "name": "Vape \/ Juice",
      "created_at": "2018-09-10 11:36:07",
      "categories": [
        {
          "id": "bZ6xBGP2mdPm3R8VX17L",
          "group_id": "LZWBJx0PmYkEwjGdr2vO",
          "name": "eJuice",
          "created_at": "2018-08-27 23:40:11",
          "items_count": 1
        }
      ]
    },
    {
      "id": "bZ6xBGP2mdPm3R8VX17L",
      "name": "Store Swag",
      "created_at": "2018-09-10 11:52:27",
      "categories": [
        {
          "id": "nK8oWGj0zxqELP1A53ak",
          "group_id": "bZ6xBGP2mdPm3R8VX17L",
          "name": "Gift Cards",
          "created_at": "2018-08-27 23:40:23",
          "items_count": 1
        }
      ]
    }
  ]
}
{
  "status": false,
  "errorCode": "NO_ITEMS",
  "message": "No items exist under your account"
}