Theme
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
CustomerRefandLine(a sales item line or a group item line). - Non-US companies need
SalesItemLineDetail.TaxCodeRefon each taxable line, as on an invoice. CurrencyRef,GlobalTaxCalculation(GB, AU, CA),ProjectRef, andBillEmail(whenEmailStatus=NeedToSend) are conditionally required.RemainingCredit("total credit amount still available to apply"),BalanceandTotalAmtare read-only.- A credit memo is applied to an invoice through a Payment line with
TxnTypeCreditMemo. - 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>/pdfandcreditmemo/<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.
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String, filterable | Unique id. |
SyncToken | * Required for update | String | Version number for optimistic locking. |
CustomerRef | * Required | ReferenceType, filterable | {"value": "<Customer.Id>"}. |
Line | * Required | Array | At least one sales item line or group item line. |
Line[]. | * Required | String | SalesItemLineDetail for an item line. |
Line[]. | * Required | Decimal | Line amount. |
Line[]. | Optional | ReferenceType | The item credited. |
Line[]. | Optional | Decimal | Quantity. |
Line[]. | Optional | Decimal | Unit price. |
Line[]. | * Conditionally required | ReferenceType | Tax code for the line. Needed for non-US companies. |
PrivateNote | Optional | String | Internal note. |
TotalAmt | Decimal | Total, recomputed by QuickBooks. | |
RemainingCredit | Decimal | Credit 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
| Attribute | Requirement | Type | Description |
|---|---|---|---|
CustomerRef | * Required | ReferenceType | {"value": "{{customer_id}}"}. |
Line | * Required | Array | One SalesItemLineDetail line: ItemRef = item_id, Qty 1, UnitPrice 30, Amount 30, TaxCodeRef = sales_tax_code_id. |
PrivateNote | Optional | String | Test marker. |
Returns
The new CreditMemo object. The test stores CreditMemo.Id in creditmemo_id and CreditMemo.SyncToken in creditmemo_sync_token.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/creditmemo?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/creditmemo |
| Content type | application/json |
| Postman | 9. Credit memos › Create credit memo |
| Stores | creditmemo_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 URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/creditmemo/{{creditmemo_id}} |
| Intuit operation | GET/v3/company/<realmID>/creditmemo/<creditmemoId> |
| Accept | application/json |
| Postman | 9. Credit memos › Read credit memo |
| Stores | creditmemo_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 URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=select * from CreditMemo where CustomerRef = '{{customer_id}}' |
| Intuit operation | GET/v3/company/<realmID>/query?query=<selectStatement> |
| Accept | application/json |
| Postman | 9. 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
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String | {{creditmemo_id}}. |
SyncToken | * Required for update | String | {{creditmemo_sync_token}}. |
sparse | * Required for a sparse update | Boolean | true. |
PrivateNote | Optional | String | New note. |
Returns
The updated CreditMemo object. The test stores the new SyncToken.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/creditmemo?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/creditmemo |
| Content type | application/json |
| Postman | 9. Credit memos › Update credit memo (sparse) |
| Stores | creditmemo_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
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required | String | {{creditmemo_id}}. |
SyncToken | * Required | String | {{creditmemo_sync_token}}. |
Returns
A short status object. The test checks that CreditMemo.status is Deleted.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/creditmemo?operation=delete&requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/creditmemo?operation=delete |
| Content type | application/json |
| Postman | 9. 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"
}