MCPOrders
Issue a customer credit
distru-create-creditWriteQuickBooksIssues a credit that a customer's later payments can draw on. Reaches QuickBooks when your settings sync credits and the customer is linked there.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| customerId | string | Yes | Resolve via distru-search-companies. |
| amount | string or number | Yes | Dollars. |
| externalNote | string | No | Visible to the customer. |
| internalNote | string | No | Staff only. |
| ownerId | string | No | An active user whose credits the caller's team can see; default the caller. 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
Issues a customer credit for an amount, which the customer's later payments can draw on (distru-create-invoice-payment's creditAmount). Returns the credit as distru-get-credit does, without line items or history.