- Smart Software Group - API, Open Data Integration
- Smart Inventory API
- Smart Retail API
- Танилцуулга
- Борлуулалт илгээх
- Хүргэлтийн захиалга илгээх
- Сугалааны дугаар татахGET
- TokenGET
- Smart Distribution API
- Танилцуулга
- Лавлах
- Борлуулалт
- Тайлан
- Smart Loyalty API
- Танилцуулга
- Картын мэдээлэл авахGET
- Картын хүсэлт илгээхPOST
- Бонусын баримтын жагсаалт татахGET
- Лояалти картын нууц үг солихPOST
- Лояалти харилцагчийн утасны дугаар бонусын хувь татахGET
- Картын жагсаалт татахGET
- Худалдан авалтын жагсаалт татахGET
- TokenGET
- Ваучерийн жагсаалтGET
- Бонусын баримт илгээхPOST
- Картын QR мэдээлэл авахGET
- Smart Accounting OpenData
- Smart Distribution OpenData
- Smart Retail OpenData
- Smart Restaurant OpenData
- Smart Restaurant API
- Smart Hotel API
- Smart Accounting API
- Smart HCM API
Борлуулалт илгээх
POST
{baseurl}/api/sale/sale
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
baseurl
string
required
Body Params application/json
SaleHeaderModel
object
required
documentDate
string
required
documentNumber
string
required
documentDesc
string
required
taxCustomerType
string
required
taxCustomerId
string
required
taxCustomerName
string
required
totalPayAmount
number
required
email
string | null
optional
restaurantId
string | null
optional
posId
string | null
optional
cashierId
string | null
optional
SaleLineModel
array [object {7}]
required
itemId
string
required
barcode
string
required
itemName
string
required
qty
number
required
basePrice
number
required
price
number
required
payAmount
number
required
SalePayment
array [object {4}]
required
paymentType
string
required
amount
number
required
customerId
string
required
bankId
string
required
Example
{
"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"
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/sale/sale' \
--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"
}
]
}'
Responses
🟢200Success
application/json
Body
object {0}
Examples
{
"Success": true,
"Message": null,
"ErrorCode": null,
"ExceptionType": null,
"Data": {
"DocumentPkId": 2406111233128438000,
"TaxBillNo": "",
"TaxBillDate": null
}
}
Modified at 2025-04-25 06:43:56