# Update Customer Endpoint

## Structure

### Customer

<table border="1" id="bkmrk-name-type-descriptio" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr><td>**Name**  
</td><td>**Type**  
</td><td>**Description**  
</td><td>**Required**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id for the customer</td><td>No</td></tr><tr><td>`name`</td><td>string</td><td>The name of the customer</td><td>No</td></tr><tr><td>`email`</td><td>string</td><td>The email of the customer</td><td>No</td></tr><tr><td>`group`</td><td>string</td><td>The group name of the customer</td><td>No</td></tr><tr><td>`tax_group`</td><td>string</td><td>The tax group name of the customer</td><td>No</td></tr><tr><td>`additional_attributes`</td><td>array</td><td>The additional attributes of the customer, see [Additional Attribute](https://support.aerocommerce.com/books/api/page/update-customer-endpoint/update-customer-endpoint#bkmrk-additional-attribute)</td><td>No</td></tr></tbody></table>

### Additional Attribute

<table border="1" id="bkmrk-name-type-descriptio-2" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr><td>**Name**  
</td><td>**Type**  
</td><td>**Description**  
</td><td>**Required**  
</td></tr><tr><td>`key`</td><td>string</td><td>The key of the additional attribute</td><td>Yes</td></tr><tr><td>`value`</td><td>string</td><td>The value of the additional attribute</td><td>Yes</td></tr></tbody></table>

## Example Request

```
PUT /api/customers/{id|email}
```

```json
{
    "name": "Test",
    "email": "test@gmail.com",
    "group": "Group Name",
    "additional_attributes": [
        {
            "key": "last-api-update",
            "value": "2023-09-01 09:29:41"
        }
    ]
}
```

## Example Response

```json
{
    "customer": {
        "id": 1
    }
}
```