---
title: "อีคอมเมิร์ซ Douyin ข้อมูล SKU ของสินค้า API (V2)"
description: "ค้นหาข้อมูล SKU สำหรับสินค้า E-commerce Douyin (TikTok China) โดยใช้ ID ของสินค้า จะคืนค่า 202 หากสินค้าไม่ได้รับการสนับสนุน。"
lastUpdated: false
aiUsagePrompt: true
---

# อีคอมเมิร์ซ Douyin ข้อมูล SKU ของสินค้า API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin-ec/get-item-sku-info/v2\"")'
  :summary='JSON.parse("\"ข้อมูล SKU ของสินค้า (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-e-commerce/product-sku-info-v2-th.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"โทเค็นการเข้าถึงสำหรับบริการ API นี้\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"itemId\",\"in\":\"query\",\"description\":\"ID ตัวตนของสินค้าใน Douyin E-commerce\",\"required\":true,\"schema\":{\"type\":\"string\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"description\":\"ข้อมูลสินค้าและ SKU ของ Douyin E-Commerce ที่ส่งกลับมาโดย V2. สินค้าที่ไม่มีอยู่อาจส่งข้อความโดยไม่มีฟิลด์สินค้า. อาจมีฟิลด์อื่นๆ ด้วย.\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"ID ของสินค้าอีคอมเมิร์ซของ Douyin ซึ่งส่งกลับมาในรูปแบบสตริง\"},\"name\":{\"type\":\"string\",\"description\":\"ชื่อเรื่องของสินค้า.\"},\"description\":{\"type\":\"string\",\"description\":\"ข้อความคำอธิบายสินค้า อาจเป็นสตริงว่างได้\"},\"mainImg\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพสินค้าหลัก\"},\"salePrice\":{\"type\":\"integer\",\"description\":\"ค่าตัวเลขราคาขายระดับสินค้า ผลลัพธ์ไม่ระบุหน่วยเงิน\"},\"originalPrice\":{\"type\":\"integer\",\"description\":\"ค่าตัวเลขราคาปกติของสินค้า ผลลัพธ์ไม่ระบุหน่วยเงิน\"},\"price_verified\":{\"type\":\"integer\",\"description\":\"ค่าที่รายงานในฟิลด์ verified-price. คำตอบไม่ระบุหน่วยเงิน.\"},\"sellNum\":{\"type\":\"integer\",\"description\":\"จำนวนการขายของสินค้า ผลลัพธ์ไม่ระบุช่วงเวลา\"},\"sell_num_verified\":{\"type\":\"integer\",\"description\":\"ปริมาณการขายที่รายงานในฟิลด์ verified-sales. คำตอบไม่ระบุช่วงเวลาการวัด.\"},\"shopId\":{\"type\":\"integer\",\"description\":\"ID ของรายการสินค้าที่แสดงสินค้านั้น\"},\"skus\":{\"type\":\"array\",\"description\":\"ตัวเลือก SKU สำหรับสินค้า。\",\"items\":{\"type\":\"object\",\"description\":\"ตัวเลือก SKU หนึ่งตัว。\",\"properties\":{\"id\":{\"type\":\"integer\",\"description\":\"ID ของตัวเลือกย่อยของ SKU\"},\"shopId\":{\"type\":\"integer\",\"description\":\"ID ของร้านค้าที่แสดง SKU\"},\"productId\":{\"type\":\"string\",\"description\":\"ID ของสินค้าหลัก ซึ่งส่งกลับมาในรูปแบบสตริง\"},\"price\":{\"type\":\"integer\",\"description\":\"ราคาขายสำหรับ SKU นี้ คำตอบไม่ระบุหน่วยเงิน\"},\"dealPrice\":{\"type\":\"integer\",\"description\":\"ราคาซื้อที่รายงานสำหรับ SKU นี้. คำตอบไม่ระบุหน่วยเงิน.\"},\"type\":{\"type\":\"integer\",\"description\":\"รหัสประเภท SKU ที่แพลตฟอร์มส่งกลับมา\"},\"salePropertyValues\":{\"type\":\"array\",\"description\":\"ค่าสั่งซื้อที่เลือกสำหรับ SKU นี้\",\"items\":{\"type\":\"object\",\"description\":\"ค่าสั่งซื้อที่เลือกหนึ่งตัวและค่าเฉพาะของมัน\",\"properties\":{\"seq\":{\"type\":\"integer\",\"description\":\"ค่าลำดับของค่าสั่งซื้อนี้\"},\"pairId\":{\"type\":\"integer\",\"description\":\"ตัวระบุของค่าสั่งซื้อและค่าเฉพาะ\"},\"pic\":{\"type\":\"string\",\"description\":\"URL ของรูปภาพสำหรับตัวเลือกนี้ ซึ่งสามารถเป็นสตริงว่างได้\"},\"property\":{\"type\":\"object\",\"description\":\"ค่าสั่งซื้อ\",\"properties\":{\"PropertyId\":{\"type\":\"integer\",\"description\":\"ID ของค่าสั่งซื้อ\"},\"PropertyName\":{\"type\":\"string\",\"description\":\"ชื่อของค่าสั่งซื้อ\"},\"SpecType\":{\"type\":\"integer\",\"description\":\"รหัสประเภทของค่าสั่งซื้อที่แพลตฟอร์มส่งกลับมา\"}}},\"value\":{\"type\":\"object\",\"description\":\"ค่าเฉพาะที่เลือกสำหรับค่าสั่งซื้อนี้\",\"properties\":{\"ValueName\":{\"type\":\"string\",\"description\":\"ชื่อของค่าที่เลือก\"},\"DisplayValueName\":{\"type\":\"string\",\"description\":\"ชื่อที่แสดงของค่าที่เลือก\"}}}}}}}}},\"category\":{\"type\":\"object\",\"description\":\"ระดับหมวดหมู่ของสินค้า\",\"properties\":{\"firstCid\":{\"type\":\"integer\",\"description\":\"ID ของหมวดหมู่ระดับแรก\"},\"firstCName\":{\"type\":\"string\",\"description\":\"ชื่อของหมวดหมู่ระดับแรก\"},\"secondCid\":{\"type\":\"integer\",\"description\":\"ID ของหมวดหมู่ระดับที่สอง\"},\"secondCName\":{\"type\":\"string\",\"description\":\"ชื่อของหมวดหมู่ระดับที่สอง\"},\"thirdCid\":{\"type\":\"integer\",\"description\":\"ID ของหมวดหมู่ระดับสาม.\"},\"thirdCName\":{\"type\":\"string\",\"description\":\"ชื่อของหมวดหมู่ระดับสาม.\"},\"fourthCid\":{\"type\":\"integer\",\"description\":\"ID ของหมวดหมู่ระดับสี่.\"},\"fourthCName\":{\"type\":\"string\",\"description\":\"ชื่อของหมวดหมู่ระดับสี่.\"}}},\"detail_info\":{\"type\":\"object\",\"description\":\"ข้อมูลเพิ่มเติมเกี่ยวกับสินค้า ภาพ และค่าสั่งซื้อ\",\"properties\":{\"detail_imgs\":{\"type\":\"array\",\"description\":\"ภาพที่ส่งกลับมาในส่วนรายละเอียดสินค้า\",\"items\":{\"type\":\"object\",\"description\":\"ภาพรายละเอียดสินค้าหนึ่งภาพ\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"URI ของแหล่งข้อมูลรูปภาพที่แพลตฟอร์มส่งกลับมา\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่สามารถใช้งานได้สำหรับภาพ.\",\"items\":{\"type\":\"string\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"}}}},\"detail_imgs_new\":{\"type\":\"array\",\"description\":\"ข้อมูลภาพรายละเอียดของสินค้าพร้อมประเภทของภาพ.\",\"items\":{\"type\":\"object\",\"description\":\"ข้อมูลภาพรายละเอียดของสินค้าหนึ่งรายการ.\",\"properties\":{\"image\":{\"type\":\"object\",\"description\":\"ทรัพยากรภาพสำหรับรายการนั้น.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"URI ของแหล่งข้อมูลรูปภาพที่แพลตฟอร์มส่งกลับมา\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่สามารถใช้งานได้สำหรับภาพ.\",\"items\":{\"type\":\"string\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"}}},\"pic_type\":{\"type\":\"string\",\"description\":\"ค่าประเภทของภาพที่แพลตฟอร์มส่งกลับมา.\"}}}},\"title_image\":{\"type\":\"object\",\"description\":\"ภาพที่ส่งกลับมาเพื่อหัวข้อรายละเอียดของสินค้า.\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"URI ของแหล่งข้อมูลรูปภาพที่แพลตฟอร์มส่งกลับมา\"},\"url_list\":{\"type\":\"array\",\"description\":\"URL ที่สามารถใช้งานได้สำหรับภาพ.\",\"items\":{\"type\":\"string\"}},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของภาพในพิกเซล\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของภาพในพิกเซล\"}}},\"product_format\":{\"type\":\"array\",\"description\":\"กลุ่มของข้อมูลรายละเอียดของสินค้า.\",\"items\":{\"type\":\"object\",\"description\":\"กลุ่มรายละเอียดของสินค้าหนึ่งกลุ่ม.\",\"properties\":{\"format\":{\"type\":\"array\",\"description\":\"ข้อมูลรายละเอียดของสินค้าในกลุ่มนี้.\",\"items\":{\"type\":\"object\",\"description\":\"รายละเอียดของสินค้าหนึ่งรายการ.\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"ชื่อของรายละเอียดของสินค้า.\"},\"property_id\":{\"type\":\"string\",\"description\":\"ID ของรายละเอียดของสินค้า ซึ่งส่งกลับมาในรูปแบบสตริง.\"},\"message\":{\"type\":\"array\",\"description\":\"ค่าที่แสดงสำหรับรายละเอียดของสินค้านี้.\",\"items\":{\"type\":\"object\",\"description\":\"ค่าแสดงหนึ่งค่าของรายละเอียดของสินค้า.\",\"properties\":{\"desc\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงของค่าที่รายละเอียดของสินค้า.\"}}}}}}}}}},\"jump_url\":{\"type\":\"string\",\"description\":\"ลิงก์การนำทางสำหรับการดูรายละเอียดของสินค้า. ลิงก์สามารถใช้รูปแบบเฉพาะของแอปพลิเคชันได้.\"},\"detail_config\":{\"type\":\"array\",\"description\":\"หัวข้อที่มีให้ในรายละเอียดผลิตภัณฑ์\",\"items\":{\"type\":\"object\",\"description\":\"หัวข้อรายละเอียดผลิตภัณฑ์หนึ่งหัวข้อ\",\"properties\":{\"main_title\":{\"type\":\"string\",\"description\":\"ชื่อของหัวข้อนี้\"},\"main_content\":{\"type\":\"array\",\"description\":\"ข้อความในรายการที่แสดงในหัวข้อนี้\",\"items\":{\"type\":\"object\",\"description\":\"ข้อความหนึ่งในรายละเอียดผลิตภัณฑ์\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"ชื่อของข้อความในรายการนี้\"},\"content\":{\"type\":\"array\",\"description\":\"บรรทัดข้อความในข้อความในรายการนี้\",\"items\":{\"type\":\"string\"}},\"links\":{\"type\":\"array\",\"description\":\"ลิงก์ที่เกี่ยวข้องกับข้อความในรายการนี้\",\"items\":{\"type\":\"object\",\"description\":\"ลิงก์หนึ่งที่เกี่ยวข้องกับข้อความ\",\"properties\":{\"key\":{\"type\":\"string\",\"description\":\"ชื่อสำคัญที่ระบุลิงก์ในข้อความ\"},\"link\":{\"type\":\"string\",\"description\":\"เป้าหมายของลิงก์ ซึ่งอาจใช้รูปแบบเฉพาะของแอปพลิเคชัน\"}}}}}}}}}}}},\"promotion_h5\":{\"type\":\"object\",\"description\":\"รายละเอียดที่เลือกใช้เพื่อแสดงผลิตภัณฑ์บนหน้าเว็บมือถือ\",\"properties\":{\"basic_info_data\":{\"type\":\"object\",\"description\":\"ชื่อผลิตภัณฑ์และราคาที่แสดงบนหน้า\",\"properties\":{\"product_id\":{\"type\":\"string\",\"description\":\"ID ของผลิตภัณฑ์ที่หน้าใช้ ถูกส่งกลับมาในรูปแบบสตริง\"},\"title_info\":{\"type\":\"object\",\"description\":\"ชื่อผลิตภัณฑ์ที่แสดงบนหน้า\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"ชื่อที่ใช้แสดงผล\"}}},\"price_info\":{\"type\":\"object\",\"description\":\"ข้อความและรูปแบบการแสดงราคาที่แสดงบนหน้า\",\"properties\":{\"price\":{\"type\":\"object\",\"description\":\"การแสดงราคาหลัก\",\"properties\":{\"min_price\":{\"type\":\"string\",\"description\":\"ราคาขั้นต่ำที่แสดง ถูกส่งกลับมาในรูปแบบข้อความ\"},\"suffix\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงหลังจากราคาเมื่อมีการกำหนด\"}}},\"discount_price\":{\"type\":\"object\",\"description\":\"การแสดงราคาพิเศษเมื่อมีการกำหนด\",\"properties\":{\"min_price\":{\"type\":\"string\",\"description\":\"ราคาพิเศษขั้นต่ำที่แสดง ถูกส่งกลับมาในรูปแบบข้อความ\"},\"prefix\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงก่อนราคาพิเศษ\"},\"suffix\":{\"type\":\"string\",\"description\":\"ข้อความที่แสดงหลังจากราคาพิเศษ\"}}}}}}},\"head_figure_data\":{\"type\":\"object\",\"description\":\"ภาพที่แสดงอยู่ด้านบนของหน้าผลิตภัณฑ์\",\"properties\":{\"media_list\":{\"type\":\"array\",\"description\":\"กลุ่มของสื่อหัวข้อหน้าผลิตภัณฑ์\",\"items\":{\"type\":\"object\",\"description\":\"กลุ่มหนึ่งของสื่อผลิตภัณฑ์\",\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"ชื่อที่ปรากฏสำหรับกลุ่มสื่อนี้\"},\"type\":{\"type\":\"string\",\"description\":\"ค่าประเภทสำหรับกลุ่มสื่อนี้\"},\"content_list\":{\"type\":\"array\",\"description\":\"ข้อมูลสื่อในกลุ่มนี้\",\"items\":{\"type\":\"object\",\"description\":\"ข้อมูลสื่อหัวข้อหนึ่ง\",\"properties\":{\"url\":{\"type\":\"string\",\"description\":\"URL ของสื่อเมื่อมี\"},\"cover_url\":{\"type\":\"string\",\"description\":\"URL ของรูปปกเมื่อมี\"},\"height\":{\"type\":\"integer\",\"description\":\"ความสูงของสื่อในพิกเซล\"},\"width\":{\"type\":\"integer\",\"description\":\"ความกว้างของสื่อในพิกเซล\"}}}}}}}}},\"shop_info\":{\"type\":\"object\",\"description\":\"ข้อมูลร้านค้าที่แสดงบนหน้าผลิตภัณฑ์\",\"properties\":{\"basic_info\":{\"type\":\"object\",\"description\":\"ข้อมูลโปรไฟล์ของร้านค้าที่แสดงผลิตภัณฑ์นี้\",\"properties\":{\"shop_name\":{\"type\":\"string\",\"description\":\"ชื่อที่แสดงของร้านค้า\"},\"shop_logo\":{\"type\":\"string\",\"description\":\"URL ของโลโก้ร้านค้า\"},\"account_url\":{\"type\":\"string\",\"description\":\"ลิงก์ไปยังบัญชีร้านค้า ลิงก์นี้สามารถใช้รูปแบบเฉพาะของแอปพลิเคชันได้\"},\"grade_info\":{\"type\":\"object\",\"description\":\"ดัชนีความพึงพอใจของร้านค้าที่แสดงบนหน้าสินค้า.\",\"properties\":{\"score\":{\"type\":\"number\",\"description\":\"ดัชนีที่แสดงเป็นตัวเลขสำหรับร้านค้า\"}}}}}}}}},\"message\":{\"type\":\"string\",\"description\":\"ข้อความแจ้งว่า “สินค้าไม่มีอยู่” การตอบกลับที่ประสบความสำเร็จอาจมีเพียงฟิลด์นี้เท่านั้น โดยมีค่า `商品不存在`.\"}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"พารามิเตอร์หรือเนื้อหาของคำขอที่ไม่ถูกต้อง\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"ท่อนำข้อมูลหรือ access token ที่ไม่ถูกต้องหรือไม่มีการใช้งาน\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"การอนุญาตถูกปฏิเสธ\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"อัตราการขอหรือจำนวนคำสั่งที่จำกัดในแต่ละวันถูกเกิน\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"ความผิดพลาดของเซิร์ฟเวอร์ภายใน\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"บริการไม่สามารถใช้งานได้ในขณะนี้\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"API สำหรับการผลิตทั่วโลก (ค่าเริ่มต้น)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/douyin-ec/get-item-sku-info/v2\"")' />

