GET DEMO Chat

 

 

How To Access Ecommerce Product Details & Information

This is the ninth in a series of “How To” posts that illustrate various ways in which you can use the Indix Product API.

We’ve been following along with fictional developers Christy and Ted as they build features into their ecommerce shopping app.

Ted and Christy were super psyched about the new browsing feature in their app. It was almost an hour before Ted realized how long he’d been browsing product categories through the new feature.

“This is pretty addictive. But we also need to enable folks to drill down on a single product and get all the details on how to buy etc.”

Christy chimed in just as he was finishing his thought, “Of course, it’s the logical next step.”

Last time, we saw how to power a browsing experience. Once someone clicks on particular product, it would trigger these next set of steps.

The Indix API captures product details such as type, material, etc. for shoes and apparel. Say someone wants more catalog details on a particular Adidas running shoe. The product’s MPID (Master Product ID) can be acquired using any search endpoint.

Plugging that MPID into the Universal product lookup endpoint exposes all the attributes and price details for the product. Any other endpoint can be used depending on the level of detail needed.

adidas

Query: https://api.indix.com/v2/universal/products/63cacc09b488410ce6b4e4493e565a82?countryCode=US&app_key=<enter_app_key>

Sample response:

{
  "message": "ok",
  "result": {
    "product": {
      "categoryNamePath": "Shoes > Men > Athletic > Running",
      "categoryId": 17538,
      "mpid": "63cacc09b488410ce6b4e4493e565a82",
      "categoryName": "Running",
      "tags": [],
      "upcs": [
        "00889130025677"
      ],
      "brandName": "Adidas",
      "attributes": {
        "archtype": [
          "neutral"
        ],
        "usage": [
          "comfort"
        ],
        "uppermaterial": [
          "mesh"
        ],
        "sports": [
          "running"
        ],
        "insolematerial": [
          "synthetic"
        ],
        "outsolematerial": [
          "synthetic"
        ],
        "material": [
          "fabric",
          "synthetic"
        ]
      },
      "minSalePrice": 24.07,
      "stores": {
        "21": {
          "storeId": 21,
          "offers": [
            {
              "breadCrumbs": "Home > Athletic > adidas",
              "sku": "",
              "refurbishedOffers": 0,
              "priceHistoryAvailable": true,
              "salesRank": 0,
              "productUrl": "http://www.dsw.com/shoe/adidas+galactic+elite+lightweight+running+shoe+-+mens?prodId=361879",
              "userRatings": 0,
              "maxRating": 0,
              "tags": [],
              "addOnItem": false,
              "availability": "IN_STOCK",
              "upcs": [
                "00889130025677"
              ],
              "avgRating": 0,
              "attributes": {
                "archtype": [
                  "neutral"
                ],
                "material": [
                  "synthetic"
                ],
                "sports": [
                  "running"
                ],
                "usage": [
                  "comfort"
                ]
              },
              "shippingText": "",
              "fulfilledBy": "",
              "pid": "fcdc5b9535f52cf3ec1152a0a837d089",
              "privateAttributes": {},
              "mpns": [],
              "newOffers": 0,
              "listPrice": 55,
              "buyBoxWinner": false,
              "additionalImageUrls": [
                "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_01?scl=23.80952380952381&qlt=70&fmt=jpeg&wid=63&hei=62&op_sharpen=1",
                "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_05?scl=25.862068965517242&qlt=70&fmt=jpeg&wid=58&hei=62&op_sharpen=1",
                "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_02?scl=25.862068965517242&qlt=70&fmt=jpeg&wid=58&hei=62&op_sharpen=1",
                "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_04?scl=25.862068965517242&qlt=70&fmt=jpeg&wid=58&hei=62&op_sharpen=1",
                "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_03?scl=25.862068965517242&qlt=70&fmt=jpeg&wid=58&hei=62&op_sharpen=1",
                "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_07?scl=25.862068965517242&qlt=70&fmt=jpeg&wid=58&hei=62&op_sharpen=1",
                "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_06?scl=25.862068965517242&qlt=70&fmt=jpeg&wid=58&hei=62&op_sharpen=1"
              ],
              "facetAttributes": {},
              "salePrice": 49.95,
              "cartPrice": false,
              "lastRecordedAt": 1470488296625,
              "imageUrl": "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_01?wid=240&hei=240&op_sharpen=1",
              "usedOffers": 0,
              "seller": "",
              "brandText": "Adidas"
            },
            {
              "breadCrumbs": "Home > Athletic",
              "sku": "361879",
              "refurbishedOffers": 0,
              "priceHistoryAvailable": true,
              "salesRank": 0,
              "productUrl": "http://www.dsw.com/shoe/adidas+galactic+elite+lightweight+running+shoe?prodId=361879",
              "userRatings": 0,
              "maxRating": 0,
              "tags": [],
              "addOnItem": false,
              "availability": "IN_STOCK",
              "upcs": [],
              "avgRating": 0,
              "attributes": {
                "sports": [
                  "running"
                ]
              },
              "shippingText": "",
              "fulfilledBy": "",
              "pid": "63cacc09b488410ce6b4e4493e565a82",
              "privateAttributes": {},
              "mpns": [],
              "newOffers": 0,
              "listPrice": 55,
              "buyBoxWinner": false,
              "additionalImageUrls": [],
              "facetAttributes": {},
              "salePrice": 49.95,
              "cartPrice": false,
              "lastRecordedAt": 1470919414616,
              "imageUrl": "http://s7d2.scene7.com/is/image/DSWShoes/361879_100_ss_01?$search$",
              "usedOffers": 0,
              "seller": "",
              "brandText": "Adidas"
            }
          ],
          "storeName": "DSW",
          "title": "adidas Galactic Elite Lightweight Running Shoe"
        },
...Truncated for brevity

Enjoy building out your app and let us know if you have more questions! We’re here to help.

  Download the Pervasive Commerce White Paper
Get API Walk-Through

Leave a Reply

Your email address will not be published. Required fields are marked *