niiko/developers

CRM v1 read-only

crm.client_overview_get

Reads where ONE client named by name stands: their open invoices with balance and since when they are owed, the total owed, and which channels you have talked on with the day of their last message. Never what was said, and no phone or email.

Last updated

POST /api/v1/reads/crm.client_overview_get
Token scope
crm.client_overview_get@1
Workspace permission
api.crm.client_overview_get off by default
Who reads
The person behind the token, with their role. Someone who leaves the workspace stops reading.
Three permissions

A token with that scope, the workspace owner having switched the read on, and the person's role seeing it in the product. None of them is enough alone. OAuth only →

Request

fieldtyperules
clientstringrequiredmin 1 · max 200

Response — output when status is done

fieldtyperules
clientstringrequired
owedTotalstringrequired^-?\d+\.\d{2}$
openInvoicesobject[]required
conversationsobject[]required
noActivitybooleanrequired

openInvoices[]

fieldtyperules
numberstring | nullrequired
balancestringrequired^-?\d+\.\d{2}$
currencystringrequired
dueOnstring | nullrequired

conversations[]

fieldtyperules
channelstringrequired
lastInboundOnstring | nullrequired

Example

# Reads take an OAuth access token, not an API key, and no idempotency key: reading changes nothing.
curl -X POST https://niiko.org/api/v1/reads/crm.client_overview_get \
  -H "Authorization: Bearer $NIIKO_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "client": "…"
  }'
# 200 → done · 4xx → refused, with a named reason

Why it may refuse

Each reason names who can fix it and how; detail.message, when present, says what to do. Refusals & HTTP codes →

invalid_inputrole_forbiddengrant_offreads_need_a_personambiguousnot_found

In the clients

@vorluno/niiko-sdkniiko.getClientOverview()
niiko (Python)niiko.get_client_overview() from 0.4.0 · not on the registry yet
niiko-cliniiko read crm.client_overview_get
n8n-nodes-niikoNo reads: the node holds a key, and reading needs a person through OAuth.
niiko-mcp-servercrm_client_overview_get readOnlyHint

History