Description
Verifies a point promotion redemption with sms code
Used in conjunction with Redeem Point Promotion operation. If 10 minutes has passed since the redemption was made, an error will be thrown regardless of code validity.
A redemption may only be verified once.
Warning: This operation requires outlet access permissions enabled, contact an admin should you require it
Parameters
Parameter | Type | Value | Required |
operation_name | String | verifyPointRedemption | true |
variables | JSON | $JSON_OBJECT | true |
$JSON_OBJECT Structure
Key | Type | Value | Required |
brandId | String | $SHARED_BRAND_ID | true |
redemptionId | String | $REDEMPTION_ID | true |
code | String | $CODE | true |
Tip: $REDEMPTION_ID can be found via Redeem Point Promotion
Tip: $SHARED_BRAND_ID can be obtained via Accessible Brands
Example
Request
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Token: $TOKEN" \
-d '{
"operation_name": "verifyPointRedemption",
"variables": {
"brandId": $SHARED_BRAND_ID,
"redemptionId": $REDEMPTION_ID,
"code": $CODE
}
}' \
https://mulahpoints.com/third_party
Response
{
"data": {
"thirdPartyVerifyPointRedemption": {
"result": $SUCCESS_MESSAGE,
"cost": $COST,
"monetoryCost": $MONETORY_COST,
"transactionNumber": $TRANSACTION_NUMBER,
"errors": [
{message: $ERROR_MESSAGE}
]
}
}
}