---
title: "Add a customer address · Customers · Practice Manager API · COUNT Partner API"
description: "Adds an address to a customer. POST /firm-partners/workspace/customers/{uuid}/addresses"
canonical: "https://developers.getcount.com/practice-manager/reference/customers/add-customer-address"
source: "https://developers.getcount.com/practice-manager/reference/customers/add-customer-address"
---
[Customers](https://developers.getcount.com/practice-manager/reference/customers) / Add a customer address

# Add a customer address

POST `/firm-partners/workspace/customers/{uuid}/addresses`

Adds an address to a customer.

Every field is optional individually, but the body must carry at least one of `street`, `city`, or `zipCode` — an address with none of those is rejected. Setting `isPrimary` demotes the customer’s current primary address.

HMAC signature only

[Invoices API](https://developers.getcount.com/practice-manager/reference/invoices) [Projects API](https://developers.getcount.com/practice-manager/reference/projects) [Recurring Invoice Templates API](https://developers.getcount.com/practice-manager/reference/recurring-invoice-templates)

#### Headers

`count-workspace-id` uuid required

UUID of the client workspace to act on. It must be one of your firm's client workspaces (or the firm's own workspace) and within the API key's client workspaces.

#### Path parameters

`uuid` uuid required

The customer UUID.

#### Request body

`street` string

Street address. One of street, city, or zipCode is required.

`street2` string

Second address line (suite, unit, floor).

`city` string

City or locality. One of street, city, or zipCode is required.

`state` string

State, province, or region.

`zipCode` string

Postal or ZIP code. One of street, city, or zipCode is required.

`country` string

Country name or ISO code.

`name` string

Label for this location (for example "Head office"). Up to 255 characters.

`isPrimary` boolean

Makes this the primary address, demoting the previous one. Defaults to false.

`latitude` number

Latitude of the location.

`longitude` number

Longitude of the location.

`googleMapsUrl` string

Google Maps link for the location.

`appleMapsUrl` string

Apple Maps link for the location.

`storeNumber` string

Store or branch number, for customers with numbered locations.

#### Responses

`201` Address created.

`400` Address must include at least a street, city, or zip code.

`401` Missing signing headers, an invalid HMAC signature, or a timestamp more than 5 minutes off. [Troubleshoot](https://developers.getcount.com/practice-manager/authentication#errors)

`403` The key is inactive or its scope does not allow this request, the workspace is not managed by your firm or is outside the key's client workspaces, the workspace has no active subscription, or it is portal-only and the route needs bookkeeping. [Troubleshoot](https://developers.getcount.com/practice-manager/authentication#errors)

`404` Customer not found.

`429` Rate limit exceeded (100 requests per minute per firm user of each app, or 10,000 per minute per app). [Troubleshoot](https://developers.getcount.com/practice-manager/authentication#errors)

[Previous GET List customer addresses](https://developers.getcount.com/practice-manager/reference/customers/list-customer-addresses) [Next PUT Update a customer address](https://developers.getcount.com/practice-manager/reference/customers/update-customer-address)

POST `https://api.getcount.com/firm-partners/workspace/customers/{uuid}/addresses`

Request

```javascript
import crypto from 'node:crypto';

const BASE_URL = 'https://api.getcount.com';
const CLIENT_ID = process.env.COUNT_CLIENT_ID;
const CLIENT_SECRET = process.env.COUNT_CLIENT_SECRET;

const method = 'POST';
const signingPath = '/workspace/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/addresses';
const timestamp = Math.floor(Date.now() / 1000).toString();
const body = {
  "name": "Head office",
  "street": "123 Main St",
  "street2": "Suite 400",
  "city": "San Francisco",
  "state": "CA",
  "zipCode": "94102",
  "country": "USA",
  "isPrimary": true
};
const bodyString = JSON.stringify(body);

const bodyHash = crypto.createHash('sha256').update(bodyString).digest('hex');
const baseString = `${method}:${signingPath}:${timestamp}:${bodyHash}`;
const signature = crypto.createHmac('sha256', CLIENT_SECRET).update(baseString).digest('hex');

const response = await fetch(`${BASE_URL}/firm-partners/workspace/customers/3fa85f64-5717-4562-b3fc-2c963f66afa6/addresses`, {
  method,
  headers: {
    'x-client-id': CLIENT_ID,
    'x-timestamp': timestamp,
    'x-signature': signature,
    'Content-Type': 'application/json',
    'count-workspace-id': '5e4d3c2b-1a09-4f8e-8d7c-6b5a49382716',
  },
  body: bodyString,
});

console.log(await response.json());
```

Response · 201

```json
{
  "status": "success",
  "message": "success on adding address to customer",
  "data": {
    "address": {
      "id": "8f1d2c3b-4a59-4e6f-8b70-1c2d3e4f5a6b",
      "name": "Head office",
      "isPrimary": true,
      "address": {
        "id": "0b2c1f5e-7a9d-4f2b-9c1e-2a4b6d8e0f12",
        "street": "123 Main St",
        "street2": "Suite 400",
        "city": "San Francisco",
        "state": "CA",
        "zipCode": "94102",
        "country": "USA"
      },
      "createdAt": "2026-01-15T10:30:00.000Z",
      "updatedAt": "2026-01-28T14:22:30.000Z"
    }
  }
}
```
