Documentation Index
Fetch the complete documentation index at: https://docs.lilury.com/llms.txt
Use this file to discover all available pages before exploring further.
External IDs
Every resource in Lilury has a system-generated UUID as its primary identifier. For accounts and cost centers, Lilury also supports identifying resources by a human-readable code path that you define. This lets you reference resources directly by the codes you already use in your system, without needing to look up or store UUIDs.How code paths work
Every account and cost center has acode you assign when creating it. Lilury automatically computes a path from that code — a dot-joined chain of codes from the root of the hierarchy down to the resource itself.
Accounts
path for the Cash account is 1.1001.10011.
Cost centers
path for European Sales is SALES.SALES-EU.
The path is returned on every account and cost center response, alongside the UUID. It updates automatically if the hierarchy changes.
Using external IDs in journal entries
When creating or updating a journal, every entry line has anaccountId and an optional costCenterId. Both fields accept either a UUID or a path string. If the value cannot be parsed as a UUID, Lilury treats it as a path and resolves it to the matching resource for your company.
Fetching external IDs
To discover the path for an account or cost center, call the list or get-by-ID endpoint. Thepath field is always present in the response.
Validation
Using a path does not bypass any validation. The same rules apply regardless of how you identify the resource:- The account or cost center must belong to the same company.
- The account must not be a category account (only leaf accounts can be used in entries).
- The cost center must be active.
404 Not Found error.
When to use paths vs UUIDs
| Situation | Recommendation |
|---|---|
| You defined the chart of accounts and already know the codes | Use paths — no UUID lookup needed |
| You are importing data from a system that uses these same codes | Use paths to map directly |
| You received UUIDs from a previous API response | Use UUIDs |
| You are building a UI where the user picks accounts from a list | Store and use UUIDs from the list response |
