Skip to main content

Match Finished

This event notifies the Games API about the successful end of a match and its result, together with match data such as scores, leavers and stats (if already available at match finished time), as configured on the Game Studio > Main Configuration > Stats section.

Match Finished

The request payload must contain a score indicating the results for each faction (as defined in the match configuration).

Example payload

{
"event_type": "FINISHED",
"payload": {
"round": 1,
"leavers": [
"Steam|888",
"Steam|999"
],
"asc_score": true,
"factions": {
"faction1": {
"players": [
{
"game_id": "[email protected]"
}
],
"score": 1
}
},
"afk": [
"Steam|111"
],
"players_to_release": [
"123"
]
}
}

Leavers array (not mandatory) indicates which players left the match before its end. Optional statistics can be added in the stats object. If the game server needs more time to elaborate them, they can be sent through the STATS event (see next page).