Skip to navigation

List quotes

View as Markdown

Returns a cursor-paginated list of quotes for the workspace. Only documents with type=quote appear here — other document types have their own endpoints. Soft-deleted quotes are excluded. Ordered by id descending.

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.

Query parameters

qstringOptional

Free-text search: the document number, the customer’s name or the customer’s registration id (IČO), case- and accent-insensitive, matching anywhere in the value.

status[]list of enumsOptional

Only documents in any of these lifecycle states (status=issued for one). Any other value is a 422.

payment_status[]list of enumsOptional

Only documents in any of these settlement degrees. Any other value is a 422.

Allowed values:
overdueenumOptional

true: only overdue documents (issued or sent, unsettled, past the due date — the overdue field). false: none of them. Any other value is a 422.

Allowed values:
customer_idlong or stringOptional

Only documents of this customer: a CONTACT id (or its cnt_… public id), the same id customer_id takes on create and reads back as customer.contact_id. Widened to every legal-entity variant merged into that contact, like the web list. A contact outside this workspace is a 422.

issued_fromdateOptional

Only documents issued on or after this date (inclusive). A malformed date is a 422.

issued_todateOptional

Only documents issued on or before this date (inclusive). A malformed date is a 422.

order_numberstringOptional

Only documents whose order_number equals this value exactly: case-sensitive, ignoring whitespace around this value and around the stored one. order_number is not unique, so the list may hold more than one document. An array or object (order_number[]=…), a blank or whitespace-only value, and a value longer than 30 characters are a 422.

cursorstringOptional

Pagination cursor from the previous response’s next_cursor.

limitintegerOptional1-100Defaults to 25
Number of items per page. Default 25, maximum 100.
sortenumOptional

Sort field for document lists. Currently only created_at is supported; the date fields (issue_date, due_date) are nullable on drafts and will be added once a null-ordering is defined. Combine with order.

Allowed values:
orderenumOptionalDefaults to desc

Sort direction for sort. Defaults to desc.

Allowed values:

Response

OK
next_cursorstring or null

Cursor to fetch the next page. Pass it as the cursor query parameter on the next request. null on the last page.

has_moreboolean
True when more pages exist after this one.
datalist of objects

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
422
Unprocessable Entity Error
429
Too Many Requests Error