Description
Resend an sms message containing the validation code to a redemption offer.
Parameters
Parameter | Type | Value | Required |
operation_name | String | resendRedemptionPromotionCode | true |
variables | JSON | $JSON_OBJECT | true |
$JSON_OBJECT Structure
Key | Type | Value | Required |
brandId | String | $SHARED_BRAND_ID | true |
redemptionId | String | $REDEMPTION_ID | true |
channel | String | $CHANNEL | false |
Tip: $SHARED_BRAND_ID can be obtained via Accessible Brands
Tip: $REDEMPTION_ID can be obtained via the response of using Redeem Promotion
Tip: Set channel value to sms to send via sms and ws to send via WhatsApp
Tip: Channel if empty will always default to sms
Example
Request
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Token: $TOKEN" \
-d '{
"operation_name": "resendRedemptionPromotionCode",
"variables": {
"brandId": $SHARED_BRAND_ID,
"redemptionId": $REDEMPTION_ID,
"channel": $CHANNEL
}
}' \
https://mulahpoints.com/third_party
Response
{
"data": {
"thirdPartyResendRedemptionPromotionCode": {
"result": $SUCCESS_MESSAGE,
"errors": [
{message: $ERROR_MESSAGE}
]
}
},
"errors": []
}