Skip to Content
Grail Network
API reference

Shop Categories_list

GET
/shop/categories

Authorization

shopApiKey
headerAuthorizationBearer <token>

The shop's API key.

Query Parameters

page?integer
Range1 <= value <= 9007199254740991
Default1
pageSize?integer
Range1 <= value <= 200
Default20
sort?string
Default"name"
Value in"name""-name""createdAt""-createdAt"
search?string
Lengthlength <= 200
name?string
Length1 <= length <= 200
ids?string
withCatalogCardCount?string

true: each row has the count of its catalog cards. Else the count is null

Response Body

application/json
  1. response
data*array<>
meta*
Example Request
curl -X GET 'https://api-stg.grailnetwork.com/shop/categories'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z",      "catalogCardCount": 0    }  ],  "meta": {    "page": 1,    "pageSize": 1,    "total": 0  }}