GET
/
categories
/
{id}
/
products
curl --request GET \
  --url https://api.fabric.inc/v3/categories/{id}/products \
  --header 'Authorization: Bearer <token>'
{
  "offset": 5,
  "limit": 10,
  "count": 100,
  "data": {
    "id": "617329dfd5288b0011332388",
    "products": [
      {
        "id": "5g7329dfd5288b00113323p7",
        "sku": "QWERTTY56DDFFVVV",
        "type": "ITEM",
        "isActive": true,
        "hasDraft": true,
        "hasLive": true,
        "status": "LIVE",
        "attributes": [
          {
            "id": "227329dfd5288b0011332315",
            "name": "Color",
            "type": "string",
            "isDeleted": false,
            "value": "blue",
            "isInherited": true
          }
        ],
        "localizedProperties": {
          "en-US": {
            "attributes": [
              {
                "id": "637329dfd5288b0011332354",
                "name": "Color",
                "type": "string",
                "isDeleted": false,
                "value": "blue",
                "isInherited": true
              }
            ]
          },
          "en-IN": {
            "attributes": [
              {
                "id": "8f7329dfd5288b0011332334",
                "name": "Colour",
                "type": "string",
                "isDeleted": false,
                "value": "blue",
                "isInherited": true
              }
            ]
          }
        },
        "variants": [
          {
            "id": "967329dfd5288b0011332356"
          }
        ],
        "categoryId": "7f7329dfd5288b0011332378",
        "createdAt": "2021-09-14T22:10:30.618Z",
        "updatedAt": "2021-09-14T22:10:30.618Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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.

Example:

"517fa9dfd42d8b00g1o3k312"

x-fabric-request-id
string

Unique request ID

Example:

"263e731c-45c8-11ed-b878-0242ac120002"

Path Parameters

id
string
required

24-character system-generated category ID

Query Parameters

offset
integer

Number of records to skip before returning records. For example, offset=20, limit=10 returns records 21-30.

Example:

0

limit
integer

Maximum number of records per page

Example:

10

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

Example:

"fr-CA, en-US"

Response

200
application/json

OK

Details of products associated to the category Meta details needed for every paginated response