related_get
Retrieve all records connected to a Storno client, invoice, declaration, SPV message, or dosar in one call, including each item’s type, ID, title, status, date, and link.
Instructions
Everything in Storno connected to one record, whatever it is: for a client → its dosare (rental contracts), recurring invoices, recent invoices, the declarations and ANAF messages of those dosare; for an invoice → the client, the rental dosar of that tenant, the recurring invoice that issued it, sibling invoices; for a declaration or SPV message → the dosar behind it and its client; for a dosar → client, supplier, recurring invoice, invoices, declarations, SPV requests and messages. Every item has type, id, title, subtitle, status, date and the web page (href). Use it to answer "what else do we have about X?" before searching list by list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The record UUID | |
| type | Yes | What the id is | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |