หมวดหมู่สินค้า
บทนำ
รับรายการหมวดหมู่สินค้า
เอนด์พอยต์
json
POST /product/v1/categoryInfoเนื้อความคำขอ
| ฟิลด์ | ประเภท | จำเป็น | คำอธิบาย |
|---|---|---|---|
lang | string | ไม่ | การตั้งค่าภาษา อังกฤษ (ค่าเริ่มต้น): EN_US จีน: ZH_CN |
ตัวอย่างคำขอ
bash
curl 'https://openapi.fastmoss.com/product/v1/categoryInfo' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxxxxxx' \
--data '{"lang": "EN_US"}'ตัวอย่างการตอบกลับ
json
{
"code":0,
"msg":"success",
"data":[
{
"c_code": "10",
"c_name": "Home Supplies",
"sub": [
{
"c_code": "852488",
"c_name": "Festive & Party Supplies",
"sub": [
{
"c_code": "600009",
"c_name": "Festive Decorations",
}
]
}
]
}
]