Match Set Validation
This guide explains the set progression rules for POST /api/v1/matches/verified.
If your source system validates scores before calling the API, implement these rules exactly. Partners should reject invalid score progressions locally instead of sending them to WPPR and waiting for a 400.
Rules
set_1is always required for both teams.set_2andset_3are optional, but if sent for one team they must be sent for the other.- Every submitted set must have a winner. Tied scores are rejected.
- Never send
0:0for an unplayed set. Omit it instead. - A two-set match must end
2:0(same team wins both sets). - A three-set match requires the first two sets to be split
1:1, withset_3as the decider.
Valid Patterns
| Team | Set 1 | Set 2 | Set 3 |
|---|---|---|---|
| Team 1 | 6 | — | — |
| Team 2 | 4 | — | — |
✓Match is valid
| Team | Set 1 | Set 2 | Set 3 |
|---|---|---|---|
| Team 1 | 6 | 6 | — |
| Team 2 | 4 | 2 | — |
✓Match is valid
| Team | Set 1 | Set 2 | Set 3 |
|---|---|---|---|
| Team 1 | 2 | 3 | — |
| Team 2 | 6 | 6 | — |
✓Match is valid
| Team | Set 1 | Set 2 | Set 3 |
|---|---|---|---|
| Team 1 | 4 | 6 | 6 |
| Team 2 | 6 | 1 | 4 |
✓Match is valid
| Team | Set 1 | Set 2 | Set 3 |
|---|---|---|---|
| Team 1 | 6 | 3 | 2 |
| Team 2 | 4 | 6 | 6 |
✓Match is valid
| Team | Set 1 | Set 2 | Set 3 |
|---|---|---|---|
| Team 1 | 7 | — | — |
| Team 2 | 5 | — | — |
✓Match is valid
Invalid Patterns
Try It Yourself
Try It: Match Score Validator
Team 1
Set 1:
Set 2:
Set 3:
Team 2
Set 1:
Set 2:
Set 3: