Skip to content

Example of a request to get categories

Request

Legacy-only Product Category handler with a distinct parent-category response contract. The canonical Product Category item URL resolves to the public compatibility handler.

Security
BearerPartnerUser
Path
location_idnumberrequired

location ID

parent_category_idnumberrequired

ID of the parent product category

Query
Acceptstringrequired

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/company/{location_id}/goods_categories/{parent_category_id}?Accept=string&Content-Type=string&Authorization=string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'

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": { "count": 94 } }