Order Create In Store
POST: https://salework.net/api/open/stock/v1/order/salework/create
Tạo đơn bán tại cửa hàng trong Salework Kho Vận.
Request Headers
client-id: 123456
token: 50000601c30atpedfgu3LVvik87Ixlsvle3mSoB7701ceb156fPunYZ43GBg
Request Body
{
"warehouse_id": "SaleworkWarehouse",
"order_info": {
"total_price": 0,
"cod": 0,
"price_policy": "retail_price",
"discount": 0,
"discount_type": "VND",
"prepaid": 0,
"note": "This is order note!",
"complete_now": false
},
"products_info": [
{
"code": "PRODUCT_CODE",
"quantity": 1
}
],
"customer_info": {
"name": "John Doe",
"phone": "0123456789",
"phone_alt": "",
"address": "123 ABC Street",
"province_id": "01",
"district_id": "011",
"ward_id": "00111",
"note": "This is customer note!"
},
"delivery_info": {
"logistics": "inStore"
}
}
Response Body
{
"status": "success",
"data": {}
}
Parameters
Parameters
Type
Required
Note
warehouse_id
string
yes
order_info
object
no
total_price
number
no
cod
number
no
price_policy
string
no
discount
number
no
discount_type
string
no
prepaid
number
no
note
string
no
complete_now
boolean
no
products_info
object[]
yes
code
string
yes
quantity
number
yes
customer_info
object
yes
name
string
yes
phone
number
yes
phone_alt
string
no
address
string
yes
province_id
number
yes
district_id
number
yes
ward_id
number
yes
note
string
no
delivery_info
object
yes
logistics
string
yes
Last updated