Update Customer Profile
Update the authenticated customer's profile information.
Authentication
This query requires a valid customer authentication token in the Authorization header. Use the Customer Login API to retrieve the token.
Authorization: Bearer <accessToken>Arguments
| Name | Type | Required | Description |
|---|---|---|---|
firstName | String | ❌ No | Customer's first name |
lastName | String | ❌ No | Customer's last name |
email | String | ❌ No | Customer's email address |
dateOfBirth | String | ❌ No | Date of birth (YYYY-MM-DD format) |
gender | String | ❌ No | Gender (male/female/other) |
phone | String | ❌ No | Phone number |
Response
| Field | Type | Description |
|---|---|---|
customer | Customer | Updated customer object |
message | String | Success or error message |
success | Boolean | Update success status |
Validation Rules
- First name and last name can contain letters and spaces
- Email must be in valid format and unique (if changed)
- Date of birth must be in YYYY-MM-DD format
- Gender must be one of: male, female, other
Error Responses
json
{
"errors": {
"email": ["The email has already been taken."],
"dateOfBirth": ["The date of birth is invalid."]
}
}
