> ## Documentation Index
> Fetch the complete documentation index at: https://docs.integrateledger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accounts: customers that are one business

> Group customers that belong to one business, such as a company's US and EU customers or a team that signed up twice, and see them together.

See every customer a business holds in one place. An account groups customers that belong to one business: a company billed through a US and an EU customer, or a team that signed up twice. Each customer keeps its own plans, balances, invoices and Stripe customer, so grouping them never changes what anyone is billed or can use.

## Link customers

[Create or update an account](https://docs.integrateledger.com/api-reference/accounts/save.md) with your own `accountId` and the customers to add:

```typescript TypeScript theme={"system"}
const account = await billing.saveAccount({
	accountId: "acme",
	name: "Acme",
	addCustomerIds: ["acme-us", "acme-eu"],
});
```

```python Python theme={"system"}
account = billing.save_account(
    account_id="acme",
    name="Acme",
    add_customer_ids=["acme-us", "acme-eu"],
)
```

```bash cURL theme={"system"}
curl https://api.integrateledger.com/v1/accounts \
  -H "Authorization: Bearer $LEDGER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"accountId": "acme", "name": "Acme", "addCustomerIds": ["acme-us", "acme-eu"]}'
```

```json Response theme={"system"}
{
  "accountId": "acme",
  "name": "Acme",
  "customerIds": ["acme-eu", "acme-us"],
  "createdAt": "2026-11-23T18:04:11.000Z",
  "updatedAt": "2026-11-23T18:04:11.000Z"
}
```

The same call renames the account (`null` clears the name), adds customers with `addCustomerIds` and takes them out with `removeCustomerIds`. Adding a customer already in the account, or removing one that isn't, changes nothing. A customer in another account moves over with `move: true`.

## Read an account

* [Get an account](https://docs.integrateledger.com/api-reference/accounts/get.md) by its ID, with its `customerIds`.
* [Get a customer's account](https://docs.integrateledger.com/api-reference/accounts/customer.md) with `GET /v1/accounts?customerId=`.
* [Get a customer](https://docs.integrateledger.com/api-reference/customers/get.md) and [list customers](https://docs.integrateledger.com/api-reference/customers/list.md) include `accountId`.

The dashboard's customer page shows the customer's account and links to its other customers.

## Remove and delete

Removing an account's last customer keeps the account, empty, since you own its ID. [Delete it](https://docs.integrateledger.com/api-reference/accounts/delete.md) to unlink every customer in it; nothing else about them changes.

## Rules

* **Display only.** Check, track, attach and invoices read each customer on its own.
* **One account per customer.** Adding a customer that's in another account is `409 customer_in_other_account`, naming that account in `accountId`, unless the request sends `move: true`.
* **All or nothing.** Every change in a request is made together or not at all, and a refused request creates no account.
* **Up to 100 IDs** in each of `addCustomerIds` and `removeCustomerIds`, and a customer in one list only (`400 invalid_request`).
* **Known customers.** An unknown customer in `addCustomerIds` is `404 customer_not_found`; a customer in no account reads as `404 account_not_found`.
* **Permissions.** Reading accounts needs the **Customers** permission at Read; changing them needs it at Write.

## Related

* [Creating customers](https://docs.integrateledger.com/customers/creating-customers.md): the customers accounts group.
* [Entities](https://docs.integrateledger.com/customers/entities.md): users and workspaces inside one customer, sharing its balance.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.