- 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
https://retailapiv2.smartlogic.mn/api/sale/sale
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
SaleHeaderModel
object
required
retailId
string
required
posId
string
required
cashierId
string
required
documentDate
string
required
documentNumber
string
required
documentDesc
string
required
cardId
string
optional
loyaltyType
string
optional
bonusCardPercent
integer
optional
cardDiscountPercent
integer
optional
taxCustomerType
string
required
taxCustomerId
string
required
taxCustomerName
string
required
totalPayAmount
integer
required
cashAmount
integer
required
totalCardUsedBonus
integer
required
totalCardAddedBonus
integer
required
totalItemDiscount
integer
required
totalCardDiscount
integer
required
totalVoucherDiscount
integer
required
voucherAmount
integer
required
email
string
optional
sellerId
string
optional
sellerName
string
optional
SaleLineModel
array [object {18}]
required
itemId
string
optional
itemName
string
optional
barcode
string
optional
baseprice
integer
optional
price
integer
optional
qty
integer
optional
voucherQty
string
required
bonusCardPercent
integer
optional
cardDiscountPercent
integer
optional
payAmount
integer
optional
cardAddedBonus
integer
optional
cardUsedBonus
integer
optional
itemDiscount
integer
optional
cardDiscount
integer
optional
voucherDiscount
integer
optional
usedVoucher
integer
optional
hasVat
string
required
hasCityTax
string
required
SalePayment
array [object {4}]
required
paymentType
string
optional
amount
integer
optional
customerId
string
optional
bankId
string
optional
Loyalty
object
required
customerPkId
string
required
cardId
string
required
discountPercent
integer
required
bonusPercent
integer
required
cardPkId
integer
required
baseAmount
integer
required
amount
integer
required
discountAmount
integer
required
bonusUsedAmount
integer
required
bonusAddedAmount
integer
required
giftUsedAmount
integer
required
SaleVoucherLineModel
object
required
percent
integer
required
amount
integer
required
usedAmount
integer
required
voucherId
string
required
voucherType
string
required
Example
{
"SaleHeaderModel": {
"documentDate": "2025-11-05",
"documentNumber": "88",
"documentDesc": "dolore",
"cardId": "Coupe",
"loyaltyType": "exercitation deserunt",
"bonusCardPercent": 72250461,
"cardDiscountPercent": 72880571,
"taxCustomerType": "tempor nulla fugiat non",
"taxCustomerId": "qui non deserunt in veniam",
"taxCustomerName": "Ellis Langworth",
"totalPayAmount": 206,
"cashAmount": 919,
"totalCardUsedBonus": -45766217,
"totalCardAddedBonus": -65999736,
"totalItemDiscount": 98750963,
"totalCardDiscount": -39751325,
"totalVoucherDiscount": 96686633,
"voucherAmount": 320,
"email": "[email protected]",
"sellerId": "sit",
"sellerName": "Isabel Wisoky"
},
"SaleLineModel": [
{
"itemId": "quis dolor amet ullamco",
"barcode": "42",
"itemName": "Estelle West",
"qty": -85125929,
"baseprice": 501,
"price": 391,
"bonusCardPercent": -52537648,
"cardDiscountPercent": 67284345,
"payAmount": 54,
"cardUsedBonus": 74036723,
"cardAddedBonus": 68864556,
"itemDiscount": -57734533,
"cardDiscount": 68921921,
"voucherDiscount": 17801887,
"usedVoucher": 11381430
}
],
"SalePayment": [
{
"paymentType": "sunt id qui cillum",
"amount": 534,
"customerId": "sed",
"bankId": "nulla"
},
{
"paymentType": "ullamco",
"amount": 791,
"customerId": "elit ipsum in",
"bankId": "ut qui Lorem consectetur"
}
],
"Loyalty": {
"customerPkId": "velit in",
"cardId": "Coupe",
"discountPercent": -51743605,
"bonusPercent": -90803535,
"cardPkId": 93059296,
"baseAmount": 378,
"amount": 440,
"discountAmount": 1,
"bonusAddedAmount": 362,
"giftUsedAmount": 869
},
"SaleVoucherLineModel": {
"percent": 89381554,
"amount": 47,
"usedAmount": 35,
"voucherId": "nulla tempor cupidatat eu Excepteur",
"voucherType": "deserunt est in occaecat ullamco"
}
}
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 'https://retailapiv2.smartlogic.mn/api/sale/sale' \
--header 'Content-Type: application/json' \
--data-raw '{
"SaleHeaderModel": {
"documentDate": "2025-11-05",
"documentNumber": "88",
"documentDesc": "dolore",
"cardId": "Coupe",
"loyaltyType": "exercitation deserunt",
"bonusCardPercent": 72250461,
"cardDiscountPercent": 72880571,
"taxCustomerType": "tempor nulla fugiat non",
"taxCustomerId": "qui non deserunt in veniam",
"taxCustomerName": "Ellis Langworth",
"totalPayAmount": 206,
"cashAmount": 919,
"totalCardUsedBonus": -45766217,
"totalCardAddedBonus": -65999736,
"totalItemDiscount": 98750963,
"totalCardDiscount": -39751325,
"totalVoucherDiscount": 96686633,
"voucherAmount": 320,
"email": "[email protected]",
"sellerId": "sit",
"sellerName": "Isabel Wisoky"
},
"SaleLineModel": [
{
"itemId": "quis dolor amet ullamco",
"barcode": "42",
"itemName": "Estelle West",
"qty": -85125929,
"baseprice": 501,
"price": 391,
"bonusCardPercent": -52537648,
"cardDiscountPercent": 67284345,
"payAmount": 54,
"cardUsedBonus": 74036723,
"cardAddedBonus": 68864556,
"itemDiscount": -57734533,
"cardDiscount": 68921921,
"voucherDiscount": 17801887,
"usedVoucher": 11381430
}
],
"SalePayment": [
{
"paymentType": "sunt id qui cillum",
"amount": 534,
"customerId": "sed",
"bankId": "nulla"
},
{
"paymentType": "ullamco",
"amount": 791,
"customerId": "elit ipsum in",
"bankId": "ut qui Lorem consectetur"
}
],
"Loyalty": {
"customerPkId": "velit in",
"cardId": "Coupe",
"discountPercent": -51743605,
"bonusPercent": -90803535,
"cardPkId": 93059296,
"baseAmount": 378,
"amount": 440,
"discountAmount": 1,
"bonusAddedAmount": 362,
"giftUsedAmount": 869
},
"SaleVoucherLineModel": {
"percent": 89381554,
"amount": 47,
"usedAmount": 35,
"voucherId": "nulla tempor cupidatat eu Excepteur",
"voucherType": "deserunt est in occaecat ullamco"
}
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2025-04-02 02:11:59