# Add a customer's recipient

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

**Create a customer's recipient** (Act as a platform). Adds a recipient and their first bank account or wallet. That account becomes the default.

Prerequisite: Permission `platform:customer_operate`. The customer is `active`.

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

Requires: organization platform; permission platform:customer_operate

## Request body

- `name` (string, required): Display name.
- `kind` (enum): Which kind of record this is. When uploading a document, send the kind from required_documents. One of: individual, business. One of individual, business.
- `email` (string): Email address.
- `category` (enum): What kind of recipient this is, such as a vendor or a contractor. One of vendor, customer, contractor, employee, other.
- `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.

```json
{
  "name": "Acme Robotics",
  "kind": "business",
  "email": "ada@acme-robotics.example",
  "category": "vendor",
  "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"
  }
}
```

Errors: invalid_routing_number, invalid_account_number, invalid_account_type, duplicate_account, name_required, unsupported_network

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/platforms/$PLATFORM_ORG_ID/customers/$CUSTOMER_ORG_ID/counterparties" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme Robotics",
  "kind": "business",
  "email": "ada@acme-robotics.example",
  "category": "vendor",
  "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"
  }
}'
```
