Collection is an alternative way to organize products compared to the Category system, which is the original organization of items. Because the Category system isn’t granular enough to meet all the requirements of Storefronts, collections are used to organize products as per the merchant’s requirements. This endpoint is used to create a new collection within the alternative organization so that it can be adapted to support various use-cases of Storefronts.
S2S access token (JWT) from fabric Identity service (during Login)
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.
"517fa9dfd42d8b00g1o3k312"
Unique request ID
"263e731c-45c8-11ed-b878-0242ac120002"
Details to create a collection
Collection details
24-character system-generated parent collection ID
"600f1f77bcf86cd799439011"
Non-localized collection name
"Color"
localized properties of collection
{
"en-US": { "name": "Color" },
"en-IN": { "name": "Colour" }
}true: Collection name is translated into different languages or localized for different regions
false: Collection name isn't localized. Note: Refer to localizedProperties to get relevant details based on locale
true
true: This collection is the root branch
false: This collection isn't the root branch
true
true: This is the last collection of the branch with no further children collections
false: This isn't the last collection of the branch and has children collections
false
Collection attributes
List of included category IDs
List of excluded category IDs
[
"637329dfd5288b0011332300",
"74184766610c0e32a86d8758"
]Details of attribute filters applied. In the Create collection endpoint, it's also used to create collection based on attribute values. For example, create collection for mobile phones, where price is greater than 25000
OK
Collection details
24-character system-generated collection ID
"55184766610c0e32a86d8759"
Non-localized collection name
"Color"
Localized details
{
"en-US": { "name": "Color" },
"en-IN": { "name": "Colour" }
}true: Collection name is translated into different languages or localized for different regions
false: Collection name isn't localized Note: Refer to localizedProperties to get relevant details based on locale
true
true: Collection is root category.
false: Collection isn't a root category.
true
true: Collection is active
false: Collection is inactive
false
Collection attributes
List of categories included
List of categories excluded
Attribute filters applied to the category
Immediate children of the specified collection
Email of user who last updated the category
Time of last updated to category (UTC)
"2023-04-20T10:24:36.162Z"
Time of category creation (UTC)
"2021-04-20T10:24:36.162Z"