> ## Documentation Index
> Fetch the complete documentation index at: https://developer.fabric.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Products by SKUs

> Get a paginated list of product (Item, Bundle, or Variant) by SKU, including the attributes and variants. You can optionally specify `locales` to get products for specific regions.  **Note**: <br />1. You can refine the results by specifying `offset` and `limit` values. If you don't specify them, by default, you'll get up to 10 products. <br /> 2. If you don't have product SKU, use the corresponding ID-based endpoint - `GET /products/{id}`.



## OpenAPI

````yaml product.openapi get /products/sku
openapi: 3.0.0
info:
  title: Product Catalog API
  description: >-
    Product Catalog API, a subset of fabric **Product Catalog**, is designed to
    improve product management. At fabric, the term Product refers to an Item,
    Variant, and/or Bundle. Items are stand-alone and sold individually.
    Variants are the different variations of an item. For example, a Laptop that
    comes in three different sizes (13”, 15”, 17”) and four different colors
    (red, blue, grey, and white) has 12 variations. Variants are nested under a
    parent item, allowing the different options to appear for the item on the
    Storefront. Bundles are collections of two or more products sold exclusively
    together or as individual products. Product Catalog API enables you to
    create items, add variants to an item, create a bundle, add items to a
    bundle, update product attributes, get details of one or more products,
    delete products, find products, and more.
  version: 3.0.0
  x-audience: external-public
  contact:
    email: support@fabric.inc
    name: Product Team
  license:
    name: fabric API License
    url: https://fabric.inc/api-license
  termsOfService: https://fabric.inc/terms-of-use
servers:
  - url: https://api.fabric.inc/v3
    description: Production URL
security:
  - authorization: []
tags:
  - name: Product Operations by ID
    description: >-
      Products operations based on product IDs. You can use these endpoints to
      perform product operations outside of Storefront.
  - name: Product Operations by SKU
    description: >-
      Products operations based on product SKUs. Merchants are requested to map
      a unique product identifier against fabric standard `SKU` before using
      these endpoints.
  - name: General Product Operations
    description: Supports CRUD operations and product search
externalDocs:
  description: Find out more about Product (Previously called PIM)
  url: https://developer.fabric.inc/docs/products-overview
paths:
  /products/sku:
    get:
      tags:
        - Product Operations by SKU
      summary: Get Products by SKUs
      description: >-
        Get a paginated list of product (Item, Bundle, or Variant) by SKU,
        including the attributes and variants. You can optionally specify
        `locales` to get products for specific regions.  **Note**: <br />1. You
        can refine the results by specifying `offset` and `limit` values. If you
        don't specify them, by default, you'll get up to 10 products. <br /> 2.
        If you don't have product SKU, use the corresponding ID-based endpoint -
        `GET /products/{id}`.
      operationId: getProductsBySkus
      parameters:
        - $ref: '#/components/parameters/skusQueryParameter'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/productType'
        - $ref: '#/components/parameters/locales'
        - $ref: '#/components/parameters/x-fabric-tenant-id'
        - $ref: '#/components/parameters/x-fabric-request-id'
        - $ref: '#/components/parameters/statusesQueryParam'
        - $ref: '#/components/parameters/productTypes'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getProductsBySkusResponse'
              examples:
                Product:
                  $ref: '#/components/examples/productSKUListExample'
                Variant:
                  $ref: '#/components/examples/variantSKUListExample'
                Bundle:
                  $ref: '#/components/examples/bundleSKUListExample'
          headers:
            x-fabric-request-id:
              $ref: '#/components/headers/x-fabric-request-id-header'
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/notAuthorized'
        '403':
          $ref: '#/components/responses/forbidden'
        '413':
          $ref: '#/components/responses/payloadLimitExceededError'
        '500':
          $ref: '#/components/responses/internalServerError'
