Description

Change a customer’s membership status for a brand

Parameters

Parameter Type Value Required
operation_name String updateCustomerMembershipStatus 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
membershipId String $MEMBERSHIP_ID true
expiryDate String $EXPIRY_DATE false

Example

Request

curl \
-X POST \
-H "Content-Type: application/json" \
-H "Token: $TOKEN" \
-d '{
        "operation_name": "updateCustomerMembershipStatus",
        "variables": {
            "phoneNumber": "60123123123",
            "extension": "MY",
            "brandId": $SHARED_BRAND_ID,
            "membershipId": $MEMBERSHIP_ID,
            "expiryDate": "2020-09-01"
        }
    }' \
https://mulahpoints.com/third_party

Response

{
  "data": {
    "updateCustomerMembershipStatus": {
      "result": $SUCCESS_MESSAGE
      "errors": [
        {message: $ERROR_MESSAGE}
      ]
    }
  }
}