Skip to main content

002-CreateMemberProfile

Function

Create Member Profile

Endpoint

  • /v1/loyalty/profile/register

HTTP Method

  • POST

Request Headers

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

Request Payload

{
"ssoId": "ssoId",
"emailId": "emailId@example.com.cn",
"mobileNo": "88888888",
"countryCode": "852",
"title": "Dr",
"campaignCode": "",
"nickname": "",
"monthOfBirth": "01",
"yearOfBirth": "2001",
"dayOfBirth": "08",
"referralCode": "",
"languagePreference": "zh_HK",
"activityInterest": [
{
"interestCode": "SPE"
}
],
"eNewIndicator": true,
"firstname": "",
"lastname": "",
"chineseName": "測試",
"residentialArea": "",
"province": "",
"district": "",
"openIdUUID": ""
}

Request Parameters

FieldRequiredTypeRemarkSample
ssoIdYesstringUnique identifier associated with the user data stored in SSO
emailIdYesstringEmail id entered by the user
mobileNoYesstringMobile No. without country code entered by the user88888888
countryCodeYesstringcountry code852
titleNostringDr/Miss/Mr/Mrs/Ms
campaignCodeNostring
nicknameNostringNick Name of the user
monthOfBirthNostring
yearOfBirthNostring
referralCodeNostring
languagePreferenceNostringUser’s preferred language, Values: en/tc/sc
activityInterestNojson arrayUser’s choice of activities for promos and event notifications[{"interestCode": "SPE"}]
eNewIndicatorNoBoolean
firstnameNostring
lastnameNostring
dayOfBirthNostring
chineseNameNostring
residentialAreaNostringCountry or Region
provinceNostringFor Non-Hong Kong member
districtNostringFor Hong Kong member only
openIdUUIDNostringiAM Smart OpenId

Response Payload

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

Response HTTP Code

Error Codes

Status CodeStatus Description
1Internal Error
2Member Already Exists
3Missing Parameter
4Invalid Input: [field name]
4110Member Already Exists