---
title: "Match a bank transaction to an invoice or bill"
method: POST
path: "/bank-transactions/{transactionId}/match"
tags: ["Banking"]
---

# Match a bank transaction to an invoice or bill

`POST /bank-transactions/{transactionId}/match`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/bank-transactions/{transactionId}/match`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

## Path parameters

- `transactionId` string, uuid, required

## Request body

- MatchRequest
  - `billId` string
  - `invoiceId` string
  - `amount` integer, required: Integer cents. Example: 1250 means $12.50.
  - `date` string, date, required
  - `method` 'bank_transfer' | 'cash' | 'check' | 'card' | 'other'

## Response `200`

Match result

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
