getSku

get

/ccadmin/v1/skus/{id}

Get Sku. Gets a SKU and its properties. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
The skuId.
Query Parameters
includePrices
Type: boolean
Boolean flag to determine whether to include price maps for the skus in the response.
priceListGroupId
Type: string
Price list group id for adding the prices to the SKU in the response.
Header Parameters
X-CCAsset-Language
Type: string
The asset language of the request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getSku_response
Nested Schema : items
Type: object
sku details with pricing and variant information
Nested Schema : largeImage
Type: object
large image
Nested Schema : parentProducts
Type: object
Array having parent products.
Nested Schema : smallImage
Type: object
Small image of Sku
Nested Schema : childSKUs
Type: object
Array having properties of child SKU.
Nested Schema : fullImageURLs
Type: array
Full image URLs of the product.
Nested Schema : largeImage
Type: object
Array having repository ID and URL of the large image of SKU.
Nested Schema : largeImageURLs
Type: array
Large image URLs of the product.
Nested Schema : mediumImageURLs
Type: array
Medium image URLs of the product.
Nested Schema : productImages
Type: array
Array of product images.
Nested Schema : smallImage
Type: object
Array having repository ID and URL of small image of the SKU.
Nested Schema : smallImageURLs
Type: array
Small image URLs of the product.
Nested Schema : sourceImageURLs
Type: array
Source image URLs of the product.
Nested Schema : thumbImageURLs
Type: array
Thumb image URLs of the product.
Nested Schema : items
Type: object
Nested Schema : metadata
Type: object
Seo meta info for product.
Nested Schema : tags
Type: array
The array of product image tags
Example application/json

{
    "productFamily":null,
    "primaryThumbImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=100&width=100",
    "dynamicPropertyMapLong":{
        "sku-MensApparel_color":6,
        "sku-MensApparel_size":0
    },
    "bundleLinks":[
        {
            "item":{
                "displayName":"Blue T Shirt",
                "repositoryId":"sku30001"
            },
            "quantity":1,
            "repositoryId":"skul10001"
        },
        {
            "item":{
                "displayName":"Red T Shirt",
                "repositoryId":"sku30002"
            },
            "quantity":1,
            "repositoryId":"skul10002"
        }
    ],
    "largeImage":null,
    "smallImage":null,
    "listVolumePrice":null,
    "color":"Gray",
    "primaryFullImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg",
    "listPrices":null,
    "salePrices":null,
    "productListingSku":true,
    "largeImageURLs":[
        "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=940&width=940"
    ],
    "productLine":null,
    "primaryLargeImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=940&width=940",
    "listVolumePrices":null,
    "smallImageURLs":[
        "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300"
    ],
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/skus/sku30043"
        }
    ],
    "model":null,
    "thumbnailImage":null,
    "saleVolumePrices":null,
    "barcode":null,
    "salePriceEndDate":null,
    "saleVolumePrice":null,
    "salePriceStartDate":null,
    "images":[
        {
            "path":"/products/ACC_TerryGloves_full.jpg",
            "metadata":{
            },
            "name":"/products/ACC_TerryGloves_full.jpg",
            "repositoryId":"m10002",
            "url":"http://localhost:9080/file/products/ACC_TerryGloves_full.jpg",
            "tags":[
            ]
        }
    ],
    "quantity":null,
    "primaryMediumImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=475&width=475",
    "salePrice":null,
    "fullImageURLs":[
        "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg"
    ],
    "active":true,
    "thumbImageURLs":[
        "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=100&width=100"
    ],
    "size":"Small",
    "mediumImageURLs":[
        "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=475&width=475"
    ],
    "repositoryId":"sku30043",
    "primarySourceImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300",
    "sourceImageURLs":[
        "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300"
    ],
    "primarySmallImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300",
    "listPrice":null,
    "configurable":"false"
}
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

{
  "productFamily": null,
  "primaryThumbImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=100&width=100",
  "dynamicPropertyMapLong": {
    "sku-MensApparel_color": 6,
    "sku-MensApparel_size": 0
  },
  "bundleLinks": [
    {
      "item": {
        "displayName": "Blue T Shirt",
        "repositoryId": "sku30001"
      },
      "quantity": 1,
      "repositoryId": "skul10001"
    },
    {
      "item": {
        "displayName": "Red T Shirt",
        "repositoryId": "sku30002"
      },
      "quantity": 1,
      "repositoryId": "skul10002"
    }
  ],
  "largeImage": null,
  "smallImage": null,
  "listVolumePrice": null,
  "color": "Gray",
  "primaryFullImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg",
  "listPrices": null,
  "salePrices": null,
  "productListingSku": true,
  "largeImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=940&width=940"],
  "productLine": null,
  "primaryLargeImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=940&width=940",
  "listVolumePrices": null,
  "smallImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300"],
  "links": [{
    "rel": "self",
    "href": "http://localhost:9080/ccadminui/v1/skus/sku30043"
  }],
  "model": null,
  "thumbnailImage": null,
  "saleVolumePrices": null,
  "barcode": null,
  "salePriceEndDate": null,
  "saleVolumePrice": null,
  "salePriceStartDate": null,
  "images": [{
    "path": "/products/ACC_TerryGloves_full.jpg",
    "metadata": {},
    "name": "/products/ACC_TerryGloves_full.jpg",
    "repositoryId": "m10002",
    "url": "http://localhost:9080/file/products/ACC_TerryGloves_full.jpg",
    "tags": []
  }],
  "quantity": null,
  "primaryMediumImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=475&width=475",
  "salePrice": null,
  "fullImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg"],
  "active": true,
  "thumbImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=100&width=100"],
  "size": "Small",
  "mediumImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=475&width=475"],
  "repositoryId": "sku30043",
  "primarySourceImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300",
  "sourceImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300"],
  "primarySmallImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300",
  "listPrice": null,
  "configurable": "false"
}