Thêm phiếu nhập khác
Request
curl --location --globoff 'https://pos.open.nhanh.vn/v3.0/inventory/importother?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--header 'Content-Type: application/json' \
--data '{
"depotId": 1000,
"customer": {
"id": "20184482",
"mobile": "0987654321",
"name": "Test API V3"
},
"description": "test api V3",
"products": [
{
"id": 1231275955,
"discount": {"type": "cash", "value": 0},
"quantity": 2,
"description": "",
"expiredDate": "",
"price": 50000,
"weight": 0,
"unitId": 0,
"batchId": 0,
"vat": {
"type": "cash",
"value": 0
}
}
],
"payment": {
"manualDiscountType": "percent",
"manualDiscount": 10,
"cash": {
"value": 0,
"accountId": 0
},
"transfer": {
"value": 90000,
"accountId": 263475
}
}
}'Key
Type
Description
customer
Key
Type
Description
products
Key
Type
Description
payment
Key
Type
Description
Response
Failed response
Successful response
Last updated