# Update customer
Update the logged-in customer's details.
# Endpoint
POST
/account/details
# Fields
Name | Required |
---|---|
first_name | true |
last_name | true |
true | |
phone | true |
password | false |
password_confirmation | false |
street | false |
zip | false |
city | false |
country_id | false |
# Example
<form action="/account/details" method="POST">
<input type="text" name="first_name" />
<input type="text" name="last_name" />
<input type="email" name="email" />
<!-- Optional -->
<input type="tel" name="phone" />
<!-- All the address fields below are optional -->
<input type="text" name="street" />
<input type="text" name="zip" />
<input type="text" name="city" />
<select name="country_id">
<option value="208">Denmark</option>
<option value="752">Sweden</option>
</select>
<button>Update</button>
{{ csrf.field }}
</form>