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/jsonormultipart/form-data - Authentication: Bearer Token (A valid
Authorization: Bearer <token>must be passed in the Header)
Headers
| Parameter | Required | Type | Description |
|---|---|---|---|
| Authorization | Yes | String | Bearer Token, obtained via the Member Login API |
Request Parameters (Body)
| Parameter | Required | Type | Description |
|---|---|---|---|
| country | No | String | Country Code (e.g. CN, MY). Must be obtained via the /common/countries API |
| state | No | String | State / Province |
| city | No | String | City |
| zipCode | No | String | Zip Code / Postal Code |
| address | No | String | Detailed 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"
}