Magidoc

getVendorPayments
Query

Vendor payments recorded in the workspace, newest first. Narrow to one purchase order or one of its bills to read what has been paid against it, or to one payee to read that payee's register. Access: finance enabled in the workspace.

Arguments

#

workspaceId

ID !
Non-null

purchaseOrderId

vendorInvoiceLinkId

Narrowing to one payable: vendorInvoiceLinkId is the link's own _id, which native payments record; vendorInvoiceId is the provider's document, which imported ones record; expenseReportId is the expense report a reimbursement paid.

vendorInvoiceId

expenseReportId

vendorAccountId

Narrowing to one payee, on the payment's own vendor reference rather than on an allocation: it is the same field the 1099 rail's year read groups by, so the register opened on a vendor counts the population Vendor tax measures that vendor's year from. Reimbursements name an employee instead and are excluded by it, which is exactly what the 1099 population does.

limit = 50

skip

Response

#

Returns [FinanceVendorPayment !]!.

Example

#