Void an invoice payment
distru-void-invoice-paymentWriteLeafLinkQuickBooksVoids 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.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Resolve via distru-search-invoice-payments. |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| invoicePayment | object | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | enumPOSTEDVOIDED | Always |
| invoicePayment. | string | Can be null |
| invoicePayment. | object | Can be null |
| invoicePayment. | string | Always |
| invoicePayment. | object | Can be null |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Can be null |
| invoicePayment. | object | Can be null |
| invoicePayment. | string | Always |
| invoicePayment. | string | Null or absent |
| invoicePayment. | object | Can be null |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | enumNOT_PAIDOVER_PAIDPAIDPARTIALLY_PAID | Always |
| invoicePayment. | string | Can be null |
| invoicePayment. | string | Can be null |
| invoicePayment. | enumDELETED_IN_QBOERRORNOT_SYNCEDPARTIALLY_SYNCEDPENDINGSYNCED | Can be null |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | object[] | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | object | Can be null |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | object[] | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | string | Always |
| invoicePayment. | enumACTIVECANCELEDREDEEMED | 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.