Order Create 3rd Logistics
POST: https://salework.net/api/open/stock/v1/order/salework/create
Tạo đơn trong Salework Kho Vận và liên kết với các đơn vị vận chuyển
Request Headers
client-id: 123456
token: 50000601c30atpedfgu3LVvik87Ixlsvle3mSoB7701ceb156fPunYZ43GBg
Request Body
{
"warehouse_id": "warehouse_id",
"order_info": {
"total_price": 0,
"cod": 0,
"price_policy": "price_policy",
"discount": 0,
"discount_type": "VND",
"prepaid": 0,
"note": "This is order note!",
"complete_now": false
},
"products_info": [
{
"code": "PRODUCT_CODE",
"quantity": 1
}
],
"package_info": {
"height": 10,
"width": 10,
"length": 10,
"weight": 0.2
},
"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": "XXX",
"delivery_fee_paid_by": 1,
"shipping_fee": 111,
"additional_fee": 222,
"note": "This is delivery note!"
}
}
Response Body
{
"status": "success",
"data": {}
}
Parameters
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
package_info
object
yes
height
number
yes
width
number
yes
length
number
yes
weight
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
delivery_fee_paid_by
number
yes
shipping_fee
number
yes
additional_fee
number
yes
note
string
no
Last updated