> ## 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.

# GetBatchIdsRange

> Reserve a range of document and page IDs in a batch with the GetBatchIdsRange method of the ABBYY FlexiCapture Web Services API, returning the first ID.

## What it does

Reserves a set of IDs in a batch for documents and pages.

## Definition

```
int GetBatchIdsRange( int batchId, int idCount, out int idEnd );
```

## Parameters

| **Name** | **Type** | **Description**                                  |
| -------- | -------- | ------------------------------------------------ |
| batchId  | int      | The ID of the batch where IDs are to be reserved |
| idCount  | int      | The number of IDs to reserve                     |
| idEnd    | int      | The last ID in the reserved range                |

## Returned value

| **Type** | **Description**                    |
| -------- | ---------------------------------- |
| int      | The first ID in the reserved range |
