GET
/
published-products
/
skus
/
{sku}
curl --request GET \
  --url https://api.fabric.inc/v3/published-products/skus/{sku} \
  --header 'Authorization: Bearer <token>'
{
  "sku": "XP-123345",
  "id": "5f7329dfd5288b0011332366",
  "itemId": 1682313863,
  "type": "ITEM",
  "categoryId": "34e7329dfd5288b0011332366",
  "attributes": [
    {
      "id": "5f7329dfd5288b0011332322",
      "name": "color",
      "value": "blue",
      "type": "string"
    }
  ],
  "localizedProperties": [
    {
      "id": "5f7329dfd5288b0011332322",
      "name": "color",
      "value": "blue",
      "type": "string"
    }
  ],
  "variants": [
    {
      "sku": "XP-123345",
      "id": "5f7329dfd5288b0011332366",
      "itemId": 1682313863,
      "attributes": [
        {
          "id": "5f7329dfd5288b0011332322",
          "name": "color",
          "value": "blue",
          "type": "string"
        }
      ],
      "localizedProperties": [
        {
          "id": "5f7329dfd5288b0011332322",
          "name": "color",
          "value": "blue",
          "type": "string"
        }
      ]
    }
  ],
  "bundleProducts": [
    {
      "quantity": 2,
      "sku": "XP-123345",
      "id": "5f7329dfd5288b0011332366",
      "itemId": 1682313863,
      "attributes": [
        {
          "id": "5f7329dfd5288b0011332322",
          "name": "color",
          "value": "blue",
          "type": "string"
        }
      ],
      "localizedProperties": [
        {
          "id": "5f7329dfd5288b0011332322",
          "name": "color",
          "value": "blue",
          "type": "string"
        }
      ]
    }
  ],
  "categories": [
    {
      "id": "5f7329dfd5288b0011332366",
      "type": "PRIMARY",
      "isRoot": true,
      "localizedProperties": [
        {
          "id": "5f7329dfd5288b0011332322",
          "name": "color",
          "value": "blue",
          "type": "string"
        }
      ],
      "attributes": [
        {
          "id": "5f7329dfd5288b0011332322",
          "name": "color",
          "value": "blue",
          "type": "string"
        }
      ]
    }
  ],
  "collections": [
    {
      "name": "Demo Name",
      "id": "5f7329dfd5288b0011332366",
      "hierarchy": [
        {
          "id": "5f7329dfd5288b0011332366",
          "type": "PRIMARY",
          "isRoot": true,
          "localizedProperties": [
            {
              "id": "5f7329dfd5288b0011332322",
              "name": "color",
              "value": "blue",
              "type": "string"
            }
          ],
          "attributes": [
            {
              "id": "5f7329dfd5288b0011332322",
              "name": "color",
              "value": "blue",
              "type": "string"
            }
          ]
        }
      ]
    }
  ]
}

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

sku
string
required

Product SKU

Query Parameters

excludeBundleProducts
boolean

true: Response shouldn't include products of the bundle <br /> false: Response should include products of the bundle Note: Default value is false

excludeCollections
boolean

true: Response shouldn't include collection or hierarchy details <br /> false: Response should include collection or hierarchy details Note: Default value is false

excludeCategories
boolean

true: Response shouldn't include categories or hierarchy details <br /> false: Response should include categories or hierarchy details Note: Default value is false

excludeVariants
boolean

true: Response shouldn't include categories or hierarchy details <br /> false: Response should include categories or hierarchy detail Note: Default value is false

locale
string
required

Locale name

Response

200
application/json
OK

Details of published product

sku
string

Unique product ID that maps to fabric's standard attribute called SKU. <br /> <b>Note:</b> sku shouldn't include ; or =

Example:

"XP-123345"

id
string

24-character system-generated product ID

Example:

"5f7329dfd5288b0011332366"

itemId
number

Unique identifier of an item, a variant or a bundle

Example:

1682313863

type
enum<string>

Product type

Available options:
ITEM,
VARIANT,
BUNDLE
Example:

"ITEM"

categoryId
string

24-character system-generated category ID

Example:

"34e7329dfd5288b0011332366"

attributes
object[]

Details of product attributes

localizedProperties
object[]

Details of product attributes

variants
object[]

Variants of a published product. For example, Phone base model is 128 GB. So, the 256GB model becomes its variant.

bundleProducts
object[]

Bundles are combo of two or more products sold exclusively together or as individual products (depending on the configuration). For example, an iPhone and a 20W USB-C Power Adapter becomes a bundle that can be sold together to offer value to shoppers.

categories
object[]

Original hierarchical tree of product organization and grouping. For example, an iPhone could be under Electronics->SmartPhones->IOS_devices.

collections
object[]

Collection is an alternative organization of the original category tree. They're used to support various use cases for a Storefront. For example, Bose Frames Alto could have their main grouping as Fashion and secondary grouping as Electronics.

Was this page helpful?