Description

List of a brand’s customer’s validated and unvoided sms redemption history.

Parameters

Parameter Type Value Required
operation_name String smsRedemptionHistory 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": "smsRedemptionHistory",
    "variables": {
        "brandId": $SHARED_BRAND_ID,
        "phoneNumber": "60123456789",
        "extension": "MY"
    }
}' \
https://mulahpoints.com/third_party

Response

{
  "data": {
    "thirdParty": {
      "smsRedemptionHistory": [
        {
          "id": $ID,
          "promotion": {
            "title": $TITLE
            "monetaryCost": $MONETARY_COST
          },
          "outlet": {
            "id": $OUTLET_ID
            "name": $OUTLET_NAME
          },
          "updatedAt": $REDEMPTION_TIME
        }
      ]
    }
  },
  "errors": []
}