components:
  parameters:
    skusQueryParameter:
      in: query
      name: skus
      schema:
        $ref: '#/components/schemas/sku'
      required: false
      allowReserved: true
    limit:
      in: query
      name: limit
      description: Maximum number of records per page
      schema:
        type: integer
        format: int32
        default: 10
        example: 10
    offset:
      in: query
      name: offset
      description: >-
        Number of records to skip before returning records. For example,
        `offset=20, limit=10` returns records 21-30.
      schema:
        type: integer
        format: int32
        default: 0
        example: 0
      required: false
    productType:
      in: query
      name: type
      schema:
        $ref: '#/components/schemas/productType'
      description: Product types that can be filtered are Item, Bundle, and Variant
      required: false
      deprecated: true
    locales:
      in: query
      name: locales
      schema:
        type: string
        example: fr-CA%2Cen-US
      description: >-
        Comma-separated locale codes of product. The service throws a 400 error
        if the locale isn't supported. Standard locales can be found at
        https://www.rfc-editor.org/rfc/rfc5646. <br /> **Note**: The recommended
        way to get the locale is by invoking multi-channel service.
      required: false
    x-fabric-tenant-id:
      name: x-fabric-tenant-id
      in: header
      description: >-
        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](/v3/platform/settings/account-details/getting-the-account-id).
        This header is required.
      schema:
        type: string
        example: 517fa9dfd42d8b00g1o3k312
    x-fabric-request-id:
      name: x-fabric-request-id
      in: header
      description: Unique request ID
      schema:
        type: string
        example: 263e731c-45c8-11ed-b878-0242ac120002
      required: false
    statusesQueryParam:
      in: query
      name: statuses
      schema:
        type: string
        example: DRAFT
        default: DRAFT,LIVE
      description: >-
        Comma-separated statuses indicating the preferred order of the product
        versions considered for this operation (endpoint action). For example,
        <br />1. When the status is `DRAFT`, this operations will only apply to
        the Draft version of product, if it exists <br />2. When the status is
        `LIVE`, this operation will only apply to the Live version of the
        product, if it exists <br />3 When the status is `LIVE,DRAFT`, this
        operation will prioritize Live version first, if it exists. Otherwise,
        the Draft version is considered. <br />4 When the status is `DRAFT,LIVE`
        this operation will prioritize the Draft version first, if it exists.
        Otherwise, the Live version is considered.
      required: false
      allowReserved: true
    productTypes:
      in: query
      name: types
      schema:
        type: string
      description: >-
        Product types that can be filtered are Item, Bundle, and Variant.
        Supports multiple types when provided as comma separated types
      required: false
      allowReserved: true
      example: ITEM,VARIANT
  schemas:
    getProductsBySkusResponse:
      description: Product details by SKUs
      allOf:
        - $ref: '#/components/schemas/paginatedResultMeta'
        - type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/skuBasedProduct'
    sku:
      type: string
      example: XP-123345
      description: >-
        Unique product ID that maps to fabric's standard attribute called `SKU`.
        <br /> <b>Note:</b> `sku` shouldn't include `;` or `=`
      pattern: ^[^;=]*$
    productType:
      type: string
      enum:
        - ITEM
        - VARIANT
        - BUNDLE
      example: ITEM
      description: Supported product types
    paginatedResultMeta:
      description: Pagination metadata
      type: object
      properties:
        offset:
          type: integer
          format: int32
          default: 0
          example: 5
          description: >-
            Number of records to skip before returning records. For example,
            `offset=20, limit=10` returns records 21-30.
        limit:
          type: integer
          format: int32
          default: 10
          example: 10
          description: Maximum number of records per page
        count:
          type: integer
          format: int32
          example: 100
          description: Total number of records in the response
    skuBasedProduct:
      type: object
      description: Details of Item by SKU
      properties:
        id:
          $ref: '#/components/schemas/productId'
        sku:
          $ref: '#/components/schemas/sku'
        type:
          $ref: '#/components/schemas/productType'
        isActive:
          type: boolean
          example: true
          description: 'true: Product is active <br /> false: Product is inactive'
        hasDraft:
          $ref: '#/components/schemas/hasDraft'
        hasLive:
          $ref: '#/components/schemas/hasLive'
        status:
          $ref: '#/components/schemas/status'
        attributes:
          type: array
          description: Attributes assigned to product
          items:
            $ref: '#/components/schemas/productAttributeValue'
        localizedProperties:
          $ref: '#/components/schemas/productProperties'
        parentProduct:
          allOf:
            - $ref: '#/components/schemas/parentProductId'
            - $ref: '#/components/schemas/parentProductSKU'
        variants:
          $ref: '#/components/schemas/variantSKUAndIDProducts'
        bundleProducts:
          $ref: '#/components/schemas/bundleSKUAndIDProducts'
        categoryId:
          $ref: '#/components/schemas/categoryIdResponse'
        createdAt:
          type: string
          example: '2021-09-14T22:10:30.618Z'
          description: Time of product creation (UTC)
        updatedAt:
          type: string
          example: '2021-09-14T22:10:30.618Z'
          description: Time of last update to product (UTC)
    genericError:
      type: object
      properties:
        message:
          type: string
          description: Place holder error message for all 4xx, 5xx errors
          example: Request is invalid
        type:
          type: string
          description: Place holder for error types such as 4xx, 5xx
          example: Bad request
        errors:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                description: Error type
                example: CLIENT_ERROR
              message:
                type: string
                description: Error message
                example: Invalid request. Unable to find or create product
    productId:
      type: string
      example: AASSBCC12334FCD12334V
      description: Product ID
    hasDraft:
      type: boolean
      example: true
      description: >-
        true: Product has a Draft version <br /> false: Product doesn't have a
        Draft version
    hasLive:
      type: boolean
      example: true
      description: >-
        true: Product has a Live version <br /> false: Product doesn't have a
        Live version
    status:
      type: string
      description: >-
        Represents the current status of product. This value takes precedence
        over `isActive` if both are sent in the request.
      enum:
        - DRAFT
        - LIVE
      example: LIVE
    productAttributeValue:
      type: object
      description: Details of product attributes
      properties:
        id:
          $ref: '#/components/schemas/productId'
        name:
          type: string
          example: color
          description: Attribute name
        type:
          type: string
          example: string
          description: Attribute type
        validation:
          type: object
          description: Attribute validation - date
          properties:
            dateFormat:
              type: string
              description: Date format. <br> Applicable when `attributeType` is `DATETIME`.
              example: MM-DD-YYYY
        isDeleted:
          type: boolean
          nullable: true
          example: false
          description: >-
            true: Attributes are inherited from parent product <br /> false:
            Attributes aren't inherited from parent product **Note**: Attributes
            are soft deleted when a product is moved from one category to
            another.
        isInherited:
          type: boolean
          nullable: true
          example: true
          description: >-
            true: Attributes are inherited from parent product <br /> false:
            Attributes aren't inherited from parent product
        value:
          anyOf:
            - $ref: '#/components/schemas/booleanSchema'
            - $ref: '#/components/schemas/stringSchema'
            - $ref: '#/components/schemas/integerSchema'
            - $ref: '#/components/schemas/doubleSchema'
            - $ref: '#/components/schemas/arrayOfStrings'
          example: blue
          description: Attribute value
    productProperties:
      type: object
      description: Localized attribute names
      additionalProperties:
        type: object
        properties:
          attributes:
            type: array
            items:
              $ref: '#/components/schemas/productAttributeValue'
      example:
        en-US:
          attributes:
            - id: 4e7329dfd5288b0011332366
              name: Color
              type: string
              isDeleted: false
              value: blue
              isInherited: true
    parentProductId:
      description: Parent item ID of the Variant
      type: object
      properties:
        id:
          $ref: '#/components/schemas/productId'
    parentProductSKU:
      description: Parent item SKU of the Variant
      type: object
      properties:
        sku:
          $ref: '#/components/schemas/sku'
    variantSKUAndIDProducts:
      type: array
      description: Variants with ID and SKU
      items:
        type: object
        properties:
          id:
            $ref: '#/components/schemas/productId'
          sku:
            $ref: '#/components/schemas/sku'
    bundleSKUAndIDProducts:
      type: array
      description: Bundles with ID and SKU
      items:
        type: object
        properties:
          id:
            $ref: '#/components/schemas/productId'
          sku:
            $ref: '#/components/schemas/sku'
          quantity:
            type: integer
            format: int32
            example: 2
            description: Number of products or variants in bundle
    categoryIdResponse:
      type: string
      example: 6h7329dfd5288b001133231d
      description: 24-character system-generated category ID of product
    booleanSchema:
      type: boolean
      nullable: true
      description: Sample `boolean` schema
      example: true
    stringSchema:
      type: string
      nullable: true
      description: Sample `string` schema
      example: blue
    integerSchema:
      type: integer
      nullable: true
      format: int32
      description: Sample `integer` schema
      example: 1
    doubleSchema:
      type: number
      nullable: true
      format: double
      description: Sample `double` schema
      example: 1
    arrayOfStrings:
      type: array
      description: Array of strings
      items:
        $ref: '#/components/schemas/stringSchema'
  examples:
    productSKUListExample:
      value:
        data:
          - id: 7b7329dfd5288b0011332399
            sku: QWEFVVV
            type: ITEM
            isActive: true
            hasDraft: true
            hasLive: true
            status: LIVE
            attributes:
              - id: 7b7329dfd5288b0011332355
                name: Color
                type: string
                isDeleted: false
                value: blue
                isInherited: true
            localizedProperties:
              en-US:
                attributes:
                  - id: 5e7329dfd5288b0011332344
                    name: Color
                    type: string
                    isDeleted: false
                    value: blue
                    isInherited: true
              en-IN:
                attributes:
                  - id: 717329dfd5288b0011332317
                    name: Colour
                    type: string
                    isDeleted: false
                    value: blue
                    isInherited: true
            variants:
              - id: 2b7329dfd5288b0011332311
                sku: AAD12334V2
            categoryId: 6b7329dfd5288b0011332317
            createdAt: '2021-09-14T22:10:30.618Z'
            updatedAt: '2021-09-14T22:10:30.618Z'
        offset: 5
        limit: 10
        count: 100
    variantSKUListExample:
      value:
        data:
          - id: 5g7329dfd5288b0011332345
            sku: QWERFFVVV
            type: VARIANT
            isActive: true
            hasDraft: true
            hasLive: true
            status: LIVE
            attributes:
              - id: 7b7329dfd5288b0011332311
                name: Color
                type: string
                isDeleted: false
                value: blue,
                isInherited: true
            localizedProperties:
              en-US:
                attributes:
                  - id: 7b7329dfd5288b0011332314
                    name: Color
                    type: string
                    isDeleted: false
                    value: blue
                    isInherited: true
              en-IN:
                attributes:
                  - id: 8n7329dfd5288b0011332314
                    name: Colour
                    type: string
                    isDeleted: false
                    value: blue
                    isInherited: true
            parentProduct:
              id: 5b7329dfd5288b00113323b1
              sku: AA3456
            categoryId: 717329dfd5288b0011332317
            createdAt: '2021-09-14T22:10:30.618Z'
            updatedAt: '2021-09-14T22:10:30.618Z'
        offset: 5
        limit: 10
        count: 100
    bundleSKUListExample:
      value:
        data:
          - id: 7f7329dfd5288b0011332312
            sku: QWEDFFVVV
            type: BUNDLE
            isActive: true
            hasDraft: false
            hasLive: true
            status: LIVE
            attributes:
              - id: 9f7329dfd5288b0011332317
                name: Color
                type: string
                isDeleted: false
                value: blue
                isInherited: true
            localizedProperties:
              en-US:
                attributes:
                  - id: 6f7329dfd5288b00113323f11
                    name: Color
                    type: string
                    isDeleted: false
                    value: blue
                    isInherited: true
              en-IN:
                attributes:
                  - id: 3f7329dfd5288b0011332389
                    name: Colour
                    type: string
                    isDeleted: false
                    value: blue
                    isInherited: true
            bundleProducts:
              - id: 8e7329dfd5288b0011332322
                sku: AS334V3
                quantity: 2
              - id: 5e7329dfd5288b0011332366
                sku: ASCD12334V3
                quantity: 2
            categoryId: 8b7329dfd5288b0011332317
            createdAt: '2021-09-14T22:10:30.618Z'
            updatedAt: '2021-09-14T22:10:30.618Z'
        offset: 5
        limit: 10
        count: 100
  headers:
    x-fabric-request-id-header:
      description: Unique request ID
      schema:
        type: string
        example: 263e731c-45c8-11ed-b878-0242ac120002
  responses:
    badRequest:
      description: Request is invalid or malformed
      headers:
        x-fabric-request-id:
          $ref: '#/components/headers/x-fabric-request-id-header'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/genericError'
    notAuthorized:
      description: Request is unauthorized
      headers:
        x-fabric-request-id:
          $ref: '#/components/headers/x-fabric-request-id-header'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/genericError'
          example:
            type: UNAUTHORIZED_ERROR
            message: The requester is unauthorized
    forbidden:
      description: User isn't allowed to perform the action
      headers:
        x-fabric-request-id:
          $ref: '#/components/headers/x-fabric-request-id-header'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/genericError'
          example:
            type: REQUEST_DENIED
            message: User doesn't have the required permission
    payloadLimitExceededError:
      description: Payload limit exceeded (> 10MB)
      headers:
        x-fabric-request-id:
          $ref: '#/components/headers/x-fabric-request-id-header'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/genericError'
          example:
            type: PAYLOAD_LIMIT_EXCEEDED_ERROR
            message: Payload exceeds maximum configured size
    internalServerError:
      description: Internal server error
      headers:
        x-fabric-request-id:
          $ref: '#/components/headers/x-fabric-request-id-header'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/genericError'
          example:
            message: Internal Server Error
            type: SERVER_ERROR
  securitySchemes:
    authorization:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: S2S access token (JWT) from fabric Identity service (during Login)

````