Skip to content

CategoryForSKU retusns the category for a given SKU Since the category is only available on the listing level, this will return the category and potentially save a call to GetBySKU if only the variant is needed

You call thisScope not enforced

GET
/v2/storefront/listing/sku/{sku}/category
curl --request GET \
--url https://api.zentail.com/v2/storefront/listing/sku/example/category \
--header 'Authorization: Bearer <token>'
sku
required
string

A successful response.

Media typeapplication/json
object
categoryId
string
Examplegenerated
{
"categoryId": "example"
}

An unexpected error response.

Media typeapplication/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Examplegenerated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}

Sourceapi-proto@afdb30cc via [email protected]

Built0c509dd3

This page describes the source document as deployed: the version listing pinned in its release r2026.09.24.02. A change merged upstream shows up here once it has deployed and the pins are next refreshed.

API changelog