Issue a customer credit

distru-create-creditWriteQuickBooks

Issues 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.

FieldTypeRequiredDescription
customerIdstringYesResolve via distru-search-companies.
amountstring or numberYesDollars.
externalNotestringNoVisible to the customer.
internalNotestringNoStaff only.
ownerIdstringNoAn 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.

FieldTypePresence
creditobjectAlways
credit.idstringAlways
credit.creditNumberstringAlways
credit.statusenum
ACTIVECANCELEDREDEEMED
Always
credit.sourceenum
INVOICE_PAYMENTQB_CREDIT_MEMOQB_PAYMENTRETURNUSER
Always
credit.amountstringAlways
credit.originalAmountstringAlways
credit.remainingBalancestringAlways
credit.customerobjectCan be null
credit.customer.idstringAlways
credit.customer.namestringNull or absent
credit.ownerobjectCan be null
credit.owner.idstringAlways
credit.owner.profileobjectAlways
credit.owner.profile.fullNamestringAlways
credit.externalNotestringCan be null
credit.internalNotestringCan be null
credit.qbCreditMemoIdstringCan be null
credit.qbPaymentIdstringCan be null
credit.qbSyncStatusenum
DELETED_IN_QBOERRORNOT_SYNCEDPARTIALLY_SYNCEDPENDINGSYNCED
Can be null
credit.insertedAtstringAlways
credit.updatedAtstringAlways
credit.canceledAtstringCan be null
credit.sourcePaymentobjectCan be null
credit.sourcePayment.idstringAlways
credit.sourcePayment.paymentNumberstringAlways
credit.sourcePayment.invoiceobjectCan be null
credit.sourcePayment.invoice.idstringAlways
credit.sourcePayment.invoice.invoiceNumberstringAlways
credit.sourceReturnobjectCan be null
credit.sourceReturn.idstringAlways
credit.sourceReturn.returnNumberstringAlways
credit.creditUsesobject[]Always
credit.creditUses[].amountstringAlways
credit.creditUses[].appliedAtstringAlways
credit.creditUses[].paymentobjectCan be null
credit.creditUses[].payment.idstringAlways
credit.creditUses[].payment.paymentNumberstringAlways
credit.creditUses[].invoiceobjectCan be null
credit.creditUses[].invoice.idstringAlways
credit.creditUses[].invoice.invoiceNumberstringAlways
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.