Description
Resend an sms message containing the validation code to a sms promotion offer.
Parameters
Parameter | Type | Value | Required |
operation_name | String | resendSmsPromotionCode | true |
variables | JSON | $JSON_OBJECT | true |
$JSON_OBJECT Structure
Key | Type | Value | Required |
brandId | String | $SHARED_BRAND_ID | true |
offerId | String | $OFFER_ID | true |
channel | String | $CHANNEL | false |
Tip: $SHARED_BRAND_ID can be obtained via Accessible Brands
Tip: $OFFER_ID can be obtained via Active Sms 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": "resendSmsPromotionCode",
"variables": {
"brandId": $SHARED_BRAND_ID,
"offerId": $OFFER_ID,
"channel": $CHANNEL
}
}' \
https://mulahpoints.com/third_party
Response
{
"data": {
"thirdPartyResendSmsPromotionCode": {
"result": $SUCCESS_MESSAGE,
"errors": [
{message: $ERROR_MESSAGE}
]
}
},
"errors": []
}