---
title: "Transfer and card-payment pairs between a QuickBooks-ledger company's stored QuickBooks bank and card lines"
method: GET
path: "/accountant/companies/{customerId}/agent/quickbooks/transfer-pairs"
tags: ["Accountant Portal"]
---

# Transfer and card-payment pairs between a QuickBooks-ledger company's stored QuickBooks bank and card lines

`GET /accountant/companies/{customerId}/agent/quickbooks/transfer-pairs`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/agent/quickbooks/transfer-pairs`
- Auth: HTTP bearer

The bookkeeping agent's key only (#5669); anyone else gets 404, and so does a company that is neither on `PENNY_QBO_SHADOW_COMPANY_IDS` nor the production pilot. Read-only over the latest QuickBooks read Median already stores. A pair is an Ask My Accountant or uncategorized line out of one Bank or Credit Card account and one into another, equal in cents and currency, at most 3 days apart, each the other's only match; `card_payment` is Bank out and Credit Card in. `state` is `stale` when the month and its neighbours come from different reads, `truncated` when a month is over the read cap, and `unavailable` when there is no completed read. `key` is `qbo-pair:<OutType>:<OutId>:<InType>:<InId>`. Refused with 409 when QuickBooks is not the company's ledger, 403 `AGENT_PHI_RESTRICTED` for a patient-data-restricted company, and 409 `AGENT_DISABLED` or `AGENT_KILLED` when the agent may not run there.

## Path parameters

- `customerId` string, uuid, required

## Query parameters

- `month` string, required

## Response `200`

Success envelope

- object
  - `success` boolean, required
  - `data` object, required
    - `state` 'ok' | 'stale' | 'unavailable' | 'truncated', required
    - `snapshot` PennyQuickBooksSnapshot, required: The stored QuickBooks read an answer comes from (#5669); both null when there is none.
      - `runId` string, uuid, nullable, required
      - `completedAt` string, date-time, nullable, required
    - `truncated` boolean, required
    - `pairs` object[], required
      - `key` string, required
      - `kind` 'transfer' | 'card_payment', required
      - `amountCents` integer, required: Integer cents.
      - `currency` string, required
      - `out` PennyQuickBooksLineRef, required
        - `objectType` string, required
        - `providerId` string, required
        - `accountName` string, required
        - `txnDate` string, date, required
      - `in` PennyQuickBooksLineRef, required
        - `objectType` string, required
        - `providerId` string, required
        - `accountName` string, required
        - `txnDate` string, date, required
    - `counts` object, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Validation error

## Changes

- **2026-11-27** `4522ab392ac0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/agent/quickbooks/transfer-pairs/get.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
