Category
Get a category by Id.
Category
Get a category by Id.
Returns a category.
GET
/
categories
/
{categoryId}
curl --request GET \
--url https://api.aasaan.shop/api/v1/stores/categories/{categoryId} \
--header 'x-api-key: <api-key>'
{
"id": "623d3455ec3c4b3548eb4a322",
"name": "Shampoo",
"slug": "shampoo",
"description": "Hair categories",
"hide": false,
"displayOrder": 0,
"parentCategoryId": "6124bc492f3660f743776404",
"image": {
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
},
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z"
}
Authorizations
Path Parameters
Category Id
Response
200
application/json
Returns a category.
The response is of type object
.
curl --request GET \
--url https://api.aasaan.shop/api/v1/stores/categories/{categoryId} \
--header 'x-api-key: <api-key>'
{
"id": "623d3455ec3c4b3548eb4a322",
"name": "Shampoo",
"slug": "shampoo",
"description": "Hair categories",
"hide": false,
"displayOrder": 0,
"parentCategoryId": "6124bc492f3660f743776404",
"image": {
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
},
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z"
}