Skip to main content

004-UpdateMemberProfile

Function

update member profile

Endpoint

  • /v1/loyalty/profile

HTTP Method

  • PUT

Request Headers

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

Request Body

{
"ssoId": "xxx",
"title": "Ms",
"campaignCode": "000111",
"nickname": "justin",
"yearOfBirth": "2024",
"monthOfBirth": "03",
"dayOfBirth": "10",
"referralCode": "99999",
"languagePreference": "tc",
"activityInterest": [
{
"interestCode": "aaa"
},
{
"interestCode": "bbb"
}
],
"eNewIndicator": true,
"firstname": "aa",
"lastname": "bb",
"openIdUUID": "ddddaa",
"chineseName": "aa",
"residentialArea": "xx",
"province": "xx",
"district": "xx"
}

Request Parameters

FieldRequiredTypeRemarkSample
ssoIdYesstringUnique identifier associated with the user data stored in SSO
titleNostringSalutationMr
campaignCodeNostring
nicknameNostringNick Name of the user
yearOfBirthNostring
monthOfBirthNostring
dayOfBirthNostring
referralCodeNostring
languagePreferenceNostringUser’s preferred language, Valuse: en/tc/sc
activityInterestNoarrayUser’s choice of activities for promos and event notifications[{"interestCode": "football"}]
eNewIndicatorNoboolean
firstnameNostring
lastnameNostring
openIdUUIDNostring
chineseNameNostring
residentialAreaNostringCountry or Region
provinceNostringMainland Province
districtNostringHong Kong Districts

Response Payload

Sample Response:

{
"status": 1,
"message": "success",
"errorCode": 0
}

Error Codes

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