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.
purchase-orders:readGrant 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
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.