> For the complete documentation index, see [llms.txt](https://api-docs.rightsline.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.rightsline.com/search/examples/example-find-financial-document-by-parent-financial-document.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.rightsline.com/~gitbook/mcp).

# Find financial document by parent financial document

If your configuration allows for two accounting documents to be related to each other, the following search would find all child accounting documents given a specific parent (in this case the parent has record ID 999).

Endpoint: /financial-document/search

```javascript
{
  "keywords": "",
  "query": {},
  "start": 0,
  "rows": 10,
  "parentQuery": {
      "7":{
          "$eq":["recordid",999]
      }
  }
}
```
