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

# PFMatchmakingTicketStatus

> Enumerates the possible states of a PlayFab Multiplayer matchmaking ticket, including creating, waiting for players, matched, canceled, and failed.

The possible states for a matchmaking ticket.

## Syntax

```cpp theme={null}
enum class PFMatchmakingTicketStatus  : uint32_t  
{  
    Creating = 0,  
    Joining = 1,  
    WaitingForPlayers = 2,  
    WaitingForMatch = 3,  
    Matched = 4,  
    Canceled = 5,  
    Failed = 6,  
}  
```

## Constants

| Constant | Description |
| - | - |
| Creating | The matchmaking ticket is being created. |
| Joining | The matchmaking ticket is being joined. |
| WaitingForPlayers | The matchmaking ticket is waiting for all remote users specified in the `membersToMatchWith` field of its configuration to join the ticket via [PFMultiplayerJoinMatchmakingTicketFromId](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md). |
| WaitingForMatch | The matchmaking ticket is waiting for a match to be found. |
| Matched | The matchmaking ticket has found a match. |
| Canceled | The matchmaking ticket has been canceled. |
| Failed | The matchmaking ticket failed to find a match. |

## Requirements

**Header:** PFMatchmaking.h

## See also

[PFMatchmaking members](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members.md)


## Related topics

- [PFMatchmakingTicketGetTicketId](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetticketid.md)
- [PFMatchmakingTicketGetStatus](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetstatus.md)
- [PFMatchmakingTicketGetMatch](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmatchmakingticketgetmatch.md)
- [Matchmaking SDK quickstart](https://docs.xbox.com/services/playfab/multiplayer/matchmaking/quickstart-client-sdk.md)
- [PFMultiplayerJoinMatchmakingTicketFromId](https://docs.xbox.com/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid.md)
