GET
/
categories
/
{id}

Authorizations

Authorization
string
headerrequired

S2S access token (JWT) from fabric Identity service (during Login)

Headers

x-fabric-tenant-id
string

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

x-fabric-request-id
string

Unique request ID

Path Parameters

id
string
required

24-character system-generated category ID

Query Parameters

locales
string

Comma-separated locale codes of category. The service throws a 400 error if locale isn't supported. Standard locales can be found at https://www.rfc-editor.org/rfc/rfc5646. The recommended way to get the locale is by invoking multi-channel service

Response

200 - application/json

Category details

id
string

24-character system-generated category ID

name
string

Non-localized category name

localizedProperties
object

Localized properties of category

isLocalizable
boolean

true: Category name is translated into different languages or localized for different regions <br /> false: Category name isn't localized Note: Refer to localizedProperties to get relevant details based on locale

isRoot
boolean

true: This is a root category <br /> false: This isn't a root category

isLeaf
boolean

true: This is the last category of the branch with no further children categories <br /> false: This isn't the last category of the branch and has children categories

hasProducts
boolean

true: This is the leaf category of the branch which has some products in it <br /> false: This branch doesn't have any direct products assigned to it

categoryAttributes
object[]

Attributes assigned to the specified category

productAttributes
object[]

Attributes assigned for all products in the specified category.

productIds
string[]
children
object[]

Immediate children of the specified category

updatedBy
string

Email of user who last update the category

updatedAt
string

Time of last update to category

createdAt
string

Time of category creation