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

> Utilisez GetNewTicket dans l’API ABBYY FlexiCapture pour obtenir un ticket de licence pour une session et un type de station, renvoyé sous la forme d’un objet TicketInfo.

<div id="what-it-does">
  ## Description
</div>

Renvoie un ticket de licence.

<div id="definition">
  ## Définition
</div>

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

<div id="parameters">
  ## Paramètres
</div>

<table width="100%"><tbody><tr><td><p><strong>Nom</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>ID de la connexion à l’Application Server</p></td></tr><tr><td><p>stationType</p></td><td><p>int</p></td><td><p>Type de la station dont le ticket doit être récupéré. Voir <a href="/fr/flexi-capture/api/structures/t-workstation-type">WorkstationType</a> pour les valeurs possibles.</p><p><strong>Remarque : </strong>Utilisez les valeurs WT\_Verification et WT\_Validation au lieu de WT\_RemoteDataVerification et WT\_RemoteVerification, respectivement.</p></td></tr></tbody></table>

<div id="returned-value">
  ## Valeur renvoyée
</div>

| **Type**                                                   | **Description**                                |
| ---------------------------------------------------------- | ---------------------------------------------- |
| bool                                                       | Indicateur indiquant si le ticket a été obtenu |
| [TicketInfo](/fr/flexi-capture/api/structures/ticket-info) | Ticket de licence                              |
