Skip to main content

List Upcoming Payments

GET 

/api/purchase-orders/upcoming-payments

Everything due to suppliers in a date window as one list: vendor deposits, supplier invoices (each instalment on its own date), landed-cost and freight bills, and payments a purchase order's payment terms call for before any document exists. Amounts and dates are the same ones Get Purchase Order Cash Flow Schedule plans with; amounts are in the tenant's base currency.

Required scope: purchase-orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Each row carries the document it belongs to, its approval status (the payment-approval state of the invoice or bill; a deposit's own approval state), its payment status, what has been paid on the document so far and the document total. Rows are sorted by due date, undated rows last, unless sort asks otherwise. filter_groups and search narrow the rows after they are built.

Without page / per_page every row comes back in data. With either, the response is one page: data plus current_page, per_page, total, last_page, from, to and the page links. unfiltered_total is the row count before filter_groups and search.

summary totals every row that matches the filters (not just the page): amount_due, overdue, due_next_7_days, due_next_30_days, undated, pending_approval, paid_in_window (only with include_paid) and the amount due by type.

Request​

Responses​

OK

Response Headers
    Content-Type