---
title: "Update customer address"
method: PATCH
path: "/api/v1/customers/{customerId}/addresses/{addressId}"
tags: ["customer-addresses"]
---

# Update customer address

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

Replaces the editable data of an existing address. Sending is_default=true also promotes it to the customer default (demoting the previous one).

## Path parameters

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

## Request body

- CustomerAddressUpdate
  - `complement` string, nullable
  - `is_default` boolean
  - `type` 'SHIPPING' | 'BILLING' | 'OTHER', required
  - `zip_code` string, required
  - `street` string, required
  - `number` string, required
  - `district` string, required
  - `city` string, required
  - `state` string, required
  - `country` string, required

## Response `200`

Address updated.

- CustomerAddressUpdateResponse
  - `id` string, required
  - `type` 'SHIPPING' | 'BILLING' | 'OTHER', required
  - `zip_code` string, required
  - `street` string, required
  - `number` string, required
  - `complement` string, nullable, required
  - `district` string, required
  - `city` string, required
  - `state` string, required
  - `country` string, required
  - `is_default` boolean, required
  - `source` 'MANUAL' | 'ERP', required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `400` — Request payload, query string, or path parameter failed validation.
- `401` — Authentication is missing, malformed, expired, or refers to a session that is no longer active.
- `403` — The caller is authenticated but lacks the required permission for this action.
- `404` — One of the referenced resources (Customer, CustomerAddress) was not found in the caller account.
- `422` — The payload passed schema validation but breaks an address domain invariant.
- `500` — Unexpected server error. The response body never leaks internal details.

---

[API](https://skmtc.net/kruzer-corp/apis/oms-api.md) · [All operations](https://skmtc.net/kruzer-corp/apis/oms-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kruzer-corp/oms-api/versions/38ef6e16a7a8/schema)
