---
title: "Register accounts under a customer API bank connection"
method: POST
path: "/public/v2/bank-connections/{connection_id}/accounts/"
tags: ["Bank Connections"]
---

# Register accounts under a customer API bank connection

`POST /public/v2/bank-connections/{connection_id}/accounts/`

Upsert accounts for an existing customer_api connection identified by DualEntry connection id.

## Path parameters

- `connection_id` integer, required

## Headers

- `Idempotency-Key` string

## Request body

- PublicBankConnectionAccountsRegisterSchemaIn
  - `accounts` PublicBankConnectionAccountSchemaIn[], required
    - `account_id` string, required — Stable customer-supplied account key.
    - `account_name` string, required — Display name for the account.
    - `truncated_account_number` string, nullable
    - `currency_iso_4217_code` string, nullable

## Response `200`

OK

- PublicBankConnectionSchemaOut
  - `id` integer, required
  - `connection_source_id` string, required
  - `institution_name` string, nullable
  - `status` string, required
  - `successfully_aggregated_at` string, date-time, nullable
  - `last_sync_at` string, date-time, nullable
  - `accounts` PublicBankConnectionAccountSchemaOut[]
    - `id` integer, required
    - `account_id` string, required
    - `account_name` string, required
    - `truncated_account_number` string, nullable
    - `currency_iso_4217_code` string, nullable
    - `status` string, required

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `422` — Unprocessable Content

---

[API](https://skmtc.net/dualentry/apis/dualentry-public-api.md) · [All operations](https://skmtc.net/dualentry/apis/dualentry-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dualentry/dualentry-public-api/revisions/dcb8297898a2/schema)
