MCPOrders
Update a customer credit
distru-update-creditWriteQuickBooksChanges a customer credit's amount, notes or owner. Reaches QuickBooks when your settings sync credits and the customer is linked there, unless only the owner changes or the credit came from a QuickBooks credit memo.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Resolve via distru-search-credits. |
| amount | string or number | No | Dollars, the new face value. Only on a USER credit, and not below what has been applied (amount minus remainingBalance). |
| externalNote | string | No | Visible to the customer; "" clears it. Not on a QB_CREDIT_MEMO credit: QuickBooks owns its notes. |
| internalNote | string | No | Staff only; "" clears it. Not on a QB_CREDIT_MEMO credit: QuickBooks owns its notes. |
| ownerId | string | No | An active user whose credits the caller's team can see. Resolve via distru-search-users. |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| credit | object | Always |
| credit. | string | Always |
| credit. | string | Always |
| credit. | enumACTIVECANCELEDREDEEMED | Always |
| credit. | enumINVOICE_PAYMENTQB_CREDIT_MEMOQB_PAYMENTRETURNUSER | Always |
| credit. | string | Always |
| credit. | string | Always |
| credit. | string | Always |
| credit. | object | Can be null |
| credit. | string | Always |
| credit. | string | Null or absent |
| credit. | object | Can be null |
| credit. | string | Always |
| credit. | object | Always |
| credit. | string | Always |
| credit. | string | Can be null |
| credit. | string | Can be null |
| credit. | string | Can be null |
| credit. | string | Can be null |
| credit. | enumDELETED_IN_QBOERRORNOT_SYNCEDPARTIALLY_SYNCEDPENDINGSYNCED | Can be null |
| credit. | string | Always |
| credit. | string | Always |
| credit. | string | Can be null |
| credit. | object | Can be null |
| credit. | string | Always |
| credit. | string | Always |
| credit. | object | Can be null |
| credit. | string | Always |
| credit. | string | Always |
| credit. | object | Can be null |
| credit. | string | Always |
| credit. | string | Always |
| credit. | object[] | Always |
| credit. | string | Always |
| credit. | string | Always |
| credit. | object | Can be null |
| credit. | string | Always |
| credit. | string | Always |
| credit. | object | Can be null |
| credit. | string | Always |
| credit. | string | Always |
What the AI reads
Sparse update: changes a customer credit's amount, notes or owner; the fields left out stay as they are. Returns the credit as distru-get-credit does, without line items or history.