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
| Field | Required | Type | Remark | Sample |
|---|---|---|---|---|
| ssoId | Yes | string | Unique identifier associated with the user data stored in SSO | |
| title | No | string | Salutation | Mr |
| campaignCode | No | string | ||
| nickname | No | string | Nick Name of the user | |
| yearOfBirth | No | string | ||
| monthOfBirth | No | string | ||
| dayOfBirth | No | string | ||
| referralCode | No | string | ||
| languagePreference | No | string | User’s preferred language, Valuse: en/tc/sc | |
| activityInterest | No | array | User’s choice of activities for promos and event notifications | [{"interestCode": "football"}] |
| eNewIndicator | No | boolean | ||
| firstname | No | string | ||
| lastname | No | string | ||
| openIdUUID | No | string | ||
| chineseName | No | string | ||
| residentialArea | No | string | Country or Region | |
| province | No | string | Mainland Province | |
| district | No | string | Hong Kong Districts |
Response Payload
Sample Response:
{
"status": 1,
"message": "success",
"errorCode": 0
}
Error Codes
| Status Code | Status Description |
|---|---|
| 1 | Internal Error |
| 3 | Missing Parameter |
| 4 | Invalid Input: [field name] |
| 4100 | Member not found |