Get an invoice payment
distru-get-invoice-paymentReadGets one payment received against an invoice by ID, with the credits it used (creditUses) and the credits its overpayment created (overpaymentCredits).
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 | Can be null |
| 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
Gets one payment received against an invoice by ID, with the credits it used (creditUses) and the credits its overpayment created (overpaymentCredits). To browse or filter payments use distru-search-invoice-payments. appliedAmount is what counts toward the invoice's paid amount: received.amount + creditAmount = appliedAmount + overpaidAmount, and overpaidAmount became customer credit. received is null when the payment was made entirely with credit. A VOIDED payment keeps its amounts as recorded, so leave it out of totals. customer and invoice are null when the caller's team can't see them. qbSyncStatus ERROR: distru-search-quickbooks-activities with paymentIds gives the error. ERROR or NOT_SYNCED: distru-sync-to-quickbooks pushes it, or says why it can't. creditUses is empty once the payment is voided, and overpaymentCredits are then CANCELED. overpaymentCredits lists only credits the caller's team can see, none without permission to view credits, while overpaidAmount counts them all. Null if no invoice payment matches the ID; a permission error if the caller can't view it. A purchase payment's ID is null here too: read it with distru-get-purchase-payment.