# Send accounts

`POST /api/erp/v1/customers`

Sends ERP accounts; Solk matches each to a CRM company — tax number first, then name (Turkish letters and legal suffixes ignored). If the connection is set to *create companies for unmatched accounts*, unmatched ones are created (`created`). If a record carries `balance`, `overdue`, `credit_limit` the balance is written too. `ext_id` is the account's stable ERP id (else `code`); the same `ext_id` updates the record. At most 2,000 records per request.

## Body

| Field | Type | Description |
|---|---|---|
| `items` (required) | array | Accounts: `ext_id`, `code`, `name`, `tax_no`, `tax_office`, `email`, `phone`, `city`, `currency`, (optional) `balance`, `overdue`, `credit_limit`. |

## Response

```json 200
{
  "created": 0,
  "matched": 1,
  "new": 2,
  "ok": true,
  "received": 2,
  "unmatched_total": 1
}
```
