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

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": []
}