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

# GetDocument2

> GetDocument2 method in the ABBYY FlexiCapture Web Services API returns information about a document with an expanded set of fields.

## What it does

Gets information about a document with an expanded set of fields.

## Definition

```csharp theme={null}
Document2 GetDocument2(int batchId, int documentId);
```

## Parameters

| Name         | Type  | Description                                                                   |
| ------------ | ----- | ----------------------------------------------------------------------------- |
| `batchId`    | `int` | The ID of the batch that contains the document to retrieve information about. |
| `documentId` | `int` | The ID of the document to retrieve information about.                         |

## Returned value

| Type                                                 | Description                                                    |
| ---------------------------------------------------- | -------------------------------------------------------------- |
| [Document2](/flexi-capture/api/structures/document2) | Information about the document with an expanded set of fields. |