<p>ค้นหาข้อมูล SKU สำหรับสินค้า E-commerce Douyin (TikTok China) โดยใช้ ID ของสินค้า จะคืนค่า 202 หากสินค้าไม่ได้รับการสนับสนุน。</p>

## สิ่งที่น่าสนใจ

::: warning คำแนะนำ
<p>ข้อมูล SKU ที่ส่งคืนโดยเวอร์ชันนี้อาจไม่ครบถ้วน และบางผลิตภัณฑ์ไม่ได้รับการสนับสนุน ผลิตภัณฑ์ที่ไม่ได้รับการสนับสนุนจะส่งคืนผลลัพธ์เป็น 202</p>
:::

## พารามิเตอร์

<div class="api-doc-table api-doc-table--params">

| ชื่อ | ตำแหน่ง | ชนิดข้อมูล | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | ใช่ | - | โทเค็นการเข้าถึงสำหรับบริการ API นี้ |
| <code>itemId</code> | query | <code>string</code> | ใช่ | - | ID ตัวตนของสินค้าใน Douyin E-commerce |

</div>

## ตัวอย่างโค้ด

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin-ec/get-item-sku-info/v2?token=YOUR_API_KEY&itemId=VALUE'
```

```text [🤖 คำแนะนำสำหรับ AI]
ฉันต้องการใช้ API "ข้อมูล SKU ของสินค้า (V2)" จาก JustOneAPI.
URL หลัก: https://api.justoneapi.com.
เส้นทาง API: /api/douyin-ec/get-item-sku-info/v2?token=YOUR_API_KEY&itemId=VALUE
เอนด์พอยต์ API: BASE_URL + /api/douyin-ec/get-item-sku-info/v2?token=YOUR_API_KEY&itemId=VALUE
เมธอด HTTP: GET
การยืนยันตัวตน: เพิ่มพารามิเตอร์ "token" เข้าไปใน URL.
คำนิยาม OpenAPI: https://docs.justoneapi.com/openapi/douyin-e-commerce/product-sku-info-v2-th.json

