Skip to main content

Calculate Spending Reward

Method : POST
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
amountintAmount 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\",
\"amount\": 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
pointIntLoyalty point given to customers.3

Currency notation (currently only support MYR)

Example Response

{
"item": {
"point": 3
},
"code": "SUCCESS"
}