Thêm phiếu nhập nhà cung cấp
Request
curl --location --globoff 'https://pos.open.nhanh.vn/v3.0/inventory/importsupplier?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--header 'Content-Type: application/json' \
--data '{
"depotId": 31010,
"supplierId": 40827,
"description": "test api V3",
"products": [
{
"id": 1231275955,
"discount": {"type": "cash", "value": 0},
"imeis": ["TestImei1", "TestImei2"],
"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": 500000,
"accountId": 263475
}
}
}'Key
Type
Description
products
Key
Type
Description
payment
Key
Type
Description
Response
Failed response
Successful response
Last updated