Returns a single Category resource identified by its route identifier, optionally shaping the response with $select and $expand.
Requires a valid API key in the X-API-KEY header.
Indicates the preferred natural language and locale for localized content.
- omitted / null: content in the tenant's default culture.
- culture-code (e.g.
en-US,es): content localized in the specified culture. *and q-factor weighting are currently not supported.
Comma-separated list of root-resource property names to include in the response. See /Categories/$metadata for the available properties. Selecting properties of embedded resources is not supported.
Example: $select=cat_title,cat_description
Comma-separated list of embedded collections to include. By default, embedded collections are not included. Only embedded collections (not embedded resources) are supported.
Example: $expand=Products
$filter, $orderby, $top, $skip and $skipToken are not applicable to this endpoint.
200 OK — EntityRepresentation with the requested Category resource.
- 400 Bad Request — Invalid
$selector$expandexpression (returnsValidationFailureRepresentation). - 401 Unauthorized — Missing or invalid API key. Returned by the API gateway as
{ "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }. - 404 Not Found — Category with the given identifier does not exist.
- 500 Internal Server Error — Unexpected technical error.
Request:
GET /Categories(123)?$select=cat_title,cat_description&$expand=Products HTTP/1.1
X-API-KEY: your-api-key-here
Accept-Language: en-USResponse:
HTTP/1.1 200 OK
Content-Type: application/jsoncurl -i -X GET \
'https://api2.saleslayer.com/catalog/Categories({categoryIdentifier})?%24select=string&%24expand=string' \
-H 'Accept-Language: string' \
-H 'X-API-KEY: string'{ "@readLink": "string", "@editLink": "string", "@etag": "string", "@navigationLinks": [ { … } ], "@associationLinks": [ { … } ], "@context": "string", "value": null }