> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Update the current customer's address

**Published**: 2026-11-30
**Category**: Commerce

## `PATCH /customers/me/addresses/:id`

**Update the current customer's address**

Updates the fields you send on one of the signed-in customer's
addresses; send at least one. An address the customer does not own
returns 404 `CUSTOMER_ADDRESS_NOT_FOUND`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes | Unique identifier |


### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `addressName` | string \| null | No | Label of the address, such as Home or Office |
| `firstName` | string | No | Given name; on an address, the recipient's. 1-120 characters |
| `lastName` | string | No | Family name; on an address, the recipient's. 1-120 characters |
| `company` | string \| null | No | Company name on the address |
| `address1` | string | No | 1-255 characters |
| `address2` | string \| null | No | Second address line, such as an apartment or suite |
| `city` | string | No | 1-120 characters |
| `postalCode` | string | No | 1-32 characters |
| `province` | string \| null | No | State, province or region of the address |
| `countryCode` | string | No | ISO 3166-1 alpha-2 country code |
| `phone` | string \| null | No | Phone number, stored as entered: no format is checked |
| `isDefaultShipping` | boolean | No | Whether this is the customer's default shipping address. `true` removes that default from their other addresses |
| `isDefaultBilling` | boolean | No | Whether this is the customer's default billing address. `true` removes that default from their other addresses |
| `metadata` | object | No | Custom key-value metadata |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Missing or invalid storefront publishable key or customer session token |
| `402` | The site subscription does not currently permit this operation |
| `403` | The storefront key origin is not allowed |
| `404` | Not found |
| `422` | Validation error |


> **Notes:** Returns 401 `CUSTOMER_AUTH_REQUIRED` without a valid session token, and
> 409 `RESOURCE_CONFLICT` when another address became the default concurrently.
> Limit: 10 per 15 minutes per site and client.

### SDK

```typescript
import { createClient } from 'lynkow'

const lynkow = createClient({
  siteId: process.env.LYNKOW_SITE_ID!,
  publishableKey: process.env.LYNKOW_PK,
})

await lynkow.customers.addresses.update('addr_123', { isDefaultBilling: true })
const addresses = await lynkow.customers.addresses.list() // the previous default is unset
```

### Examples

```curl
curl -X PATCH "https://api.lynkow.com/storefront/{siteId}/customers/me/addresses/addr_..." \
  -H "X-Lynkow-Pk: lkw_pk_..." \
  -H "Authorization: Bearer <customer-session-token>" \
  -H "Content-Type: application/json" \
  -d '{ "city": "Barcelona" }'
```

---