Skip to content

Postman docs › QuickBooks API (proxy) › CreditMemo

CreditMemo ​

A credit memo records money the company owes a customer, for example after a return. It can later be applied to an invoice. CreditMemo is a transaction entity. The collection creates, reads, queries, updates and deletes one.

Business rules

  • Create needs CustomerRef and Line (a sales item line or a group item line).
  • Non-US companies need SalesItemLineDetail.TaxCodeRef on each taxable line, as on an invoice.
  • CurrencyRef, GlobalTaxCalculation (GB, AU, CA), ProjectRef, and BillEmail (when EmailStatus=NeedToSend) are conditionally required.
  • RemainingCredit ("total credit amount still available to apply"), Balance and TotalAmt are read-only.
  • A credit memo is applied to an invoice through a Payment line with TxnType CreditMemo.
  • Intuit does not document a void for CreditMemo.
  • Sparse update is not listed on Intuit's CreditMemo reference, but it worked on the sandbox on 2026-12-01 (this collection).
  • Get as PDF and Send work as on Invoice, at creditmemo/<id>/pdf and creditmemo/<id>/send. The collection does not call them.

Postman folder: 9. Credit memos. Intuit reference: CreditMemo.

The CreditMemo object ​

Fields the collection uses. The full attribute list is in Intuit's reference.

AttributeRequirementTypeDescription
Id* Required for updateread onlysystem definedString, filterableUnique id.
SyncToken* Required for updateread onlysystem definedStringVersion number for optimistic locking.
CustomerRef* RequiredReferenceType, filterable{"value": "<Customer.Id>"}.
Line* RequiredArrayAt least one sales item line or group item line.
Line[].DetailType* RequiredStringSalesItemLineDetail for an item line.
Line[].Amount* RequiredDecimalLine amount.
Line[].SalesItemLineDetail.ItemRefOptionalReferenceTypeThe item credited.
Line[].SalesItemLineDetail.QtyOptionalDecimalQuantity.
Line[].SalesItemLineDetail.UnitPriceOptionalDecimalUnit price.
Line[].SalesItemLineDetail.TaxCodeRef* Conditionally requiredReferenceTypeTax code for the line. Needed for non-US companies.
PrivateNoteOptionalStringInternal note.
TotalAmtread onlyDecimalTotal, recomputed by QuickBooks.
RemainingCreditread onlyDecimalCredit still available to apply.

Create a credit memo ​

Creates a credit memo for the test customer, with one line of 1 × the service item at 30.

Request body ​

AttributeRequirementTypeDescription
CustomerRef* RequiredReferenceType{"value": "{{customer_id}}"}.
Line* RequiredArrayOne SalesItemLineDetail line: ItemRef = item_id, Qty 1, UnitPrice 30, Amount 30, TaxCodeRef = sales_tax_code_id.
PrivateNoteOptionalStringTest marker.

Returns ​

The new CreditMemo object. The test stores CreditMemo.Id in creditmemo_id and CreditMemo.SyncToken in creditmemo_sync_token.

Request
Request URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/creditmemo?requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/creditmemo
Content typeapplication/json
Postman9. Credit memos › Create credit memo
Storescreditmemo_id, creditmemo_sync_token

Request body

json
{
  "CustomerRef": {
    "value": "{{customer_id}}"
  },
  "Line": [
    {
      "DetailType": "SalesItemLineDetail",
      "Amount": 30,
      "Description": "QBO Connect Postman test",
      "SalesItemLineDetail": {
        "ItemRef": {
          "value": "{{item_id}}"
        },
        "Qty": 1,
        "UnitPrice": 30,
        "TaxCodeRef": {
          "value": "{{sales_tax_code_id}}"
        }
      }
    }
  ],
  "PrivateNote": "QBO Connect Postman test"
}

Returns (abridged)

json
{
  "CreditMemo": {
    "Id": "151",
    "SyncToken": "0",
    "CustomerRef": {
      "value": "64"
    },
    "Line": [
      {
        "DetailType": "SalesItemLineDetail",
        "Amount": 30,
        "SalesItemLineDetail": {
          "ItemRef": { "value": "31" },
          "Qty": 1,
          "UnitPrice": 30,
          "TaxCodeRef": { "value": "5" }
        }
      }
    ],
    "PrivateNote": "QBO Connect Postman test"
  },
  "time": "2026-12-01T02:24:00.000-08:00"
}

Read a credit memo ​

Retrieves one CreditMemo object. The test refreshes creditmemo_sync_token.

Request
Request URLGET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/creditmemo/{{creditmemo_id}}
Intuit operationGET/v3/company/<realmID>/creditmemo/<creditmemoId>
Acceptapplication/json
Postman9. Credit memos › Read credit memo
Storescreditmemo_sync_token

Query a credit memo ​

Finds the test customer's credit memos. The test needs at least one row.

Returns: QueryResponse.CreditMemo[].

Request
Request URLGET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=select * from CreditMemo where CustomerRef = '{{customer_id}}'
Intuit operationGET/v3/company/<realmID>/query?query=<selectStatement>
Acceptapplication/json
Postman9. Credit memos › Query credit memos by customer

Sparse update a credit memo ​

Changes the private note and leaves the lines as they are.

Request body ​

AttributeRequirementTypeDescription
Id* Required for updateString{{creditmemo_id}}.
SyncToken* Required for updateString{{creditmemo_sync_token}}.
sparse* Required for a sparse updateBooleantrue.
PrivateNoteOptionalStringNew note.

Returns ​

The updated CreditMemo object. The test stores the new SyncToken.

Request
Request URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/creditmemo?requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/creditmemo
Content typeapplication/json
Postman9. Credit memos › Update credit memo (sparse)
Storescreditmemo_sync_token

Request body

json
{
  "Id": "{{creditmemo_id}}",
  "SyncToken": "{{creditmemo_sync_token}}",
  "sparse": true,
  "PrivateNote": "Updated by QBO Connect Postman test"
}

Delete a credit memo ​

Deletes the credit memo permanently.

Request body ​

AttributeRequirementTypeDescription
Id* RequiredString{{creditmemo_id}}.
SyncToken* RequiredString{{creditmemo_sync_token}}.

Returns ​

A short status object. The test checks that CreditMemo.status is Deleted.

Request
Request URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/creditmemo?operation=delete&requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/creditmemo?operation=delete
Content typeapplication/json
Postman9. Credit memos › Delete credit memo

Request body

json
{
  "Id": "{{creditmemo_id}}",
  "SyncToken": "{{creditmemo_sync_token}}"
}

Returns

json
{
  "CreditMemo": {
    "status": "Deleted",
    "domain": "QBO",
    "Id": "151"
  },
  "time": "2026-12-01T02:25:00.000-08:00"
}