พารามิเตอร์:
- token (query): โทเค็นการเข้าถึงสำหรับบริการ API นี้ (จำเป็น)
- itemId (query): ID ตัวตนของสินค้าใน Douyin E-commerce (จำเป็น)

รูปแบบที่ส่งกลับ: จัดการ JSON หรือข้อความอย่างปลอดภัยตามค่า Content-Type ที่ได้รับจริง

การจัดการผลตอบกลับและรหัสข้อผิดพลาด:
1. ตรวจสอบผลการทำงานจากฟิลด์ "code" ในผลตอบกลับ (รหัส 0 หมายถึงสำเร็จ)
2. แนะนำให้ตั้งระยะเวลารอ 120 วินาที หาก 120 วินาทีนานเกินไป ให้ตั้งอย่างน้อย 60 วินาที แต่คำขอบางรายการอาจหมดเวลาก่อนได้รับผลลัพธ์
3. รหัสผลลัพธ์:
   - 0: สำเร็จ
   - 100: โทเคนไม่ถูกต้องหรือถูกปิดใช้งาน
   - 301: ดึงข้อมูลไม่สำเร็จ โปรดลองอีกครั้ง
   - 302: เกินขีดจำกัดอัตราการเรียก
   - 303: ใช้โควตารายวันครบแล้ว
   - 400: พารามิเตอร์ไม่ถูกต้อง
   - 500: ข้อผิดพลาดภายในเซิร์ฟเวอร์
   - 600: ไม่มีสิทธิ์เข้าถึง
   - 601: ยอดเงินคงเหลือไม่เพียงพอ
   - 602: ถึงวงเงินของโทเคนแล้ว
