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

# GetNewTicket

> Use GetNewTicket in the ABBYY FlexiCapture API to obtain a licensing ticket for a session and station type, returned as a TicketInfo object.

## What it does

Returns a licensing ticket.

## Definition

```
bool GetNewTicket( int sessionId, int stationType, out TicketInfo ticketInfo );
```

## Parameters

<table width="100%"><tbody><tr><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>sessionId</p></td><td><p>int</p></td><td><p>The ID of the connection to the Application Server</p></td></tr><tr><td><p>stationType</p></td><td><p>int</p></td><td><p>The type of the station for which the ticket must be obtained. See <a href="/flexi-capture/api/structures/t-workstation-type">WorkstationType</a> for possible values.</p><p><strong>Note: </strong> Use the WT\_Verification and the WT\_Validation values instead of WT\_RemoteDataVerification and WT\_RemoteVerification ones respectively.</p></td></tr></tbody></table>

## Returned value

| **Type**                                                | **Description**                                     |
| ------------------------------------------------------- | --------------------------------------------------- |
| bool                                                    | The flag that shows if the ticket has been obtained |
| [TicketInfo](/flexi-capture/api/structures/ticket-info) | Licensing ticket                                    |
