Description
List of a brand’s customer’s expired sms promotions.
Parameters
Parameter | Type | Value | Required |
operation_name | String | expiredSmsPromotions | true |
variables | JSON | $JSON_OBJECT | true |
$JSON_OBJECT Structure
Key | Type | Value | Required |
brandId | String | $SHARED_BRAND_ID | true |
phoneNumber | String | $PHONE_NUMBER | true |
extension | String | $EXTENSION | true |
Important: Append country code to phone number string
Important: Only MY extension numbers are supported at this current time
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": "expiredSmsPromotions",
"variables": {
"brandId": $SHARED_BRAND_ID,
"phoneNumber": "60123456789",
"extension": "MY"
}
}' \
https://mulahpoints.com/third_party
Response
{
"data": {
"thirdParty": {
"expiredSmsPromotions": [
{
"id": $ID,
"expiry": $EXPIRY,
"promotion": {
"title": $TITLE
"monetaryCost": $MONETARY_COST
}
}
]
}
},
"errors": []
}