- 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
- Ваучер хадгалах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
Ваучер хадгалах
GET
https://retailapiv2.smartlogic.mn/api/sale/saveVoucher
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
Voucher
array [object {10}]
required
id
string
optional
customerPkId
null
optional
voucherGroupId
string
optional
percent
integer
optional
amount
integer
optional
password
integer
optional
expireDate
string
optional
usageCount
integer
optional
hasBalance
string
optional
maxUsePercent
integer
optional
Example
{
"Voucher": [
{
"id": "2025052201",
"customerPkId": null,
"voucherGroupId": "001",
"percent": 0,
"amount": 5000,
"password": 1234,
"expireDate": "2025/12/31",
"usageCount": 3,
"hasBalance": "Y",
"maxUsePercent": 50
}
]
}
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 GET 'https://retailapiv2.smartlogic.mn/api/sale/saveVoucher' \
--header 'Content-Type: application/json' \
--data-raw '{
"Voucher": [
{
"id": "2025052201",
"customerPkId": null,
"voucherGroupId": "001",
"percent": 0,
"amount": 5000,
"password": 1234,
"expireDate": "2025/12/31",
"usageCount": 3,
"hasBalance": "Y",
"maxUsePercent": 50
}
]
}'
Responses
🟢200Success
application/json
Body
Success
boolean
required
Message
null
required
ErrorCode
null
required
ExceptionType
null
required
Data
object
required
Table
array [object {2}]
required
cardId
string
required
BonusPaymentPercent
integer
required
VoucherPaymentPercent
integer
required
ExpireDate
string
required
Note
null
required
FirstName
string
required
LastName
string
required
PhoneNumber
string
required
BirthDate
string
required
LoyaltyType
string
required
LoyaltyTypeName
string
required
PurchaseAmount
integer
required
discountPercent
integer
required
bonusPercent
integer
required
BonusBalance
integer
required
ItemBonusBalance
integer
required
TotalBonusBalance
integer
required
PointBalance
integer
required
GiftBalance
integer
required
UseBonus
string
required
NotAddUseBonus
string
required
IsChangeUseBonus
string
required
EbarimtId
number | null
optional
CardTemplateName
string
required
Example
{
"Success": true,
"Message": null,
"ErrorCode": null,
"ExceptionType": null,
"Data": {
"Table": [
{
"PkId": 2506161108040175000,
"Id": "2025061601"
},
{
"PkId": 2506161108040315000,
"Id": "2025061602"
}
]
}
}
Modified at 2025-06-16 03:04:24