ขั้นตอนการสร้าง Product ประเภท Attribute (Type 3)
- ใช้ API เพื่อสร้าง Product โดย ระบุ type มีค่าเป็น 3
Sandbox
https://open-api.bentoweb.com/bentoweb-api-sandbox/#/Products/post_product
Production
https://open-api.bentoweb.com/bentoweb-api-prod/#/Products/post_product
Data ตัวอย่าง:
{
"name": "Product name",
"active": 0,
"price": 30,
"store_id":{store_id},
"type": 3
}- ทำการ Init attribute
Production
https://open-api.bentoweb.com/bentoweb-api-prod/#/Products/post_product_init_attribute__product_id\_
Data ตัวอย่าง:
{
"attr1name": "Colour",
"attr2name": "Size",
"store_id": {store_id}
}- เพิ่มสินค้าลงใน attribute
Data ตัวอย่าง:
{
"attr1": "Blue",
"attr2": "M",
"price": 25,
"store_id": {store_id},
"stock": 100,
"barcode": "123456789",
"sku": "001a"
}อัปเดตเมื่อ: 26/10/2026
ขอบคุณ!