> ## Documentation Index
> Fetch the complete documentation index at: https://developers.drpn.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Read recent reconciliation runs

> List the latest reconciliation runs and what each found, with reconciliationResults.

A reconciliation run compares two sources and counts the records found on only one side. `reconciliationResults` lists runs newest first; `reconciliationResult` reads one by id.

## The request

```bash theme={null}
curl -s "$DARPAN_API/rest/s1/graphql/public" \
  -H "Authorization: Bearer $DARPAN_GQL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ reconciliationResults(first: 10, sortKey: CREATED_DATE, reverse: true) { edges { node { reconciliationRunResultId savedRunId statusEnumId createdDate differenceCount onlyInFile1Count onlyInFile2Count file1Name file2Name } } pageInfo { hasNextPage endCursor } } }"}'
```

## Read the answer

| Field | Tells you |
| - | - |
| `statusEnumId` | How the run ended, e.g. `AUT_STAT_SUCCESS` |
| `onlyInFile1Count`, `onlyInFile2Count` | Records present in one source and missing from the other |
| `differenceCount` | The sum of those two. Records on both sides with different values are not counted here |
| `file1Name`, `file2Name` | Which sources the run compared |
| `savedRunId` | The saved run this run executed; use it to filter |

## Filter

```graphql theme={null}
reconciliationResults(first: 20, sortKey: CREATED_DATE, reverse: true,
                      query: "savedRunId:ORDERS_OMS_NS statusEnumId:AUT_STAT_SUCCESS")
```

The keys are `savedRunId`, `reconciliationRunId`, `ruleSetId` and `statusEnumId`. See [Search syntax](https://developers.drpn.ai/graphql/search-syntax.md).

## Related

* [`reconciliationResults`](https://developers.drpn.ai/graphql/queries/reconciliation-results) and [`reconciliationResult`](https://developers.drpn.ai/graphql/queries/reconciliation-result) reference
* [Pagination](https://developers.drpn.ai/graphql/pagination.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.