---
title: "Sync Transactions"
method: POST
path: "/api/banking/sync/{connection_id}"
tags: ["Banking"]
---

# Sync Transactions

`POST /api/banking/sync/{connection_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/banking/sync/{connection_id}`
- Auth: HTTP bearer

Sync accounts and transactions from a connected bank via Yapily.

Fetches the latest accounts, balances, and transactions, upserts them
into the database, and deduplicates by external_id.

## Path parameters

- `connection_id` string, uuid, required

## Response `200`

Successful Response

- AppApiBankingSyncResponse
  - `accounts_synced` integer, required
  - `transactions_synced` integer, required
  - `new_transactions` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
