Skip to main content

009-UpdateChildProfile

Function

Update Child Profile

Endpoint

  • /v1/loyalty/profile/child

HTTP Method

  • PUT

Request Headers

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

Request Payload

{
"childId": "CHILD00000001",
"emailId": "emailId@example.com.cn",
"mobileNo": "88888888",
"countryCode": "852",
"dayOfBirth": "01"
}

Request Parameters

FieldRequiredTypeRemarkSample
childIdNostringchild profile id
emailIdNostringEmail address
mobileNoNostringMobile No. without country code entered by the child88888888
countryCodeNostring
dayOfBirthNostringDD

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

FieldRequiredTypeRemarkSample
statusYesnumberstatus code of the api call, 1=success, 0=fail
messageYesstringdetail message of the api call
errorCodeNonumber

Response Headers

Error Codes

CodeDescription
1Internal Error
2Child Not Exists
3Missing Parameter
4Invalid Input: [field name]
4150Child not exists
4151Child Already Exists