Thêm đơn hàng
Request
curl --location --globoff 'https://pos.open.nhanh.vn/v3.0/order/add?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--header 'Content-Type: application/json' \
--data '{
"info": {
"type": 1,
"depotId": 31010,
"saleId": 2054197,
"createdById": 2054197,
"description": "Giao hàng trong giờ hành chính",
"tagIds": [266, 265]
},
"channel": {
"appOrderId": "7JnexpUBr12082025_1",
"sourceName": "NGUỒN NEW 1"
},
"shippingAddress": {
"name": "Nguyễn Văn Cường",
"mobile": "0928937476",
"cityId": 254,
"districtId": 321,
"wardId": 1116,
"address": "170 La Thành",
"locationVersion": "v1"
},
"carrier": {
"sendCarrierType": 2,
"id": 2,
"serviceCode": "PHS",
"accountId": 26,
"shopId": 808957,
"customerShipFee": 30000,
"isDeclaredFee": 1,
"declaredValue": 1000000,
"extraServices": {
"isDocument": 1,
"handDelivery": 1
}
},
"products": [
{
"id": 1231264453,
"price": 189000,
"discount": 9000,
"quantity": 1
},
{
"id": 1231253490,
"price": 109000,
"vat": 8,
"quantity": 1,
"gifts": [
{
"id": 1231279483,
"quantity": 1,
"price": 20000
}
]
}
],
"payment": {
"depositAmount": 50000,
"depositAccountId": 266363,
"transferAmount": 100000,
"transferAccountId": 263475
}
}'Key
Type
Description
info
Key
Type
Description
channel
Key
Type
Description
shipping address
Key
Type
Description
carrier
Key
Type
Description
products
Key
Type
Description
payment
Key
Type
Description
Response
Failed response
Successful response
Last updated