4. รหัส 601 หมายถึงยอดเงินที่ใช้ร่วมกันของบัญชีไม่เพียงพอ รหัส 602 หมายถึงโทเคน API ถึงวงเงินสะสมของตนเองแล้ว การกำหนดวงเงินโทเคนจะไม่โอนเงินออกจากยอดเงินที่ใช้ร่วมกันของบัญชี

กรุณาช่วยเขียนสคริปต์ในภาษาโปรแกรมที่ฉันชื่นชอบเพื่อเรียกใช้ API และจัดการการตอบกลับ.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # ให้โดยเซิร์ฟเวอร์ OpenAPI

url = BASE_URL + "/api/douyin-ec/get-item-sku-info/v2?token=YOUR_API_KEY&itemId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
const url = BASE_URL + "/api/douyin-ec/get-item-sku-info/v2?token=YOUR_API_KEY&itemId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // ให้โดยเซิร์ฟเวอร์ OpenAPI
        final String url = BASE_URL + "/api/douyin-ec/get-item-sku-info/v2?token=YOUR_API_KEY&itemId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // ให้โดยเซิร์ฟเวอร์ OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/douyin-ec/get-item-sku-info/v2?token=YOUR_API_KEY&itemId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // ให้โดยเซิร์ฟเวอร์ OpenAPI
