Get Product Details - citiesocial/citiesocial-api-doc GitHub Wiki

Get Product Details

Returns data of a single product in JSON format.

  • URL

    /products/{{ product-id }}/

  • Method:

    GET

  • URL Params

    None

  • Data Params

    None

  • Success Response:

    • Code: 200
      Content: 如下方 Sample Successful Response 所示
  • Error Response:

    • Code: 400 BAD REQUEST
      Content: invalid value: ...

    OR

    • Code: 401 UNAUTHORIZED
      Content: Unauthorized access
  • Sample Successful Response:

單一規格商品

{
    "product": {
        "id": 9809129938,
        "title": "壽喜燒圓鍋",
        "handle": "product-7953",
        "tags": "__cp_5231, __cp_5718, __mc_778, __proposed_17732",
        "brand": "IWATANI",
        "published_at": "2017-06-29T09:47:49+08:00",
        "compare_at_price": 1500,
        "price": 1190,
        "cover_image_url": "https://cdn.shopify.com/s/files/1/0254/0393/products/iwatani_001-20.jpg?v=1502706964",
        "total_inventory_quantity": 70,
        "variants": [
            {
                "title": "Default Title",
                "inventory_quantity": 70,
                "id": 36698431250,
                "option2": null,
                "option3": null,
                "option1": "Default Title"
            }
        ],
        "images": [
            "https://cdn.shopify.com/s/files/1/0254/0393/products/iwatani_001-20.jpg?v=1502706964",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/a_9_ff9f55c0-c30c-4f3e-a488-6cc9df5074a6.jpg?v=1499164878",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/a_10.jpg?v=1499164878"
        ],
        "descriptions": {
            "introduction": "<div>\n <div>\n  示意圖,本商品僅售烤盤部份,不包括食材及爐具。\n  <br/>\n </div>\n <div>\n  <img src=\"https://cdn.shopify.com/s/files/1/0872/8600/products/a_18.jpg?v=1499205214\" style=\"width: 500px;\">\n   <br/>\n  </img>\n </div>\n</div>\n",
            "specifications": "<div>\n <div>\n  產地:中國\n  <br/>\n  保固:無\n  <br/>\n  材質:鋁合金+鐵氟龍塗層\n  <br/>\n  尺寸:26*21*6.1CM\n  <br/>\n  重量:480g\n  <br/>\n  內容物:鍋子x1\n </div>\n</div>\n",
            "notice": "<div>\n <div>\n  適用於岩谷系列卡式瓦斯爐\n  <br/>\n </div>\n</div>\n",
            "features": "<div>\n <ul>\n  <li>\n   岩谷卡式爐專用\n  </li>\n  <li>\n   隨時都可以吃到專屬小火鍋\n  </li>\n  <li>\n   輕巧、不沾好清洗\n  </li>\n </ul>\n</div>\n",
            "instructions": ""
        }
    }
}

多規格商品

