Skip to content

Get a list of product categories
deprecated

Request

Security
BearerPartnerUser
Path
location_idnumberrequired

location ID

category_idnumberrequired

ID of the parent product category. Default 0 - top-level categories are displayed (optional)

Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

curl -i -X GET \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/product_categories/{category_id}' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: string'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataArray of objects

Array of objects with data

Example:
[ { "id": 1035384, "title": "Memberships", "parent_category_id": null, "is_chain": true }, { "id": 961078, "title": "Basic products", "parent_category_id": null, "is_chain": false } ]
metaobject

Metadata

Example:
{ "count": 2 }
Response
{ "success": true, "data": [ { … }, { … } ], "meta": [] }