Skip to navigation

Get a contact

View as Markdown

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
idlong

Contact ID (workspace-scoped). Not the legal-entity ID.

public_idstringRead-onlyformat: "^[a-z]+_[0-7][0-9a-hjkmnp-tv-z]{25}$"

Stable public identifier of this record. Never changes once assigned. Its prefix names the entity or document family: inv_ invoice, settlement invoice, collective invoice or tax document; cn_ credit note or advance credit note; dbn_ debit note; pf_ proforma; qt_ quote; so_ sales order; po_ purchase order; dln_ delivery note; rdn_ received delivery note; rcp_ cash receipt; doc_ internal income, rent income or recurring document. Other entities use exp_ expense, cnt_ contact, prj_ project, ba_ bank account or cash register, txn_ transaction, lon_ loan, bst_ bank statement, ws_ workspace, edoc_ e-document (a document sent or received over a network, as its edocument block names it; an inbox entry is inb_). Accepted in place of the numeric id in this resource’s path parameters and in request fields that reference it (customer_id, bank_account_id, …).

suspendedboolean

The workspace is over its plan’s contact limit and this contact is suspended: it can be read and used, not edited. Reactivate it with POST …/contacts/{id}/reactivate once the plan has room.

created_atdatetime
updated_atdatetime
legal_registration_idstring or nullOptional

Legal/company registration identifier (SK/CZ IČO). _id denotes identifier, not a foreign key; the value is an opaque string and may be alphanumeric outside SK/CZ (e.g. UK SC123456).

tax_idstring or nullOptional

Tax registration identifier (SK/CZ DIČ). An identifier string, not a number.

vat_idstring or nullOptional

VAT identifier (SK/CZ IČ DPH). Alphanumeric with a country prefix (e.g. SK2020123456, ATU12345678) — an identifier, not a number.

vat_payer_typeenum or nullOptional

VAT registration status (standard | non_payer_vat | foreign); nullable.

Allowed values:
emailstring or nullOptionalformat: "email"
phone_numberstring or nullOptional
websitestring or nullOptional
addressobject or nullOptional
postal_addressobject or nullOptional
legal_namestring or nullOptional

The contact’s registered legal name, including legal form (e.g. “ACME s.r.o.”). This is the contact’s name.

buyer_referencestring or nullOptional<=100 characters

Buyer reference (EN 16931 BT-10) this customer wants on its invoices. A draft whose customer is set to this contact takes it unless the draft has a reference of its own.

nicknamestring or nullOptional<=255 characters

The contact’s in-app name in this workspace (the web form’s “Meno kontaktu pre účely aplikácie”). Not the legal name, and never printed on documents.

due_daysinteger or nullOptional>=0
Default number of days until due for new documents to this customer.
ratestring or nullOptionalformat: "decimal"

The contact’s man-day rate (the web form’s “MD Sadzba”), a decimal string.

suspended_atdatetime or nullOptional

When the contact was suspended; null while active.

einvoice_reachabilityobject or nullOptional

Whether this contact receives e-invoices over Peppol, as last checked. Read-only: it is the stored answer and never triggers a lookup. null while the feature is not available to the workspace (outside Slovakia, or not yet switched on), and for a contact whose invoice address is outside Slovakia, which is never looked up.

Errors

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