> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.bentoweb.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Example เพิ่มสินค้าและตัวเลือกสินค้า

ตัวอย่างการเพิ่มสินค้าและตัวเลือกสินค้าครั้งแรก

Sandbox
Method: POST
URL: http://queue.bento-sandbox.com/api/product

Production
Method: POST
URL: http://queue.bento-sandbox.com/api/product

Header:
Authorization: Bearer {access_token} // access token ที่ได้รับจากการ authenticate

Body ตัวอย่าง

```json
{
    "images": [
        "**image_url**"
    ],
    "name": "มาม่าโจ๊กคัพรสไข่เค็ม แพ็ค 3",
    "active": 1,
    "price": 50.00,
    "store_id":**store_id**
    "variant": [
        {
            "name": "ชื่อ variant 1",
            "price": "50.00",
            "default": 1,
            "sku": "123456",
            "barcode": "8859126000508",
            "stock": 1000
        },
        {
            "name": "ชื่อ variant 2",
            "price": "50.00",
            "default": 0,
            "sku": "987654",
            "barcode": "8959126000614",
            "stock": 10
        }
    ]
}
```




*** default 1 คือสินค้าหลักสำหรับเริ่มต้น สินค้าชิ้นที่เหลือต้องเป็น default 0

