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

# Check Eligibility

> Verify if a Roblox player is eligible for a ticket class

Check if a Roblox user meets the prerequisites (such as Gamepass ownership) for a specific ticket class before booking or boarding.

## Request

```bash theme={null}
curl -X POST "https://api.series.hr/flights/check-eligibility" \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "TargetUserId": "714760171",
    "ClassId": "class_first"
  }'
```

## Parameters

<ParamField body="TargetUserId" type="string" required>
  Roblox User ID or Username to verify.
</ParamField>

<ParamField body="ClassId" type="string">
  The Ticket Class ID to evaluate.
</ParamField>

<ParamField body="GamepassId" type="integer">
  Optional direct Gamepass ID to check ownership for.
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "User": {
        "UserId": 714760171,
        "Username": "RobloxPlayer",
        "DisplayName": "PlayerOne",
        "AvatarUrl": "https://tr.rbxcdn.com/..."
      },
      "Class": {
        "Id": "class_first",
        "Name": "First Class",
        "GamepassRequired": true,
        "GamepassId": 12345678
      },
      "GamepassId": 12345678,
      "OwnsGamepass": true,
      "IsEligible": true
    }
  }
  ```
</ResponseField>

## Status Codes

* `200`: Eligibility check evaluated successfully
* `400`: Invalid user or class ID
* `401`: API key is required
