Skip to main content

003-GetMemberProfile

Function

Query Member Profile

Endpoint

  • /v1/loyalty/profile

HTTP Method

  • GET

Request Headers

  • Authorization: Bearer {token}
  • X-App-Key: {appKey}

Query Param

FieldRequiredTypeRemarkSample
ssoIdNstringUnique identifier associated with the user data stored in SSO
emailIdNstringEmail id entered by the user
countryCodeNstring
mobileNoNstring
memberIdNstring

Response Payload

{
"status": 1,
"message": "success",
"errorCode": 0,
"ssoId": "ssoId",
"emailId": "emailId@example.com.cn",
"mobileNo": "88888888",
"memberId": "memberId",
"title": "Dr",
"name": "Test Name",
"campaignCode": "",
"nickname": "",
"monthOfBirth": "01",
"yearOfBirth": "2001",
"dayOfBirth": "08",
"referralCode": "",
"languagePreference": "zh_HK",
"activityInterest": [
{
"interestCode": "SPE"
}
],
"countryCode": "852",
"eNewIndicator": true,
"firstname": "",
"lastname": "",
"openIdUUID": "",
"chineseName": "測試",
"residentialArea": "",
"province": "",
"district": "",
"childProfiles": [
{
"emailId": "emailId@example.com.cn",
"mobileNo": "88888888",
"dayOfBirth": "01",
"monthOfBirth": "01",
"yearOfBirth": "2024",
"countryCode": "852",
"firstname": "Name",
"lastname": "Test",
"childId": "CHILD00000001"
}
]
}

Response

FieldRequiredTypeRemarkSample
statusYesnumberstatus code of the api call, 1=success, 0=fail
messageYesstringdetail message of the api call
errorCodeNonumber
ssoIdNostringUnique identifier associated with the user data stored in SSO
emailIdNostringEmail id entered by the user
mobileNoNostringMobile No. without country code entered by the user, for example: 8888888888888888
memberIdNostringmemberId
titleNostring
nameNostringFull name of the user
campaignCodeNostring
nicknameNostringNick Name of the user
yearOfBirthNostring
monthOfBirthNostring
dayOfBirthNostringBirthday day of the user, with DD format
referralCodeNostring
languagePreferenceNostring
activityInterestNoArray[{"interestCode":"SPE"}]
countryCodeNostring852
eNewIndicatorNostring
firstnameNostring
lastnameNostring
openIdUUIDNostring
chineseNameNostring
residentialAreaNostring
provinceNostring
districtNostring
childProfilesNoarraychild profile info
childProfiles.emailIdNostring
childProfiles.mobileNoNostring
childProfiles.yearOfBirthNostring
childProfiles.monthOfBirthNostring
childProfiles.dayOfBirthNostring
childProfiles.countryCodeNostring
childProfiles.firstnameNostring
childProfiles.lastnameNostring
childProfiles.childIdNostring

Error Codes

Status CodeStatus Description
1Internal Error
2Member does not Exist
3Missing Parameter
4Invalid Input: [field name]
4100Member not found
4199Member Inactive