> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.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](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/functions/pfmultiplayerjoinmatchmakingticketfromid). |
| 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](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members)


## Related topics

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