Get a credit note
Returns 404 if the ID belongs to a document of a different type (e.g. an invoice ID) — cross-type isolation per the Phase 2a controller-architecture decision.
Returns 404 if the ID belongs to a document of a different type (e.g. an invoice ID) — cross-type isolation per the Phase 2a controller-architecture decision.
Devise JWT issued via POST /api/v1/auth/sign_in. Used by mobile
and SPA clients. Revoked tokens are tracked in api_jwt_denylists.
Workspace (account) ID. The numeric ID shown in your URLs.
Credit note lifecycle state. The same sync_payment_status!
callback that derives invoice statuses also fires on
credit notes (it’s on the base Document model), so the
full payment-derived state set can appear here even
though credit notes are not themselves a payment
obligation. Practically: consumers should treat draft
and exposed as the meaningful credit-note lifecycle
states; the paid-family states reflect how the credit
note has been applied against the source invoice’s
payment allocation.
ISO-4217 currency code.
Credit note number (formatted via number_series, e.g. ‘DOB2026-0001’). Null for drafts.
Lucanto API key. Three prefixes:
lct_pat_<random><checksum> — personal access token (owner: User)lct_live_<random><checksum> — workspace token, live datalct_test_<random><checksum> — workspace token, sandbox account (Phase 3)Issue keys at /settings/api_keys (personal) or
/:account_id/settings/api_keys (workspace). Plaintext token is
shown once and never again.