{
"amountFormula": {
"senderAmount": "TOTALAMOUNT",
"receiverAmount": "AMOUNT"
},
"actionPriority": "before",
"code": "CUSTOMER_PAY_VIET_QR",
"name": "Customer pay VietQR",
"fullName": "Customer pay VietQR",
"confirmation": true,
"transType": "normal",
"related": [
"customer"
],
"channels": [
"mobile"
],
"startAction": "1764044580906",
"actions": [
{
"params": [],
"valueToSet": [],
"output": [],
"error": [
{
"code": "err",
"value": "0",
"mapping": "0",
"message": "Success"
},
{
"code": "err",
"value": "-1",
"mapping": "1",
"message": "Error"
},
{
"code": "err",
"value": "default",
"mapping": "500",
"message": "Something went wrong"
}
],
"selects": [],
"name": "Hold balance",
"entryConditions": "errorCode === 0",
"actionCode": "1764044580906",
"type": "glposting",
"entryPoint": "model:transdefinition",
"method": "performTransaction",
"viewConfiguration": {
"x": 296,
"y": 55,
"r": 50,
"inputConnectors": [
{
"name": ""
}
],
"outputConnectors": [
{
"name": ""
}
]
},
"nextActions": null,
"actionId": "1764044580906"
}
]
}curl --location --request POST '/admin/v2/service/createService' \
--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 '{
"amountFormula": {
"senderAmount": "TOTALAMOUNT",
"receiverAmount": "AMOUNT"
},
"actionPriority": "before",
"code": "CUSTOMER_PAY_VIET_QR",
"name": "Customer pay VietQR",
"fullName": "Customer pay VietQR",
"confirmation": true,
"transType": "normal",
"related": [
"customer"
],
"channels": [
"mobile"
],
"startAction": "1764044580906",
"actions": [
{
"params": [],
"valueToSet": [],
"output": [],
"error": [
{
"code": "err",
"value": "0",
"mapping": "0",
"message": "Success"
},
{
"code": "err",
"value": "-1",
"mapping": "1",
"message": "Error"
},
{
"code": "err",
"value": "default",
"mapping": "500",
"message": "Something went wrong"
}
],
"selects": [],
"name": "Hold balance",
"entryConditions": "errorCode === 0",
"actionCode": "1764044580906",
"type": "glposting",
"entryPoint": "model:transdefinition",
"method": "performTransaction",
"viewConfiguration": {
"x": 296,
"y": 55,
"r": 50,
"inputConnectors": [
{
"name": ""
}
],
"outputConnectors": [
{
"name": ""
}
]
},
"nextActions": null,
"actionId": "1764044580906"
}
]
}'