006-CreateChildProfile
Function
Create Child Profile
Endpoint
- /v1/loyalty/profile/child
HTTP Method
- POST
Request Headers
- Authorization: Bearer {token}
- X-App-Key: {appKey}
Request Payload
{
"masterSsoId": "ssoId",
"emailId": "emailId@example.com.cn",
"mobileNo": "88888888",
"dayOfBirth": "01",
"monthOfBirth": "12",
"yearOfBirth": "2023",
"countryCode": "852",
"masterMemberId": "KT00000001",
"firstname": "",
"lastname": "",
"chineseName": ""
}
Request Parameters
| Field | Required | Type | Remark | Sample |
|---|---|---|---|---|
| masterSsoId | No | string | Unique identifier associated with the master user data stored in SSO | |
| emailId | No | string | Email address | |
| mobileNo | No | string | Mobile No. without country code entered by the child | 88888888 |
| dayOfBirth | No | string | DD | |
| monthOfBirth | Yes | string | MM | |
| yearOfBirth | Yes | string | YYYY | |
| countryCode | No | string | ||
| masterMemberId | No | string | masterMemberId | |
| firstname | Yes | string | ||
| lastname | Yes | string | ||
| chineseName | Yes | string | Chinese fullname |
Response Payload
{
"status": 1,
"errorCode": 0,
"message": "success",
"childId": "CHILD00000001",
"masterSsoId": "ssoId",
"emailId": "emailId@example.com.cn",
"mobileNo": "88888888",
"yearOfBirth": "2023",
"monthOfBirth": "12",
"dayOfBirth": "01",
"countryCode": "852",
"masterMemberId": "KT00000001",
"firstname": "",
"lastname": "",
"chineseName": ""
}
Response Parameters
| Field | Required | Type | Remark | Sample |
|---|---|---|---|---|
| status | Yes | string | status code of the api call | |
| message | Yes | string | detail message of the api call | |
| errorCode | No | string | ||
| childId | No | string |
Rules
- masterSsoId / masterMemberId : Required One
Response Headers
Error Codes
| Code | Description |
|---|---|
| 1 | Internal Error |
| 3 | Missing Parameter |
| 4 | Invalid Input: [field name] |
| 4100 | Member not found |