Get a contact's receivables summary
What the web’s customer picker says about a customer: its overdue invoices (count, oldest due date, the amount still owed per currency) and when its newest document was created. Needs the contact read and the document read permission.
Authentication
JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
Lucanto API key. Two prefixes:
lct_pat_<random><checksum>— personal access token (owner: User)lct_live_<random><checksum>— workspace token, live data
Issue keys at /settings/api_keys (personal) or
/:workspace_id/settings/api_keys (workspace). Plaintext token is
shown once and never again.
Path parameters
Workspace ID: the workspace’s numeric id or its public_id
(ws_01h455vb4pex5vsknk084sn02q, the form the web app’s URLs show).
The bare UUID form of the public_id is accepted but deprecated.
Contact ID. Either the numeric id or the public_id (cnt_…).
Response
Overdue invoices of this customer that still owe more than the payment tolerance (the dashboard’s overdue tile, narrowed to the customer). Drafts, canceled documents, proformas and credit notes never count.
When the customer’s newest document (any type, neither a draft nor canceled, a paid one included) was created.
