---
title: "Update a Customer Address"
method: PUT
path: "/api/v1/customers/{customerId}/addresses/{addressId}"
tags: ["CustomerAddresses"]
---

# Update a Customer Address

`PUT /api/v1/customers/{customerId}/addresses/{addressId}`

## Request

- Base URL: `https://api.ekm.net`
- URL: `https://api.ekm.net/api/v1/customers/{customerId}/addresses/{addressId}`
- Auth: none required

You can supply all or any combination of the following properties in the request body:<br /><pre><code>
   {
      "is_preferred_billing_address": true,
      "is_preferred_shipping_address": true,
      "company": "string",
      "address": "string",
      "address2": "string",
      "town": "string",
      "county": "string",
      "country": "string",
      "post_code": "string",
      "telephone": "string",
      "fax": "string"
   }
   </code></pre>

## Path parameters

- `customerId` integer, required: The Customer Id
- `addressId` integer, required: The Address Id

## Request body

- object, nullable

## Response `200`

The updated Customer Address

- TempestResponseV1Customer
  - `meta` object, nullable
  - `links` TempestLink[], nullable
    - `rel` string, nullable
    - `href` string, nullable
  - `validation_result` TempestValidationError[], nullable
    - `member_names` string[], nullable
    - `error_message` string, nullable
  - `errors` object, nullable
  - `data` V1Customer
    - `id` integer
    - `email_address` string, nullable
    - `first_name` string, required
    - `last_name` string, required
    - `order_count` integer
    - `loyalty_points` number, double
    - `created_date` string, date-time
    - `modified_date` string, date-time
    - `last_login_date` string, date-time
    - `last_login_attempt_date` string, date-time
    - `locked` boolean
    - `locked_date` string, date-time, nullable
    - `locked_end_date` string, date-time, nullable
    - `is_subscribed_to_newsletter` boolean
    - `addresses` V1CustomerAddress[], nullable
      - `id` integer
      - `created_date` string, date-time, nullable
      - `modified_date` string, date-time, nullable
      - `customer_id` integer
      - `is_preferred_billing_address` boolean
      - `is_preferred_shipping_address` boolean
      - `first_name` string, nullable
      - `last_name` string, nullable
      - `company` string, nullable
      - `address` string, required
      - `address2` string, nullable
      - `town` string, required
      - `county` string, nullable
      - `country` string, required
      - `friendly_country` string, nullable
      - `post_code` string, required
      - `telephone` string, nullable
      - `fax` string, nullable

## Other responses

- `400`: Invalid Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: No Customer or Address for that Id found

---

[API](https://skmtc.dev/ekm/apis/ekm-partner-api.md) - [All operations](https://skmtc.dev/ekm/apis/ekm-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ekm/apis/ekm-partner-api/revisions/c22f05a7b0dc?raw)