{
    "product": {
        "id": 10699168914,
        "title": "色票保溫隨行杯",
        "handle": "product-9159",
        "tags": "__cp_5865, __mc_393, __proposed_21523",
        "brand": "PantoneUniverse",
        "published_at": "2017-10-02T09:45:57+08:00",
        "compare_at_price": 1290,
        "price": 1290,
        "cover_image_url": "https://cdn.shopify.com/s/files/1/0254/0393/products/Pantone_41.jpg?v=1506307469",
        "total_inventory_quantity": 424,
        "variants": [
            {
                "title": "",
                "inventory_quantity": 40,
                "id": 44831571218,
                "option2": null,
                "option3": null,
                "option1": ""
            },
            {
                "title": "",
                "inventory_quantity": 78,
                "id": 44831571346,
                "option2": null,
                "option3": null,
                "option1": ""
            },
            {
                "title": "",
                "inventory_quantity": 39,
                "id": 44831571474,
                "option2": null,
                "option3": null,
                "option1": ""
            },
            {
                "title": "",
                "inventory_quantity": 39,
                "id": 44831571538,
                "option2": null,
                "option3": null,
                "option1": ""
            },
            {
                "title": "",
                "inventory_quantity": 76,
                "id": 44831571666,
                "option2": null,
                "option3": null,
                "option1": ""
            },
            {
                "title": "",
                "inventory_quantity": 37,
                "id": 44831571794,
                "option2": null,
                "option3": null,
                "option1": ""
            },
            {
                "title": "",
                "inventory_quantity": 75,
                "id": 44831571922,
                "option2": null,
                "option3": null,
                "option1": ""
            },
            {
                "title": "",
                "inventory_quantity": 40,
                "id": 44831571986,
                "option2": null,
                "option3": null,
                "option1": ""
            }
        ],
        "images": [
            "https://cdn.shopify.com/s/files/1/0254/0393/products/Pantone_41.jpg?v=1506307469",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/10110_To_go_cup_Yellow_012.jpg?v=1506307469",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/10110_To_go_cup_Red_2035.jpg?v=1506307469",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/10110_To_go_cup_Pink_182.jpg?v=1506307469",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/10110_To_go_cup_Bordeaux_229.jpg?v=1506307469",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/10110_To_go_cup_Blue_2150.jpg?v=1506307469",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/10110_To_go_cup_Green_15-0343.jpg?v=1506307469",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/10110_To_go_cup_Cool_Gray_9.jpg?v=1506307469",
            "https://cdn.shopify.com/s/files/1/0254/0393/products/10110_To_go_cup_Black_419.jpg?v=1506307469"
        ],
        "descriptions": {
            "introduction": "<div>\n <div>\n  <div>\n   <div>\n    <iframe class=\"note-video-clip\" frameborder=\"0\" height=\"281\" src=\"//www.youtube.com/embed/Ro1Bi4ZiBT0\" width=\"500\">\n    </iframe>\n    <br/>\n   </div>\n  </div>\n </div>\n <br/>\n <div>\n  2017 Pantone的明星商品~色票隨行保溫杯,圓潤、豐腴的身形、搭配金屬質感的色票,加上可愛又方便旋開的上蓋,給人設計感十足的印象。\n </div>\n <div>\n  <br/>\n </div>\n <div>\n  杯蓋的兩段式設計,是這款商品的最大特色!兩段旋蓋設計,不用將蓋子全部轉開,只需要將發條形狀的旋鈕轉開,就可以喝到飲品 。同時下杯蓋可以緊密旋上,保護飲品不外漏,方便攜帶。杯蓋下方巧妙地加上了濾茶孔,可以濾茶包、濾冰塊,喝得到茶的香味,但不會嚐到茶葉的苦澀口感;喝得到冰涼的飲料但不會與冰塊親密接觸、造成不舒服的感覺。可提供約3~4小時的保冰保溫功能。\n </div>\n <div>\n  <br/>\n  <div>\n   早晨的熱咖啡是開啟美好一天的精神食糧,但是,有多少人能在家裡悠閒吃完早餐、喝完咖啡再去上班?\r\n\r\n睡眠時間不夠,只能到7-11買個飯糰配咖啡進公司邊上班邊吃早餐。外帶咖啡的紙杯無法回收,只能進焚化爐、無法耐熱超過90度,塑膠蓋就口就會散發毒素,怎麼辦?自已攜帶咖啡杯即可!不僅環保愛地球、避免熱氣與紙杯或塑膠蓋接觸產生有毒物質、還可以有折價優惠,3種好處,一次到位。\n  </div>\n  <div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    <img src=\"https://cdn.shopify.com/s/files/1/0872/8600/products/Pantone_41.jpg?v=1507498852\" style=\"width: 500px;\">\n     <br/>\n    </img>\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    430ML的容量,足夠盛裝7-11裡360ML的中杯熱美式/拿鐵,剛好符合您早餐咖啡因的需求。\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    顏色選擇多元:\n   </div>\n   <div>\n    15-0343草綠為今年(2017)Pantone選擇的年度代表色,寧靜、舒適又帶有朝氣\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    <img src=\"https://cdn.shopify.com/s/files/1/0872/8600/products/Pantone_22_e3e9bf8a-be36-4c7f-98ae-6ea43be5ae24.jpg?v=1507498855\" style=\"width: 500px;\"/>\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    如同兒童細緻,白裡透紅的粉紅色,是不是讓您少女心大噴發呢?\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    黃色精神、有朝氣\n   </div>\n   <div>\n    紅色熱情有活力\n   </div>\n   <div>\n    紫色神密\n   </div>\n   <div>\n    藍色涼爽、冷靜\n    <br/>\n   </div>\n   <div>\n    鐵灰給人中性、沉穩之感\n   </div>\n   <div>\n    黑色百搭、酷炫\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    <img src=\"https://cdn.shopify.com/s/files/1/0872/8600/products/E9_9A_A8_E8_A1_8C_E6_9D_AF9_E5_85_AC_E6_A0_BC.jpg?v=1507498859\" style=\"width: 500px;\">\n     <br/>\n    </img>\n   </div>\n   <div>\n    通過SGS最嚴格的檢測\n   </div>\n   <br/>\n   <div>\n    <img src=\"https://cdn.shopify.com/s/files/1/0872/8600/products/sgs_4d26f7f2-f2f8-4918-ba18-8925e7622813.jpg?v=1507498862\" style=\"width: 500px;\">\n     <br/>\n    </img>\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    <br/>\n   </div>\n   <div>\n    <br/>\n   </div>\n  </div>\n </div>\n</div>\n",
            "specifications": "<div>\n <div>\n  產地:中國\n  <br/>\n  保固:N/A\n  <br/>\n  材質:304不鏽鋼、矽膠防漏圈、PP蓋\n  <br/>\n  尺寸:直徑7.5x高16.4CM\n </div>\n <div>\n  容量:430ML\n  <br/>\n  重量:275G\n  <br/>\n  內容物:咖啡隨行杯1只\n </div>\n</div>\n",
            "notice": "<div>\n <div>\n  請注意:\n </div>\n <div>\n  洗滌方式:手洗(不能進洗碗機)\n </div>\n <div>\n  不得放進微波爐\n </div>\n</div>\n",
            "features": "<div>\n <ul>\n  <li>\n   兩段式開蓋設計,不需開蓋即可飲用\n  </li>\n  <li>\n   上蓋內含濾茶孔,濾茶濾冰塊皆可\n  </li>\n  <li>\n   內膽使用304不鏽鋼,保溫保冰都適用\n  </li>\n  <li>\n   來自丹麥,通過歐盟嚴格食安檢驗\n  </li>\n  <li>\n   8款迷人色票時尚好搭配\n  </li>\n </ul>\n</div>\n",
            "instructions": ""
        }
    }
}
⚠️ **GitHub.com Fallback** ⚠️