Description
Returns a customer membership status for a brand
Parameters
Parameter | Type | Value | Required |
operation_name | String | customerMembershipStatus | 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": "customerMembershipStatus",
"variables": {
"phoneNumber": "60123123123",
"extension": "MY",
"brandId": $SHARED_BRAND_ID
}
}' \
https://mulahpoints.com/third_party
Response
{
"data": {
"thirdParty": {
"customer": {
"id": $TEST_ID,
"phoneNumber": "0123123123",
"membership": [
{
"title": $TEST_TITLE,
"expired": true,
"expiryDate": $DD-MM-YYYY
}
]
}
}
},
"errors": []
}