Authorization: Bearer ********************
{
"SaleHeaderModel": {
"documentDate": "2024/09/12",
"documentNumber": "12345436",
"documentDesc": "Борлуулалтын баримт",
"taxCustomerType": "1",
"taxCustomerId": "",
"taxCustomerName": "",
"totalPayAmount": 2000,
"cashAmount": 2000,
"email": "",
"restaurantId": "",
"posId": "",
"cashierId": ""
},
"SaleLineModel": [
{
"itemId": "331005",
"barcode": "",
"itemName": "Lipton tea",
"qty": 1,
"basePrice": 2000,
"price": 2000,
"payAmount": 2000
}
],
"SalePayment": [
{
"paymentType": "BANK",
"amount": 2000,
"customerId": "",
"bankId": "05"
}
]
}
curl --location --request POST '/api/sale/sale' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"SaleHeaderModel": {
"documentDate": "2024/09/12",
"documentNumber": "12345436",
"documentDesc": "Борлуулалтын баримт",
"taxCustomerType": "1",
"taxCustomerId": "",
"taxCustomerName": "",
"totalPayAmount": 2000,
"cashAmount": 2000,
"email": "",
"restaurantId": "",
"posId": "",
"cashierId": ""
},
"SaleLineModel": [
{
"itemId": "331005",
"barcode": "",
"itemName": "Lipton tea",
"qty": 1,
"basePrice": 2000,
"price": 2000,
"payAmount": 2000
}
],
"SalePayment": [
{
"paymentType": "BANK",
"amount": 2000,
"customerId": "",
"bankId": "05"
}
]
}'
{
"Success": true,
"Message": null,
"ErrorCode": null,
"ExceptionType": null,
"Data": {
"DocumentPkId": 2406111233128438000,
"TaxBillNo": "",
"TaxBillDate": null
}
}