---
title: "Update customer's address"
method: PUT
path: "/customers/{customerId}/addresses/{addressId}"
tags: ["Customers"]
---

# Update customer's address

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

## Request

- Base URL: `https://api.awtomic.com`
- URL: `https://api.awtomic.com/customers/{customerId}/addresses/{addressId}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/awtomic/apis/awtomic-api/docs/customers/:customerId/addresses/:addressId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing address of a customer.

## Path parameters

- `customerId` string, required
- `addressId` string, required

## Request body

- object
  - `address` AddressShopify
    - `address1` string: Address line 1
    - `address2` string: Address line 2
    - `city` string: City
    - `company` string: Company
    - `countryCode` string: Country
    - `firstName` string: First name
    - `lastName` string: Last name
    - `phone` string: Phone
    - `provinceCode` string: Province
    - `zip` string: Zip

## Response `200`

Address updated

## Other responses

- `400`: Validation error

---

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