WebhooksEvent catalogTournaments
tournament.match.result-applied
Version 1 of the tournament.match.result-applied webhook event.
The tournament.match.result-applied event.
| Event type | tournament.match.result-applied |
| Schema version | 1 |
| Routing key | event.tournament.match.result-applied.v1 |
| Produced by | Tournament Management |
| Schema | urn:defendr:contract:tournament:match-result-applied:1 |
data fields
| Field | Type | Required | Description |
|---|---|---|---|
matchId | string | yes | |
tournamentId | string | yes | |
organizationId | string | yes | |
revision | integer | yes | |
cascadeId | string | yes | |
setResults | array of object | no | |
decidedBy | "result", "penalty_shootout" | no | |
penaltyShootout | object | no | |
fixtureId | string | no | |
legNumber | 1, 2 | no |
Some fields are required only in particular states. The JSON Schema below is authoritative.
Example delivery
Signed with the example secret whsec_placeholder_example_webhooks_signing_secret, so you can check your verifier against it. See Verifying signatures.
POST /your/webhook/endpoint HTTP/1.1
content-type: application/json
webhook-id: whd_00000000-0000-4000-8000-000000000055
webhook-timestamp: 1800000000
webhook-signature: v1,oO+Ue3oIShFd7cTlOeh5cZ2W72q8pQGcpulo25DRJm0=
tanitar-event-type: tournament.match.result-applied
tanitar-schema-version: 1
tanitar-delivery-attempt: 1
{"messageId":"evt_00000000-0000-4000-8000-000000000055","kind":"event","type":"tournament.match.result-applied","schemaVersion":1,"occurredAt":"2027-01-15T10:00:00.000Z","producer":"tournament-management-service","accountId":"acc_11111111-1111-4111-8111-111111111111","correlationId":"corr_00000000-0000-4000-8000-000000000055","data":{"matchId":"mtc_11111111-1111-4111-8111-111111111111","tournamentId":"trn_11111111-1111-4111-8111-111111111111","organizationId":"org_11111111-1111-4111-8111-111111111111","revision":1,"cascadeId":"csc_11111111-1111-4111-8111-111111111111"}}The same body, formatted:
{
"messageId": "evt_00000000-0000-4000-8000-000000000055",
"kind": "event",
"type": "tournament.match.result-applied",
"schemaVersion": 1,
"occurredAt": "2027-01-15T10:00:00.000Z",
"producer": "tournament-management-service",
"accountId": "acc_11111111-1111-4111-8111-111111111111",
"correlationId": "corr_00000000-0000-4000-8000-000000000055",
"data": {
"matchId": "mtc_11111111-1111-4111-8111-111111111111",
"tournamentId": "trn_11111111-1111-4111-8111-111111111111",
"organizationId": "org_11111111-1111-4111-8111-111111111111",
"revision": 1,
"cascadeId": "csc_11111111-1111-4111-8111-111111111111"
}
}JSON Schema
urn:defendr:contract:tournament:match-result-applied:1
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:defendr:contract:tournament:match-result-applied:1",
"type": "object",
"additionalProperties": false,
"required": [
"matchId",
"tournamentId",
"organizationId",
"revision",
"cascadeId"
],
"properties": {
"matchId": {
"type": "string"
},
"tournamentId": {
"type": "string"
},
"organizationId": {
"type": "string"
},
"revision": {
"type": "integer"
},
"cascadeId": {
"type": "string"
},
"setResults": {
"type": "array",
"items": {
"type": "object"
}
},
"decidedBy": {
"enum": [
"result",
"penalty_shootout"
]
},
"penaltyShootout": {
"type": "object"
},
"fixtureId": {
"type": "string"
},
"legNumber": {
"enum": [
1,
2
]
}
}
}