{
"code": "SB69251891",
"name": "demo",
"currency": "VND",
"glTarget": "L100000201",
"tiers": [
{
"type": "standard",
"credit": {
"max": 0,
"percentage": 0,
"fixed": 0,
"value": "amount * percentage + fixed"
},
"debit": {
"max": 0,
"percentage": 0,
"fixed": "100",
"value": "amount * percentage + fixed"
},
"condition": "amount > 10000"
}
],
"createdBy": {
"id": "69130072dd4bae11885a9eb4",
"name": "TEST",
"roles": [
"root"
]
},
"updatedBy": {
"id": "69130072dd4bae11885a9eb4",
"name": "TEST",
"roles": [
"root"
]
},
"createdAt": "2025-11-20T09:54:11.892Z",
"updatedAt": "2025-11-20T09:54:17.245Z",
"desc": "",
"status": 1,
"note": "z",
"lockedBy": {},
"activatedBy": {},
"statusChangedAt": "2025-11-20T09:54:17.245Z",
"id": "691ee543732d29871eae9160",
"voucherDiscountHost": [
{
"label": "LOYALTY_VOUCHER_HOST",
"value": "//192.168.10.139:31093"
}
],
"expand": true
}curl --location --request POST '/admin/discount/updateDiscount' \
--header 'Authorization: Bearer f41e8fd7-3221-4b36-8dc3-623890b2c078' \
--header 'Accept: application/json' \
--header 'User-Agent: Mozilla/5.0' \
--header 'Referer: https://wallet-admin-vpay-dev2.vinsmartfuture.tech/' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{
"code": "SB69251891",
"name": "demo",
"currency": "VND",
"glTarget": "L100000201",
"tiers": [
{
"type": "standard",
"credit": {
"max": 0,
"percentage": 0,
"fixed": 0,
"value": "amount * percentage + fixed"
},
"debit": {
"max": 0,
"percentage": 0,
"fixed": "100",
"value": "amount * percentage + fixed"
},
"condition": "amount > 10000"
}
],
"createdBy": {
"id": "69130072dd4bae11885a9eb4",
"name": "TEST",
"roles": [
"root"
]
},
"updatedBy": {
"id": "69130072dd4bae11885a9eb4",
"name": "TEST",
"roles": [
"root"
]
},
"createdAt": "2025-11-20T09:54:11.892Z",
"updatedAt": "2025-11-20T09:54:17.245Z",
"desc": "",
"status": 1,
"note": "z",
"lockedBy": {},
"activatedBy": {},
"statusChangedAt": "2025-11-20T09:54:17.245Z",
"id": "691ee543732d29871eae9160",
"voucherDiscountHost": [
{
"label": "LOYALTY_VOUCHER_HOST",
"value": "//192.168.10.139:31093"
}
],
"expand": true
}'