Void an invoice payment

distru-void-invoice-paymentWriteLeafLinkQuickBooks

Voids a payment received against an invoice. Reaches QuickBooks when your QuickBooks settings sync payments, and LeafLink when your LeafLink settings sync payments and the order is linked to LeafLink.

Inputs

Every tool also takes the common inputs.

FieldTypeRequiredDescription
idstringYesResolve via distru-search-invoice-payments.

Output

Presence on a nested field assumes its parent exists.

FieldTypePresence
invoicePaymentobjectAlways
invoicePayment.idstringAlways
invoicePayment.paymentNumberstringAlways
invoicePayment.paymentDatestringAlways
invoicePayment.statusenum
POSTEDVOIDED
Always
invoicePayment.voidedAtstringCan be null
invoicePayment.receivedobjectCan be null
invoicePayment.received.amountstringAlways
invoicePayment.received.paymentMethodobjectCan be null
invoicePayment.received.paymentMethod.idstringAlways
invoicePayment.received.paymentMethod.namestringAlways
invoicePayment.creditAmountstringAlways
invoicePayment.appliedAmountstringAlways
invoicePayment.overpaidAmountstringAlways
invoicePayment.notestringCan be null
invoicePayment.customerobjectCan be null
invoicePayment.customer.idstringAlways
invoicePayment.customer.namestringNull or absent
invoicePayment.invoiceobjectCan be null
invoicePayment.invoice.idstringAlways
invoicePayment.invoice.invoiceNumberstringAlways
invoicePayment.invoice.paymentStatusenum
NOT_PAIDOVER_PAIDPAIDPARTIALLY_PAID
Always
invoicePayment.qbDepositAccountstringCan be null
invoicePayment.qbPaymentIdstringCan be null
invoicePayment.qbSyncStatusenum
DELETED_IN_QBOERRORNOT_SYNCEDPARTIALLY_SYNCEDPENDINGSYNCED
Can be null
invoicePayment.insertedAtstringAlways
invoicePayment.updatedAtstringAlways
invoicePayment.creditUsesobject[]Always
invoicePayment.creditUses[].amountstringAlways
invoicePayment.creditUses[].appliedAtstringAlways
invoicePayment.creditUses[].creditobjectCan be null
invoicePayment.creditUses[].credit.idstringAlways
invoicePayment.creditUses[].credit.creditNumberstringAlways
invoicePayment.overpaymentCreditsobject[]Always
invoicePayment.overpaymentCredits[].idstringAlways
invoicePayment.overpaymentCredits[].creditNumberstringAlways
invoicePayment.overpaymentCredits[].amountstringAlways
invoicePayment.overpaymentCredits[].statusenum
ACTIVECANCELEDREDEEMED
Always
What the AI reads

Voids a payment received against an invoice: its applied amount comes off the invoice and the credit it used is released. The credits its overpayment created are canceled and their uses removed, so any other invoice they paid owes that amount again. Rejected when the payment is already voided, and as not existing when the ID is a purchase payment's: void that with distru-void-purchase-payment. Returns the voided payment as distru-get-invoice-payment does.