Update Customer Address
Update an existing customer address.
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 |
|---|---|---|---|
addressId | String | ✅ Yes | Address ID to update |
firstName | String | ❌ No | First name |
lastName | String | ❌ No | Last name |
address1 | String | ❌ No | Street address |
city | String | ❌ No | City |
state | String | ❌ No | State/Province |
country | String | ❌ No | Country code |
postcode | String | ❌ No | Postal/Zip code |
phone | String | ❌ No | Phone number |
Response
| Field | Type | Description |
|---|---|---|
createAddUpdateCustomerAddress | Address | Updated address object |
Validation Rules
- Address ID must be valid and belong to the customer
- All required fields must be provided if being updated
- Valid country code must be provided if country is being changed
- Phone number should be in valid format if provided
Error Responses
json
{
"errors": {
"message": ["Address not found or does not belong to this customer."],
}
}
