---
title: "Get product and price by sku"
method: GET
path: "/api-offers/get-product/{sku}"
tags: ["Product"]
---

# Get product and price by sku

`GET /api-offers/get-product/{sku}`

## Request

- Base URL: `https://live.copilot.fabric.inc`
- URL: `https://live.copilot.fabric.inc/api-offers/get-product/{sku}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fabric/apis/offers-v2/docs/api-offers/get-product/:sku/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves product and price details, along with its child products' details if there are any, by specific SKU and priceListId. If price details are not set up previously, it only retrieves the product information; price details are not returned in such cases.

## Path parameters

- `sku` string, required

## Query parameters

- `priceListId` string
- `limit` number
- `offset` number

## Headers

- `x-site-context` string, required

## Response `200`

OK

- GetProductResponse
  - `id` string: fabric internal ID of the product
  - `channel` number[]: Sales channel of the product
  - `startDate` string, date-time: Start date of the product
  - `endDate` string, date-time: End date of the product
  - `group` string[]: ID of the group or category the product belongs to
  - `imageSetOnAttributes` string[]: Array of URLs to images of different variants or attributes
  - `isDefault` boolean: false for parent product<br /> If a parent product has child items, true represents the default child item to be displayed, under the parent product, on the product listing page.
  - `isActive` boolean: true if the item is active and displayed in the catalog. isActive will be true only when state is `READY` <br /> false if the state is `DRAFT`, and item is not displayed in the catalog
  - `isSoftDeleted` boolean: true indicates the product is deleted <br /> false indicates the product is not deleted
  - `title` string: Title of the product
  - `itemFamily` object: Family of products the item belongs to
    - `id` string
    - `name` string
  - `sku` string: SKU of the product
  - `description` string: Description of the product
  - `state` string: Status of the product. It indicates if the product is ready to be published on the product listing page.
  - `itemId` number: Item ID of the product
  - `images` object[]: Details of images of the product displayed on copilot UI
    - `id` string: Image ID
    - `order` number: Image sequence number
    - `label` string
    - `source` object[]: Source of product images
      - `id` string
      - `url` string
  - `attributes` object[]: Details of product attributes if any
    - `attributeGroupId` string: Attribute group ID. Related attributes are grouped for easy identification and maintenance
    - `value` string
    - `isDefault` boolean: true indicates this attribute is the default attribute of the product<br /> false indicates this is not the default attribute of the product
    - `id` string: attribute ID
  - `variants` string[]: Different variants of the product
  - `createdAt` string, date-time: Creation date of the product
  - `updatedAt` string, date-time: Last updated date of the product
  - `items` object[]: Lists fabric objectId of child products if there are any
    - `_id` string: fabric internal ID
  - `price` object: Price details of the product if it was setup previously
    - `id` string: fabric internal ID
    - `isSoftDeleted` boolean: true: price is deleted<br /> false: price is not deleted
    - `itemId` number: Item ID of the product
    - `offerId` number: ID of the created offer for the itemId or itemSku
    - `createdAt` string: Creation date of the record
    - `updatedAt` string: Last updated date of the record
    - `offers` object[]: Returns offer details for the product if it was created previously
      - `price` object: Offer price details
        - `sale` number: Price at which the product is offered for sale
        - `base` number: Minimum fixed price of the product
        - `currency` string: Currency code for the price set for the product
      - `channel` number: Sales channel of the product
      - `startDate` string, date-time: Offer start date
      - `endDate` string, date-time: Offer end date
      - `kind` number: PriceKindId. It indicates if the offer price is a promotional offer price or clearance offer price
    - `query` object: Pagination information for offers array
      - `limit` number: The maximum number of records per page.
      - `count` number: The total number of records.
      - `offset` number: The number of records to skip before returning records. For example, when offset is 20 and limit is 10, this endpoint returns records from 21 to 30.
  - `priceRange` object: Price ranges of the product
    - `min` number: Minimum price of the product. The product cannot be sold below this price
    - `max` number: Maximum price of the product. The product cannot be sold above this price
  - `livePrice` object[]: Current market price of the product with which the product is sold
    - `price` object
      - `base` number: Minimum fixed price of item if any
      - `sale` number: Price at which the product is offered for sale
      - `cost` number: Cost of the item if any
      - `currency` string: Currency of the price
    - `channel` number: Sales channel
    - `startDate` string, date-time: Start date and time of the current price of the product
    - `endDate` string, date-time: End date and time of the current price of the product
    - `kind` object: Price kind details that indicates if the offer price is a promotion kind price or clearance kind price
      - `id` string: fabric internal ID
      - `name` string
      - `channel` number: Sales channel
      - `priceKindId` number: Pricekind ID. This ID helps to identify if the price is base price or clearance price or any other additional price.
    - `offerCode` number: ID associated with the live price object
    - `range` object: Maximum and minimum price range within which the live price of the product varies depending upon the applicable offers
      - `min` number
      - `max` number
  - `promoDates` object: Start date and end date of the offer price
    - `startDate` string, date-time
    - `endDate` string, date-time

## Other responses

- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/fabric/apis/offers-v2.md) - [All operations](https://skmtc.dev/fabric/apis/offers-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/fabric/apis/offers-v2/revisions/da2bd742b9bc?raw)
