QuickBooks Desktop credit memos API

Credits issued to customers, and how much of each is still available to apply. Credit memos come from QuickBooks transactions (qbXML CreditMemoQuery).

List credit memos

GET/v1/files/{file_id}/credit-memos

List credit memos. 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: open, remaining, used, 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).
rowsquerystring: records, lineslines gives one row per line item (with format=csv or flat=1).

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 credit memo

GET/v1/files/{file_id}/credit-memos/{qb_id}

One credit memo 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

Credit memos 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 }.
totalnumberTotal amount, in the transaction's currency.
remainingnumberCredit not used yet.
linesCreditMemosLine[]Line items: item, description, quantity, rate, amount, class.
Line item fields
FieldTypeDescription
itemRefThe item, as { id, name }.
descriptionstringThe line's description.
quantitynumberQuantity.
ratenumberPrice per unit.
amountnumberThe line amount.
classRefThe class on the line, when classes are turned on.

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/credit-memos?status=open&limit=100"
{
  "object": "list",
  "resource": "credit-memos",
  "file_id": "file_8f2c41",
  "data": [
    {
      "id": "1A61-1700000700",
      "number": "CM-14",
      "date": "2026-11-09",
      "customer": {
        "id": "80000001-1700000000",
        "name": "Acme Construction"
      },
      "total": 150,
      "remaining": 150
    }
  ],
  "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 credit memos

Credits and what is left on them

A credit memo records money you owe a customer back or will take off a later invoice: returned goods, a billing mistake, a goodwill credit. total is the full credit and remaining is the part not used yet. status=open (or status=remaining) lists credits with something left; status=used lists the ones fully applied.

When a credit is applied to an invoice, QuickBooks counts it in that invoice's applied amount alongside payments, so the invoice shows a lower balance. The credit memo itself keeps its original total and shows the smaller remaining.

Why credits matter for receivables

Open credits lower what a customer owes on the A/R aging summary even before they are applied to anything. If you build your own receivables view from open invoices, subtract open credits by customer, and unused payments too, or your totals will run higher than QuickBooks' report:

GET /v1/files/file_8f2c41/invoices?status=open&fields=customer,balance&format=csv
GET /v1/files/file_8f2c41/credit-memos?status=open&fields=customer,remaining&format=csv
GET /v1/files/file_8f2c41/payments?status=unused&fields=customer,unusedAmount&format=csv

Sum each by customer_name, then take the invoices less the other two.

Line items for returns

Credit memos carry line items like invoices, so rows=lines&format=csv gives returns by item: pivot on item_name and sum amount next to sales by item from invoices and sales receipts. Voided credit memos stay in the list with zero amounts, as QuickBooks keeps them; deleted ones are gone after the daily sweep for deleted records. The customer filter includes a customer's jobs.

Also in the reference: Invoices, Sales receipts, Payments, Estimates.