Calculate Spending Reward

Method : GET
URL : https://open.revenuemonster.my/v3/loyalty/spending-reward/calculate
Sandbox URL : https://sb-open.revenuemonster.my/v3/loyalty/spending-reward/calculate

note

Use amount sales to Calculate Spending Reward points

Request Parameters#

ParameterTypeDescriptionExample
currencyTypeStringCurrently MYR onlyMYR
orderAmountintAmount Sales300

Example Request

curl --location --request GET "{{open_base_path}}/v3/loyalty/spending-reward/calculate" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer {{clientToken}}" \
--header "X-Signature: sha256 Sty3LNcKA8+WlMHtAgIY+y1xbwnzKsN0UdyKaW+yYIgcTkBAtF7G5Lx251qQITURJ4wiXPDODxhs1nFVmBBing==" \
--header "X-Nonce-Str: VYNknZohxwicZMaWbNdBKUrnrxDtaRhN" \
--header "X-Timestamp: 1528450585" \
--data "{
\"currencyType\": \"MYR\",
\"orderAmount\": 300
}"

Response Parameters#

ParameterTypeDescriptionExample
itemObjectPoint object(Refer to explanation below)
codeStringSuccessfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes)"SUCCESS"

Point Object (item)
ParameterTypeDescriptionExample
orderAmountintAmount Sales300
PointintLoyalty point given to customers.300

Currency notation (currently only support MYR)

Example Response

{
"item": {
"orderAmount": 300,
"point": 300
},
"code": "SUCCESS"
}