Thêm hóa đơn bán lẻ
Request
curl --location --globoff 'https://pos.open.nhanh.vn/v3.0/bill/addretail?appId={{appId}}&businessId={{businessId}}' \
--header 'Authorization: {{accessToken}}' \
--header 'Content-Type: application/json' \
--data '{
"depotId": 31010,
"customer" : {
"id": "",
"name": "Test khách API V3",
"mobile": "0987654321",
"email": "",
"address": "136/6 Kiêu Kỵ, Gia Lâm, Hà Nội",
"facebookLink": "",
"cityLocationId": 254,
"districtLocationId": 331,
"wardLocationId": 1246,
"birthday": "",
"gender": 0,
"groupId": 0,
"businessName": "",
"businessAddress": "",
"description": "",
"taxCode": "",
"tagIds": []
},
"saleId": 0,
"technicalStaffId": 0,
"description": "test combo API V3",
"tagIds": [],
"products": [
{
"id": 1231279582,
"vat": 0,
"quantity": 1,
"price": 500000,
"discount":{
"type": "percent",
"value": 10
},
"description": "",
"extendedWarrantyId": 0,
"extendedWarrantyMonths": "",
"extendedWarrantyMoney": 0,
"imei": "",
"unitId": "",
"batchId": ""
}
],
"payment": {
"customerAmount": 450000,
"debtDueDate": "",
"cash": {
"value": 0,
"accountId": 0
},
"credit": {
"value": 0,
"accountId": 0,
"code": ""
},
"transfer": {
"value": 440000,
"accountId": 263475
},
"installment": {
"id": 0,
"code": "",
"value": 0
},
"usedPoints": 0
},
"invoice": {
"createDraft": 1
}
}'Key
Type
Description
customer
Key
Type
Description
products
Key
Type
Description
payment
Key
Type
Description
invoice
Key
Type
Description
Response
Failed response
Value
Description
Successful response
Last updated