{
"code": "3XV4989957",
"name": "Discount By Voucher",
"currency": "USD",
"glTarget": "E100000103",
"tiers": [
{
"type": "external",
"condition": "(amount > 0) || (amount == 0)",
"debit": {
"url": "http://bnctl-loyalty-backend-develop-service.bnctl-loyalty-backend-develop-ns.svc.cluster.local:2222/oapi/customer/verifyVoucherCode",
"params": "{\"voucherId\":\"VOUCHER\",\"partnerCustomerId\":\"SENDERUSERID\" ,\"partnerTransactionAmount\":\"AMOUNT\" ,\"partnerMerchantId\":\"RECEIVERUSERID\",\"partnerServiceId\":\"SERVICEID\",\"partnerShopId\":\"SHOPID\"}"
},
"credit": {
"url": "",
"params": ""
}
}
],
"createdBy": {
"id": "5dc392c8195301738cd1e2bf",
"name": "SYSTEM USER 01",
"roles": [
"root"
]
},
"updatedBy": {
"id": "64edb3fde65ee58241cce1d5",
"name": "SYSTEM USER 08",
"roles": [
"root",
"a"
]
},
"createdAt": "2023-08-24T10:55:02.146Z",
"updatedAt": "2024-04-24T08:32:37.399Z",
"desc": "",
"status": 1,
"note": "xx",
"lockedBy": {
"id": "660a9b079ad2d060318a949a",
"name": "linhltp",
"roles": [
"root"
]
},
"activatedBy": {},
"statusChangedAt": "2024-04-24T08:32:37.399Z",
"id": "606ebca58215bf8e1a2261d9"
}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": "3XV4989957",
"name": "Discount By Voucher",
"currency": "USD",
"glTarget": "E100000103",
"tiers": [
{
"type": "external",
"condition": "(amount > 0) || (amount == 0)",
"debit": {
"url": "http://bnctl-loyalty-backend-develop-service.bnctl-loyalty-backend-develop-ns.svc.cluster.local:2222/oapi/customer/verifyVoucherCode",
"params": "{\"voucherId\":\"VOUCHER\",\"partnerCustomerId\":\"SENDERUSERID\" ,\"partnerTransactionAmount\":\"AMOUNT\" ,\"partnerMerchantId\":\"RECEIVERUSERID\",\"partnerServiceId\":\"SERVICEID\",\"partnerShopId\":\"SHOPID\"}"
},
"credit": {
"url": "",
"params": ""
}
}
],
"createdBy": {
"id": "5dc392c8195301738cd1e2bf",
"name": "SYSTEM USER 01",
"roles": [
"root"
]
},
"updatedBy": {
"id": "64edb3fde65ee58241cce1d5",
"name": "SYSTEM USER 08",
"roles": [
"root",
"a"
]
},
"createdAt": "2023-08-24T10:55:02.146Z",
"updatedAt": "2024-04-24T08:32:37.399Z",
"desc": "",
"status": 1,
"note": "xx",
"lockedBy": {
"id": "660a9b079ad2d060318a949a",
"name": "linhltp",
"roles": [
"root"
]
},
"activatedBy": {},
"statusChangedAt": "2024-04-24T08:32:37.399Z",
"id": "606ebca58215bf8e1a2261d9"
}'