GET
/
published-products
/
{id}
Get Published Product by ID
curl --request GET \
  --url https://api.fabric.inc/v3/published-products/{id} \
  --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

id
string
required

24-character system-generated product ID.

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

OK

Details of published product Unique Store Keeping Unit (SKU) of product Depending on the context, this is a 24-character system-generated ID for item, attribute, variant, bundle, or category. Unique identifier of item Product type Category ID

attributes
object[]
localizedProperties
object[]
variants
object[]
bundleProducts
object[]
categories
object[]
collections
object[]
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"