Finance
GET /v1/open-items
Section titled “GET /v1/open-items”| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
overdue | query | string | No | true — only customers with something past its due date |
minOutstandingOere | query | string | No | Only customers owing at least this many øre |
minDaysOverdue | query | string | No | Only customers whose oldest overdue invoice is at least this many days old |
limit | query | integer | No | Page size, 1-200 (default 50) |
cursor | query | string | No | Opaque cursor from meta.nextCursor |
Request exampleNo request body
curl https://api.rieckflow.com/v1/open-items \ -H "Authorization: Bearer $RIECK_API_KEY"const svar = await rieck.request("GET", "/v1/open-items");{ "data": [ {} ], "meta": { "nextCursor": null }}200 What each customer owes you right now and how old it is:
outstandingOere, overdueOere, overdueCount, oldestDueDate, daysOverdue, collectionsOere, pastDue — the SAME fields and the same source as GET /v1/customers/{id}/balance, so the two can never disagree. Customers with nothing outstanding are not listed; drafts and paid invoices do not count. ⚠️ The figures are point-in-time, and the keyset is the customer’s creation time rather than an amount — an amount changes while you page, which would repeat or drop rows. For the invoice-level detail behind a row, use GET /v1/invoices?customerId=.application/jsonPossible errors 5
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_cursor | The cursor is malformed, expired or belongs to another list shape. |
| 401 | invalid_api_key | The API key is missing, invalid, expired or revoked. |
| 403 | api_not_included | The organisation’s plan does not include API access. |
| 403 | insufficient_scope | The key does not have the required scope. |
| 429 | rate_limited | The organisation’s rate budget is exhausted. |