Skip to content

Update Address Information

This API is used for logged-in members to update their personal address information. The address information will be saved in the system for future business requirements.

API Details

  • URL: /client/member/update-address
  • Method: POST
  • Content-Type: application/json or multipart/form-data
  • Authentication: Bearer Token (A valid Authorization: Bearer <token> must be passed in the Header)

Headers

ParameterRequiredTypeDescription
AuthorizationYesStringBearer Token, obtained via the Member Login API

Request Parameters (Body)

ParameterRequiredTypeDescription
countryNoStringCountry Code (e.g. CN, MY). Must be obtained via the /common/countries API
stateNoStringState / Province
cityNoStringCity
zipCodeNoStringZip Code / Postal Code
addressNoStringDetailed Address

Request Example (JSON)

json
{
    "country": "CN",
    "state": "Guangdong",
    "city": "Shenzhen",
    "zipCode": "518000",
    "address": "High-tech Park, Nanshan District"
}

Response Example

Success Response

json
{
    "code": 0,
    "data": null,
    "msg": "success"
}

Failed Response (Invalid Token)

json
{
    "code": 7,
    "data": null,
    "msg": "verify_failed: unauthorized"
}