$url = $BASE_URL . '/api/douyin-ec/get-item-sku-info/v2?token=YOUR_API_KEY&itemId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/douyin-e-commerce/product-sku-info-v2-th.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[คำนิยาม OpenAPI (JSON)]</a>
</div>

## ฟิลด์ที่ได้รับการตอบกลับ

ฟิลด์สำคัญในผลการตอบกลับที่สำเร็จ (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| เส้นทางฟิลด์ | ชนิดข้อมูล | คำอธิบาย |
| --- | --- | --- |
| <code>data</code> | - | ข้อมูลสินค้าและ SKU ของ Douyin E-Commerce ที่ส่งกลับมาโดย V2. สินค้าที่ไม่มีอยู่อาจส่งข้อความโดยไม่มีฟิลด์สินค้า. อาจมีฟิลด์อื่นๆ ด้วย. |
| <code>data.id</code> | <code>string</code> | ID ของสินค้าอีคอมเมิร์ซของ Douyin ซึ่งส่งกลับมาในรูปแบบสตริง |
| <code>data.name</code> | <code>string</code> | ชื่อเรื่องของสินค้า. |
| <code>data.description</code> | <code>string</code> | ข้อความคำอธิบายสินค้า อาจเป็นสตริงว่างได้ |
| <code>data.mainImg</code> | <code>string</code> | URL ของรูปภาพสินค้าหลัก |
| <code>data.salePrice</code> | <code>integer</code> | ค่าตัวเลขราคาขายระดับสินค้า ผลลัพธ์ไม่ระบุหน่วยเงิน |
| <code>data.originalPrice</code> | <code>integer</code> | ค่าตัวเลขราคาปกติของสินค้า ผลลัพธ์ไม่ระบุหน่วยเงิน |
| <code>data.price_verified</code> | <code>integer</code> | ค่าที่รายงานในฟิลด์ verified-price. คำตอบไม่ระบุหน่วยเงิน. |
| <code>data.sellNum</code> | <code>integer</code> | จำนวนการขายของสินค้า ผลลัพธ์ไม่ระบุช่วงเวลา |
| <code>data.sell_num_verified</code> | <code>integer</code> | ปริมาณการขายที่รายงานในฟิลด์ verified-sales. คำตอบไม่ระบุช่วงเวลาการวัด. |
| <code>data.shopId</code> | <code>integer</code> | ID ของรายการสินค้าที่แสดงสินค้านั้น |
| <code>data.skus</code> | <code>array</code> | ตัวเลือก SKU สำหรับสินค้า。 |
| <code>data.skus[]</code> | <code>object</code> | ตัวเลือก SKU หนึ่งตัว。 |
| <code>data.skus[].id</code> | <code>integer</code> | ID ของตัวเลือกย่อยของ SKU |
| <code>data.skus[].shopId</code> | <code>integer</code> | ID ของร้านค้าที่แสดง SKU |
| <code>data.skus[].productId</code> | <code>string</code> | ID ของสินค้าหลัก ซึ่งส่งกลับมาในรูปแบบสตริง |
| <code>data.skus[].price</code> | <code>integer</code> | ราคาขายสำหรับ SKU นี้ คำตอบไม่ระบุหน่วยเงิน |
| <code>data.skus[].dealPrice</code> | <code>integer</code> | ราคาซื้อที่รายงานสำหรับ SKU นี้. คำตอบไม่ระบุหน่วยเงิน. |
| <code>data.skus[].type</code> | <code>integer</code> | รหัสประเภท SKU ที่แพลตฟอร์มส่งกลับมา |
| <code>data.skus[].salePropertyValues</code> | <code>array</code> | ค่าสั่งซื้อที่เลือกสำหรับ SKU นี้ |
| <code>data.skus[].salePropertyValues[]</code> | <code>object</code> | ค่าสั่งซื้อที่เลือกหนึ่งตัวและค่าเฉพาะของมัน |
| <code>data.skus[].salePropertyValues[].seq</code> | <code>integer</code> | ค่าลำดับของค่าสั่งซื้อนี้ |
| <code>data.skus[].salePropertyValues[].pairId</code> | <code>integer</code> | ตัวระบุของค่าสั่งซื้อและค่าเฉพาะ |
| <code>data.skus[].salePropertyValues[].pic</code> | <code>string</code> | URL ของรูปภาพสำหรับตัวเลือกนี้ ซึ่งสามารถเป็นสตริงว่างได้ |
| <code>data.skus[].salePropertyValues[].property</code> | <code>object</code> | ค่าสั่งซื้อ |
| <code>data.skus[].salePropertyValues[].property.PropertyId</code> | <code>integer</code> | ID ของค่าสั่งซื้อ |
| <code>data.skus[].salePropertyValues[].property.PropertyName</code> | <code>string</code> | ชื่อของค่าสั่งซื้อ |
| <code>data.skus[].salePropertyValues[].property.SpecType</code> | <code>integer</code> | รหัสประเภทของค่าสั่งซื้อที่แพลตฟอร์มส่งกลับมา |
| <code>data.skus[].salePropertyValues[].value</code> | <code>object</code> | ค่าเฉพาะที่เลือกสำหรับค่าสั่งซื้อนี้ |
| <code>data.skus[].salePropertyValues[].value.ValueName</code> | <code>string</code> | ชื่อของค่าที่เลือก |
| <code>data.skus[].salePropertyValues[].value.DisplayValueName</code> | <code>string</code> | ชื่อที่แสดงของค่าที่เลือก |
| <code>data.category</code> | <code>object</code> | ระดับหมวดหมู่ของสินค้า |
| <code>data.category.firstCid</code> | <code>integer</code> | ID ของหมวดหมู่ระดับแรก |
| <code>data.category.firstCName</code> | <code>string</code> | ชื่อของหมวดหมู่ระดับแรก |
| <code>data.category.secondCid</code> | <code>integer</code> | ID ของหมวดหมู่ระดับที่สอง |
| <code>data.category.secondCName</code> | <code>string</code> | ชื่อของหมวดหมู่ระดับที่สอง |
| <code>data.category.thirdCid</code> | <code>integer</code> | ID ของหมวดหมู่ระดับสาม. |
| <code>data.category.thirdCName</code> | <code>string</code> | ชื่อของหมวดหมู่ระดับสาม. |
| <code>data.category.fourthCid</code> | <code>integer</code> | ID ของหมวดหมู่ระดับสี่. |
| <code>data.category.fourthCName</code> | <code>string</code> | ชื่อของหมวดหมู่ระดับสี่. |
| <code>data.detail_info</code> | <code>object</code> | ข้อมูลเพิ่มเติมเกี่ยวกับสินค้า ภาพ และค่าสั่งซื้อ |
| <code>data.detail_info.detail_imgs</code> | <code>array</code> | ภาพที่ส่งกลับมาในส่วนรายละเอียดสินค้า |
| <code>data.detail_info.detail_imgs[]</code> | <code>object</code> | ภาพรายละเอียดสินค้าหนึ่งภาพ |
| <code>data.detail_info.detail_imgs[].uri</code> | <code>string</code> | URI ของแหล่งข้อมูลรูปภาพที่แพลตฟอร์มส่งกลับมา |
| <code>data.detail_info.detail_imgs[].url_list</code> | <code>array</code> | URL ที่สามารถใช้งานได้สำหรับภาพ. |
| <code>data.detail_info.detail_imgs[].url_list[]</code> | <code>string</code> | - |
| <code>data.detail_info.detail_imgs[].width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.detail_info.detail_imgs[].height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.detail_info.detail_imgs_new</code> | <code>array</code> | ข้อมูลภาพรายละเอียดของสินค้าพร้อมประเภทของภาพ. |
| <code>data.detail_info.detail_imgs_new[]</code> | <code>object</code> | ข้อมูลภาพรายละเอียดของสินค้าหนึ่งรายการ. |
| <code>data.detail_info.detail_imgs_new[].image</code> | <code>object</code> | ทรัพยากรภาพสำหรับรายการนั้น. |
| <code>data.detail_info.detail_imgs_new[].image.uri</code> | <code>string</code> | URI ของแหล่งข้อมูลรูปภาพที่แพลตฟอร์มส่งกลับมา |
| <code>data.detail_info.detail_imgs_new[].image.url_list</code> | <code>array</code> | URL ที่สามารถใช้งานได้สำหรับภาพ. |
| <code>data.detail_info.detail_imgs_new[].image.url_list[]</code> | <code>string</code> | - |
| <code>data.detail_info.detail_imgs_new[].image.width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.detail_info.detail_imgs_new[].image.height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.detail_info.detail_imgs_new[].pic_type</code> | <code>string</code> | ค่าประเภทของภาพที่แพลตฟอร์มส่งกลับมา. |
| <code>data.detail_info.title_image</code> | <code>object</code> | ภาพที่ส่งกลับมาเพื่อหัวข้อรายละเอียดของสินค้า. |
| <code>data.detail_info.title_image.uri</code> | <code>string</code> | URI ของแหล่งข้อมูลรูปภาพที่แพลตฟอร์มส่งกลับมา |
| <code>data.detail_info.title_image.url_list</code> | <code>array</code> | URL ที่สามารถใช้งานได้สำหรับภาพ. |
| <code>data.detail_info.title_image.url_list[]</code> | <code>string</code> | - |
| <code>data.detail_info.title_image.width</code> | <code>integer</code> | ความกว้างของภาพในพิกเซล |
| <code>data.detail_info.title_image.height</code> | <code>integer</code> | ความสูงของภาพในพิกเซล |
| <code>data.detail_info.product_format</code> | <code>array</code> | กลุ่มของข้อมูลรายละเอียดของสินค้า. |
| <code>data.detail_info.product_format[]</code> | <code>object</code> | กลุ่มรายละเอียดของสินค้าหนึ่งกลุ่ม. |
| <code>data.detail_info.product_format[].format</code> | <code>array</code> | ข้อมูลรายละเอียดของสินค้าในกลุ่มนี้. |
| <code>data.detail_info.product_format[].format[]</code> | <code>object</code> | รายละเอียดของสินค้าหนึ่งรายการ. |
| <code>data.detail_info.product_format[].format[].name</code> | <code>string</code> | ชื่อของรายละเอียดของสินค้า. |
| <code>data.detail_info.product_format[].format[].property_id</code> | <code>string</code> | ID ของรายละเอียดของสินค้า ซึ่งส่งกลับมาในรูปแบบสตริง. |
| <code>data.detail_info.product_format[].format[].message</code> | <code>array</code> | ค่าที่แสดงสำหรับรายละเอียดของสินค้านี้. |
| <code>data.detail_info.product_format[].format[].message[]</code> | <code>object</code> | ค่าแสดงหนึ่งค่าของรายละเอียดของสินค้า. |
| <code>data.detail_info.product_format[].format[].message[].desc</code> | <code>string</code> | ข้อความที่แสดงของค่าที่รายละเอียดของสินค้า. |
| <code>data.detail_info.jump_url</code> | <code>string</code> | ลิงก์การนำทางสำหรับการดูรายละเอียดของสินค้า. ลิงก์สามารถใช้รูปแบบเฉพาะของแอปพลิเคชันได้. |
| <code>data.detail_info.detail_config</code> | <code>array</code> | หัวข้อที่มีให้ในรายละเอียดผลิตภัณฑ์ |
| <code>data.detail_info.detail_config[]</code> | <code>object</code> | หัวข้อรายละเอียดผลิตภัณฑ์หนึ่งหัวข้อ |
| <code>data.detail_info.detail_config[].main_title</code> | <code>string</code> | ชื่อของหัวข้อนี้ |
| <code>data.detail_info.detail_config[].main_content</code> | <code>array</code> | ข้อความในรายการที่แสดงในหัวข้อนี้ |
| <code>data.detail_info.detail_config[].main_content[]</code> | <code>object</code> | ข้อความหนึ่งในรายละเอียดผลิตภัณฑ์ |
| <code>data.detail_info.detail_config[].main_content[].title</code> | <code>string</code> | ชื่อของข้อความในรายการนี้ |
| <code>data.detail_info.detail_config[].main_content[].content</code> | <code>array</code> | บรรทัดข้อความในข้อความในรายการนี้ |
| <code>data.detail_info.detail_config[].main_content[].content[]</code> | <code>string</code> | - |
| <code>data.detail_info.detail_config[].main_content[].links</code> | <code>array</code> | ลิงก์ที่เกี่ยวข้องกับข้อความในรายการนี้ |
| <code>data.detail_info.detail_config[].main_content[].links[]</code> | <code>object</code> | ลิงก์หนึ่งที่เกี่ยวข้องกับข้อความ |
| <code>data.detail_info.detail_config[].main_content[].links[].key</code> | <code>string</code> | ชื่อสำคัญที่ระบุลิงก์ในข้อความ |
| <code>data.detail_info.detail_config[].main_content[].links[].link</code> | <code>string</code> | เป้าหมายของลิงก์ ซึ่งอาจใช้รูปแบบเฉพาะของแอปพลิเคชัน |
| <code>data.promotion_h5</code> | <code>object</code> | รายละเอียดที่เลือกใช้เพื่อแสดงผลิตภัณฑ์บนหน้าเว็บมือถือ |
| <code>data.promotion_h5.basic_info_data</code> | <code>object</code> | ชื่อผลิตภัณฑ์และราคาที่แสดงบนหน้า |
| <code>data.promotion_h5.basic_info_data.product_id</code> | <code>string</code> | ID ของผลิตภัณฑ์ที่หน้าใช้ ถูกส่งกลับมาในรูปแบบสตริง |
| <code>data.promotion_h5.basic_info_data.title_info</code> | <code>object</code> | ชื่อผลิตภัณฑ์ที่แสดงบนหน้า |
| <code>data.promotion_h5.basic_info_data.title_info.title</code> | <code>string</code> | ชื่อที่ใช้แสดงผล |
| <code>data.promotion_h5.basic_info_data.price_info</code> | <code>object</code> | ข้อความและรูปแบบการแสดงราคาที่แสดงบนหน้า |
| <code>data.promotion_h5.basic_info_data.price_info.price</code> | <code>object</code> | การแสดงราคาหลัก |
| <code>data.promotion_h5.basic_info_data.price_info.price.min_price</code> | <code>string</code> | ราคาขั้นต่ำที่แสดง ถูกส่งกลับมาในรูปแบบข้อความ |
| <code>data.promotion_h5.basic_info_data.price_info.price.suffix</code> | <code>string</code> | ข้อความที่แสดงหลังจากราคาเมื่อมีการกำหนด |
| <code>data.promotion_h5.basic_info_data.price_info.discount_price</code> | <code>object</code> | การแสดงราคาพิเศษเมื่อมีการกำหนด |
| <code>data.promotion_h5.basic_info_data.price_info.discount_price.min_price</code> | <code>string</code> | ราคาพิเศษขั้นต่ำที่แสดง ถูกส่งกลับมาในรูปแบบข้อความ |
| <code>data.promotion_h5.basic_info_data.price_info.discount_price.prefix</code> | <code>string</code> | ข้อความที่แสดงก่อนราคาพิเศษ |
| <code>data.promotion_h5.basic_info_data.price_info.discount_price.suffix</code> | <code>string</code> | ข้อความที่แสดงหลังจากราคาพิเศษ |
| <code>data.promotion_h5.head_figure_data</code> | <code>object</code> | ภาพที่แสดงอยู่ด้านบนของหน้าผลิตภัณฑ์ |
| <code>data.promotion_h5.head_figure_data.media_list</code> | <code>array</code> | กลุ่มของสื่อหัวข้อหน้าผลิตภัณฑ์ |
| <code>data.promotion_h5.head_figure_data.media_list[]</code> | <code>object</code> | กลุ่มหนึ่งของสื่อผลิตภัณฑ์ |
| <code>data.promotion_h5.head_figure_data.media_list[].name</code> | <code>string</code> | ชื่อที่ปรากฏสำหรับกลุ่มสื่อนี้ |
| <code>data.promotion_h5.head_figure_data.media_list[].type</code> | <code>string</code> | ค่าประเภทสำหรับกลุ่มสื่อนี้ |
| <code>data.promotion_h5.head_figure_data.media_list[].content_list</code> | <code>array</code> | ข้อมูลสื่อในกลุ่มนี้ |
| <code>data.promotion_h5.head_figure_data.media_list[].content_list[]</code> | <code>object</code> | ข้อมูลสื่อหัวข้อหนึ่ง |
| <code>data.promotion_h5.head_figure_data.media_list[].content_list[].url</code> | <code>string</code> | URL ของสื่อเมื่อมี |
| <code>data.promotion_h5.head_figure_data.media_list[].content_list[].cover_url</code> | <code>string</code> | URL ของรูปปกเมื่อมี |
| <code>data.promotion_h5.head_figure_data.media_list[].content_list[].height</code> | <code>integer</code> | ความสูงของสื่อในพิกเซล |
| <code>data.promotion_h5.head_figure_data.media_list[].content_list[].width</code> | <code>integer</code> | ความกว้างของสื่อในพิกเซล |
| <code>data.promotion_h5.shop_info</code> | <code>object</code> | ข้อมูลร้านค้าที่แสดงบนหน้าผลิตภัณฑ์ |
| <code>data.promotion_h5.shop_info.basic_info</code> | <code>object</code> | ข้อมูลโปรไฟล์ของร้านค้าที่แสดงผลิตภัณฑ์นี้ |
| <code>data.promotion_h5.shop_info.basic_info.shop_name</code> | <code>string</code> | ชื่อที่แสดงของร้านค้า |
| <code>data.promotion_h5.shop_info.basic_info.shop_logo</code> | <code>string</code> | URL ของโลโก้ร้านค้า |
| <code>data.promotion_h5.shop_info.basic_info.account_url</code> | <code>string</code> | ลิงก์ไปยังบัญชีร้านค้า ลิงก์นี้สามารถใช้รูปแบบเฉพาะของแอปพลิเคชันได้ |
| <code>data.promotion_h5.shop_info.basic_info.grade_info</code> | <code>object</code> | ดัชนีความพึงพอใจของร้านค้าที่แสดงบนหน้าสินค้า. |
| <code>data.promotion_h5.shop_info.basic_info.grade_info.score</code> | <code>number</code> | ดัชนีที่แสดงเป็นตัวเลขสำหรับร้านค้า |
| <code>data.message</code> | <code>string</code> | ข้อความแจ้งว่า “สินค้าไม่มีอยู่” การตอบกลับที่ประสบความสำเร็จอาจมีเพียงฟิลด์นี้เท่านั้น โดยมีค่า <code>商品不存在</code>. |

</div>

## ตัวอย่างผลการตอบกลับ

<ApiExampleSection :api='JSON.parse("\"/api/douyin-ec/get-item-sku-info/v2\"")' />

