QuickBooks Desktop payments API

Customer payments received, and which invoices each one paid. Payments come from QuickBooks transactions (qbXML ReceivePaymentQuery).

List payments

GET/v1/files/{file_id}/payments

List payments. Follow next_cursor for the rest (how pages work).

Parameters

ParameterInTypeDescription
file_id (required)pathstringThe company file id (file_...), from GET /v1/files.
limitqueryintegerRecords per page, 1 to 500. Default 100.
cursorquerystringnext_cursor from the previous page. Keep the other parameters the same while paging.
modified_sincequerystringOnly records changed at or after this time (ISO 8601 date-time with offset, or a date).
date_fromquerydateTransaction date on or after (YYYY-MM-DD).
date_toquerydateTransaction date on or before (YYYY-MM-DD).
statusquerystring: unused, open, applied, closed, allFilter by status.
customerquerystringA customer id or name. A customer includes its jobs.
fieldsquerystringComma-separated top-level fields to return (id is always included).
if_queuedquerystring: errorerror: for clients that can't come back later, such as a scheduled sheet refresh. Instead of 202, a no-copy file answers 409 no_copy_kept at once and nothing is queued; a report QuickBooks hasn't sent yet answers 409 report_not_ready (it is still asked for at the next check-in).
orderquerystring: date, modified, iddate (newest first, default), modified (oldest change first, default with modified_since) or id.
formatquerystring: json, csvjson (default) or csv. Accept: text/csv works too.
flatquerystring: 11 returns the flat rows CSV uses, as JSON (what the Power Query recipe reads).

Responses

StatusMeans
200OK
202The company file keeps no copy here. The answer arrives at the next Web Connector check-in; read the job then.
400A parameter isn't valid, or the key was put in the URL.
401No key, or the key isn't valid.
404No such company file, record or job for this key.
409if_queued=error was sent and the answer would have had to wait for the next check-in: the company file keeps no copy (no_copy_kept), or QuickBooks hasn't sent this report yet (report_not_ready). Run it again after the check-in.
429More than 60 requests a minute with this key. Retry-After says when to try again.

One payment

GET/v1/files/{file_id}/payments/{qb_id}

One payment by its QuickBooks id.

Parameters

ParameterInTypeDescription
file_id (required)pathstringThe company file id (file_...), from GET /v1/files.
qb_id (required)pathstringQuickBooks' id for the record (ListID or TxnID).
if_queuedquerystring: errorerror: for clients that can't come back later, such as a scheduled sheet refresh. Instead of 202, a no-copy file answers 409 no_copy_kept at once and nothing is queued; a report QuickBooks hasn't sent yet answers 409 report_not_ready (it is still asked for at the next check-in).
formatquerystring: json, csvjson (default) or csv. Accept: text/csv works too.

Fields

Payments fields
FieldTypeDescription
idstringQuickBooks' own id (ListID for lists, TxnID for transactions).
editSequencestringChanges every time the record is edited in QuickBooks.
createdAtdate-timeWhen the record was created, with the company file's time offset.
modifiedAtdate-timeWhen the record last changed. Use modified_since to read only what changed.
numberstringThe number people see (invoice number, check number).
datedateThe transaction date (YYYY-MM-DD).
memostringThe memo field.
currencystringCurrency code, when the company file uses multiple currencies.
exchangeRatenumberExchange rate to the home currency, when the company file uses multiple currencies.
customerRefThe customer or job, as { id, name }.
amountnumberThe payment amount.
paymentMethodRefHow it was paid.
depositToRefThe account the money went to.
unusedAmountnumberThe part of the payment not applied to any invoice yet.
appliedToAppliedTo[]The transactions this payment was applied to, as { txnId, amount }.

Ref is { id, name }: QuickBooks' id and full name, so reports can show names without a second request. CSV flattens each record into one row; the columns are listed in the OpenAPI document.

Example

curl -H "Authorization: Bearer dbk_your_key" "https://desktop-app.greatwork.company/v1/files/file_8f2c41/payments?status=open&limit=100"
{
  "object": "list",
  "resource": "payments",
  "file_id": "file_8f2c41",
  "data": [
    {
      "id": "1A55-1700000600",
      "date": "2026-11-15",
      "customer": {
        "id": "80000001-1700000000",
        "name": "Acme Construction"
      },
      "amount": 2500,
      "unusedAmount": 0,
      "appliedTo": [
        {
          "txnId": "1A2A-1699990000",
          "amount": 2500
        }
      ]
    }
  ],
  "next_cursor": null,
  "has_more": false,
  "synced_at": "2026-11-27T07:04:12-06:00",
  "as_of": "2026-11-27T07:03:58-06:00"
}

About payments

A payment and the invoices it paid

In QuickBooks Desktop a customer payment is a transaction of its own (Receive Payments), separate from the invoices it pays. appliedTo lists each invoice it was applied to as { txnId, amount }, where txnId is the invoice's id in invoices. One payment can cover several invoices, and one invoice can be paid by several payments, so join on that pair rather than on amounts.

A worked example: the payment below covers two invoices in full.

{ "id": "1A55-1700000600", "date": "2026-11-15", "amount": 2500, "unusedAmount": 0,
  "appliedTo": [ { "txnId": "1A2A-1699990000", "amount": 1300 }, { "txnId": "1A2C-1699990200", "amount": 1200 } ] }

appliedTo comes in JSON (CSV carries only an applied_count column). Look up each txnId among the invoices and you have days to pay for each one: the payment date minus the invoice date. Averaged by customer over a quarter, that is a useful number for deciding whom to call first.

Unused amounts

When a customer pays more than the invoices you apply it to, QuickBooks keeps the rest on the payment as unused credit. unusedAmount shows it, and status=unused lists every payment that still has some. Those amounts lower what the customer owes on the A/R aging summary even though no invoice shows them, which is a common reason an invoice list and the aging report don't add up to the same total.

From payment to bank

depositTo is usually Undeposited Funds: QuickBooks puts invoice payments there when you receive them, and they reach the bank when a deposit is recorded (Intuit's article). The balance of the Undeposited Funds account in accounts is the total still waiting. To see which payments make it up, match payments whose depositTo is Undeposited Funds against the lines of deposits by customer and amount; deposit lines don't carry the payment's id. The customer filter includes a customer's jobs.

Also in the reference: Invoices, Sales receipts, Credit memos, Estimates.