Description
Change a customer’s membership expiry date
Parameters
Parameter | Type | Value | Required |
operation_name | String | updateCustomerMembershipExpiry | 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 |
expiryDate | String | $EXPIRY_DATE | true |
Important: Append country code to phone number string
Important: Expiry date must be in ‘YYYY-MM-DD’ format
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": "updateCustomerMembershipExpiry",
"variables": {
"phoneNumber": "60123123123",
"extension": "MY",
"brandId": $SHARED_BRAND_ID,
"expiryDate": "2020-09-01"
}
}' \
https://mulahpoints.com/third_party
Response
{
"data": {
"updateCustomerMembershipExpiry": {
"result": $SUCCESS_MESSAGE
"errors": [
{message: $ERROR_MESSAGE}
]
}
},
"errors": []
}