# Add a customer's recipient account

`POST /v1/platforms/{platformOrgId}/customers/{customerOrgId}/counterparties/{counterpartyId}/accounts`

**Add a recipient account** (Act as a platform). Adds another bank account or wallet to a recipient.

Prerequisite: Permission `platform:customer_operate`.

Acts on a linked customer with the platform's own key or team (platform:customer_operate). Same as POST /v1/orgs/{orgId}/counterparties/{counterpartyId}/accounts. Adds another bank account or wallet to a recipient. Requires two-factor authentication.

Requires: organization platform; permission platform:customer_operate

## Request body

- `bank` (BankAccountInput): US bank details for a new recipient account or an account the organization owns.
- `bank.label` (string): Nickname, e.g. Operating account (default: bank name and last four)
- `bank.owner_name` (string): Name of the account holder at the other bank.
- `bank.bank_name` (string): Name of the bank.
- `bank.routing_number` (string, required): ABA routing number of the US bank.
- `bank.account_number` (string, required): Bank account number. Responses return only the last four digits.
- `bank.account_type` (enum): Whether the bank account is a checking or savings account. One of: checking, savings. One of checking, savings.
- `bank.rails` (enum[]): Rails this account can receive. One of ach_credit, same_day_ach_credit, wire, fednow_credit.
- `bank.bank_address` (Address): A postal address.
- `bank.bank_address.street_line_1` (string, required): Street address.
- `bank.bank_address.street_line_2` (string): Apartment, suite, or other second address line.
- `bank.bank_address.city` (string, required): City.
- `bank.bank_address.state` (string, required): State or region. Use the USPS abbreviation when the country is US.
- `bank.bank_address.zip` (string, required): Postal code. In the United States this is the ZIP code.
- `bank.beneficiary_address` (Address): A postal address.
- `bank.beneficiary_address.street_line_1` (string, required): Street address.
- `bank.beneficiary_address.street_line_2` (string): Apartment, suite, or other second address line.
- `bank.beneficiary_address.city` (string, required): City.
- `bank.beneficiary_address.state` (string, required): State or region. Use the USPS abbreviation when the country is US.
- `bank.beneficiary_address.zip` (string, required): Postal code. In the United States this is the ZIP code.
- `wallet` (WalletInput): A stablecoin wallet address and the network it is on.
- `wallet.label` (string): Short name chosen for this record.
- `wallet.network` (string, required): Blockchain network, such as base.
- `wallet.address` (string, required): On-chain address of the wallet.
- `make_default` (boolean): When true, this account becomes the one preselected when paying this recipient.

```json
{
  "bank": {
    "label": "Operating account",
    "owner_name": "Globex Supplies LLC",
    "bank_name": "Example Bank",
    "routing_number": "021000021",
    "account_number": "000123456789",
    "account_type": "checking",
    "rails": [
      "ach_credit"
    ],
    "bank_address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip"
    },
    "beneficiary_address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip"
    }
  },
  "wallet": {
    "label": "Operating account",
    "network": "base",
    "address": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
  },
  "make_default": false
}
```

Errors: duplicate_account, too_many_accounts

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/platforms/$PLATFORM_ORG_ID/customers/$CUSTOMER_ORG_ID/counterparties/$COUNTERPARTY_ID/accounts" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "bank": {
    "label": "Operating account",
    "owner_name": "Globex Supplies LLC",
    "bank_name": "Example Bank",
    "routing_number": "021000021",
    "account_number": "000123456789",
    "account_type": "checking",
    "rails": [
      "ach_credit"
    ],
    "bank_address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip"
    },
    "beneficiary_address": {
      "street_line_1": "street line 1",
      "street_line_2": "street line 2",
      "city": "San Francisco",
      "state": "CA",
      "zip": "zip"
    }
  },
  "wallet": {
    "label": "Operating account",
    "network": "base",
    "address": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
  },
  "make_default": false
}'
```
