Skip to navigation

Get a contact's receivables summary

View as Markdown

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

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

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_idlong or stringRequired

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.

idlong or stringRequired

Contact ID. Either the numeric id or the public_id (cnt_…).

Response

OK
contact_idlong
overdue_countinteger

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.

overdue_amountslist of objects
The amount still owed on those invoices, one entry per currency, never summed across currencies. Empty when nothing is overdue.
oldest_due_datedate or null
The earliest due date among the overdue invoices.
last_document_atdatetime or null

When the customer’s newest document (any type, neither a draft nor canceled, a paid one included) was created.

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error