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

# Issue a customer deposit address

> POST /customer-address — one standing deposit address per customer, network and token. Opt-in, testnet.

Issues a standing deposit address for one of your customers on one network and token, or returns the one already issued. Most integrations call it through [`CryptoCheckout.customerDeposit`](https://docs.cryptocheckout.ai/integration/customer-deposit), which verifies the result in the browser before showing it.

> [!NOTE]
>
> **Testnet, opt-in.** Base Sepolia (`84532`) and Ethereum Sepolia (`11155111`) today. [Per-customer deposit addresses](https://docs.cryptocheckout.ai/integration/customer-deposit.md).

## Authentication

Unlike the checkout endpoints, this one takes a secret, so **call it from your server only**.

**header.X-Api-Key** `string` *required*

Your API key, `sk_live_…`, from **API & SDK** in the dashboard. Never put it in a web page.

## Request

The body is an allowlist. A key that looks like an identity (`email`, `username`, `player_id`, `phone`, `name`, …) is refused with `400 identity_field_rejected`. Any other unknown key is refused with `400 unknown_field`. Neither error repeats the key or its value.

**body.chainId** `number` *required*

Numeric chain ID.

**body.token** `string` *required*

Token symbol (`USDC`) or token address. It has to be one you accept on that network.

**body.customerRef** `string` *required*

An opaque reference to your customer, 1 to 256 UTF-8 bytes, no control characters. `customer_ref` is accepted as an alias; sending both is `400 customer_ref_ambiguous`.

We never store it. It is turned into a keyed hash scoped to the network and token, and only that hash is kept. Send your own id, a UUID or a hash of your own. Never send an e-mail address, a phone number or a name.

**body.merchantId** `string`

Optional. If you send it, it has to be your own account, or the call answers `403 merchant_mismatch`.

```bash theme={null}
curl -X POST $CC_API_BASE/customer-address \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $CC_API_KEY" \
  -d '{ "chainId": 84532, "token": "USDC", "customerRef": "cus_7f3a9c" }'
```

## Response

```json theme={null}
{
  "ok": true,
  "reused": false,
  "address": "0x…",
  "chainId": 84532,
  "namespace": "evm",
  "deployed": false,
  "token": { "symbol": "USDC", "address": "0x036c…", "decimals": 6 },
  "binding": {
    "pool": {
      "poolAddress": "0x…", "accountId16": "0x…", "recipient": "0x…", "treasury": "0x…", "partner": "0x…",
      "protocolFeeBps": 75, "partnerFeeBps": 25, "recipientAnchored": true, "anchorSource": "identity",
      "effectiveRecipient": "0x…"
    },
    "implementation": "0x08f9…", "factory": "0x4e59…", "merchantId16": "0x…", "customerDepositId": "0x…",
    "token": "0x036c…", "firstSurcharge": "953442", "surchargePerSweep": "321651", "maxSurchargeBps": 1000
  }
}
```

**address** `string`

The customer's deposit address on this network, for this token.

**reused** `boolean`

`true` when the address was issued before. The call is idempotent on (you, network, token, customer).

**deployed** `boolean`

Whether the address has code yet. It doesn't need it to receive a deposit.

**token** `object`

The token the address commits its fee terms to.

**binding** `object`

Everything the address is derived from: your pool's committed configuration, the contract the address runs, the factory, the keyed customer id, the token and the two fee terms (token base units). On a network where cryptocheckout covers the network fee (every test network today), a new address has both terms `"0"`; `422 surcharge_above_ceiling` and `503 surcharge_unavailable` don't occur there. The browser uses it to re-derive the address from the chain. Treat it as a hint: **show an address only after verification**, which is what the SDK does for you. [Verification](https://docs.cryptocheckout.ai/concepts/verification.md).

## Errors

Every error is `{ "ok": false, "error": "<code>" }`.

| Status | `error` | Meaning |
| - | - | - |
| `400` | `invalid_json`, `invalid_body`, `identity_field_rejected`, `unknown_field`, `customer_ref_required`, `customer_ref_ambiguous`, `invalid_customer_ref`, `invalid_chain_id`, `invalid_token`, `invalid_merchant_id` | The request was refused as sent. |
| `401` | `invalid_api_key` | Missing or unknown key. |
| `403` | `merchant_inactive`, `merchant_mismatch` | |
| `404` | `no_account` | |
| `409` | `pool_not_provisioned`, `pool_not_deployed`, `pool_recipient_unanchored` | Your pool on that network isn't ready. Deploy it from the dashboard. |
| `409` | `rail3_unavailable_with_enforce_screening` | Payer screening is set to Enforce, which this rail can't apply yet. |
| `422` | `rail3_not_available_on_chain`, `token_unsupported_on_chain`, `token_not_watched_on_chain`, `token_not_enabled` | Not available for that network or token. |
| `422` | `surcharge_above_ceiling` | Network fees are too high right now to fix into a permanent address. Also returns `firstSurchargeUsd`, `surchargePerSweepUsd` and `ceilings`. Try again later. |
| `429` | `rate_limited` | With `Retry-After` and `retry_after_seconds`. |
| `503` | `rail3_issuance_disabled`, `pool_state_unknown`, `blinding_key_unavailable`, `surcharge_unavailable` | Temporarily unavailable. Retry. |
| `500` | (a lookup or write failure) | No detail is returned. Retry. |

Deposits to the address are reported by the [`customer.deposit.confirmed`](https://docs.cryptocheckout.ai/webhooks/events#per-customer-deposits) webhook.


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