Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.89 KB

File metadata and controls

57 lines (47 loc) · 1.89 KB

API Create Order

API Create Order เป็น API ที่ให้บริการในการสร้าง Order ของการสั่งซื้อสินค้า โดยสามารถใช้งาน API นี้ได้ตั้งแต่ขั้นตอนแรกของการสร้าง Order

API Call

[POST] https://api.sellsuki.com/public/{SELLSUKI_KEY}/submit

Attribute

Name Description
skus array ที่เก็บข้อมูลของสินค้าแต่ละ sku
skus[0][id] id ของ sku
skus[0][price] ราคาของสินค้า
skus[0][amount] จำนวนของสินค้า
skus[0][name] ชื่อสินค้า
skus[0][option1 , option2 , option3] รายละเอียดย่อยของสินค้า (ถ้ามี)
skus[0][warehouse] warehouse ที่สินค้าอยู่
email email ของลูกค้า
tel หมายเลขโทรศัพท์ของลูกค้า
shipping_type ประเภทของการจัดส่ง
shipping_price ค่าจัดส่ง
day_expire จำนวนวัน ที่กำหนดให้บิลหมดอายุ
pay_order (Default value is 1.)
debt_balance ยอดชำระของบิล

Json

{
    "skus": [{
        "id": "46484",
        "price": "100",
        "amount": "1",
        "name": "หมา",
        "option1": "1",
        "option2": "2",
        "option3": "3",
        "warehouse": "sellsuki"
    }],
    "email": "",
    "tel": "",
    "shipping_type": "-",
    "shipping_price": 0,
    "day_expire" : 3,
    "debts": [{
        "pay_order": 1,
        "debt_balance": 100
    }]
}