Openapi
Return what customers owe or what the organization owes suppliers, with ageing buckets.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidasOf?stringdatepartyId?stringuuidside?string"customer""supplier"Returns the result.
application/jsondata*array<>pagination*curl -X GET 'https://app.localhost/api/v1/organizations/123/open-items?asOf=example&partyId=123e4567-e89b-12d3-a456-426614174000&side=example'{ "data": [ { "amount": 0, "approvalStatus": "not_required", "balance": 0, "bucket": "current", "currency": "string", "daysOverdue": 0, "discountAmount": 0, "discountDueOn": "2019-08-24", "documentId": "4704590c-004e-410d-adf7-acb7ca0a7052", "documentType": "invoice", "dueOn": "2019-08-24", "identifier": "string", "issuedOn": "2019-08-24", "partyId": "950a3d1f-4657-4e7b-87db-3ff5fa95b5c0", "partyName": "string", "side": "customer" } ], "pagination": { "hasMore": true, "limit": 1, "offset": 0, "total": 0, "totalIsEstimate": true }}