Club portal integration
Goal: a club manages registrations and squads in its own portal (a member portal with matches, squads and payments) and uses MakeReady for scoring. Scores go back to the MakeReady website (public or private) and/or to the club portal. Both directions can be enabled independently.
Direction 1: club portal → MakeReady (registrations)
- The club admin creates an API key in MakeReady with scope
registrations:write(and optionallymatches:write,matches:read,results:read). - The club admin creates the match in MakeReady with
externalId= the id of the match in the club portal — or the club portal creates it itself withPOST /api/v1/integrations/matches(scopematches:write; the call is idempotent onexternalId). The event is owned by the user who created the API key, so it stays editable in the web portal (stages, status). SendcreatedByName, the name of the person who created the event in the club portal: MakeReady shows it as "created by" on the website and the tablets. Without it the event shows N/A, a sign for the club that its portal should send the field (also possible later withPATCH /api/v1/integrations/matches/:ref). A portal that links to an event created in MakeReady can set theexternalIdthe same way.
POST /api/v1/integrations/matches
Authorization: Bearer mkr_…
Content-Type: application/json
{ "name": "Club training", "discipline": "ipsc_handgun", "kind": "training",
"startDate": "2026-10-20", "visibility": "club", "externalId": "4711",
"createdByName": "Jane Doe" }
- On every change (or periodically) the club portal sends the complete list:
PUT /api/v1/integrations/matches/<externalId>/registrations
Authorization: Bearer mkr_…
Content-Type: application/json
{
"source": "member-portal",
"squads": [{ "externalId": "21", "name": "Squad 1", "startsAt": "2026-10-02T09:00:00Z", "endsAt": "2026-10-02T12:00:00Z" }],
"competitors": [
{ "externalId": "165", "squadExternalId": "21", "firstName": "Jane", "lastName": "Doe",
"club": "Example Club", "division": "OPEN", "powerFactor": "major", "categories": [],
"userEmail": "jane.doe@example.com" }
],
"removeMissing": true
}
- Idempotent on
externalId: MakeReady ids stay stable across repeated syncs, so scores already recorded stay attached to the right competitor. Keep theexternalIdof a registration stable. Should a registration come back under a newexternalId(it was cancelled and made again in the club portal), MakeReady recognises it by name: when exactly one registration of the club portal is missing from the list and exactly one unknown registration has the same first and last name, the competitor is kept (with its scores, number and the corrections made in MakeReady) and takes the newexternalId, instead of being removed and added again. userEmaillinks the registration to a MakeReady account (for "my scores" and private visibility). If the account does not exist yet, the link is made on a later sync.removeMissingremoves the club portal's registrations that are no longer in the list, unless they already have scores. Competitors added in MakeReady (walk-ins, withoutexternalId) are never removed by a sync.- A registration keeps its competitor number across syncs unless the club portal sends a
number; a new registration gets the next free number. A number changed in MakeReady (the shooting order was redealt on a tablet, a competitor was moved) is never touched by a sync. - From the first sync onwards
matches.registration_sourceis set. The club portal then owns its squads (they cannot be deleted in MakeReady, 409), the names of the competitors and the adding and removing of its registrations. - Divisions:
division(andpowerFactor) may be left out when the club portal does not know them. For a registration that is linked to a MakeReady account (throughuserEmail, an earlier link, or the link the club's own roster remembers for that person) MakeReady uses the division that account shoots in the event's discipline: the one of its last registration saved in MakeReady, which the member can change under My profile on the website. That division wins over the one the club portal sends (which is often a default); a correction made in MakeReady for this event wins over both. Without a linked account MakeReady uses the division a match admin last set for that person in MakeReady (remembered per club, person and discipline), for as long as the club portal keeps sending what it sent when the correction was made (or nothing, or the corrected value). So a division fixed at the range also holds for the person's next registration and next event, and a club portal that sends its own default again does not undo it. When the club portal sends a different division than before, it has learnt something new: its value counts from then on. After that come the club portal's value, what the club's roster remembers for a new registration, and the first division of the discipline. The club portal learns about every correction through theregistration.updatedwebhook, see Corrections made in MakeReady. - Match admins can correct the name, start and end time of a squad in MakeReady; like the competitor corrections below these are kept on later syncs (
overridesin the squad JSON), and "Follow the club portal again" (DELETE /api/v1/matches/:id/squads/:squadId/overrides) forgets them. Squads added in MakeReady (withoutexternalId) are MakeReady's own: the sync never touches them and they can be deleted there. - Match admins can still correct the match-day fields of a registration in MakeReady (web portal and tablet): division, power factor, categories, squad, number, club and team. A corrected field is remembered on the competitor (
overridesin the competitor JSON) and later syncs keep the MakeReady value for it, so a division fixed at the range is not undone by the next sync. "Follow the club portal again" (DELETE /api/v1/matches/:id/competitors/:competitorId/overrides) forgets the corrections; the next sync then applies the club portal's values again. The change log of the event shows every correction. The website and the app send only the fields that were changed, so a page or tablet that still shows an older copy of a competitor never puts an old division back. The club portal receives every correction through theregistration.updatedwebhook (Corrections made in MakeReady) and can read the registrations as MakeReady has them at any time withGET /api/v1/integrations/matches/:ref/registrations.
Example mapping for a typical member portal
A member portal usually has tables for matches, squads and registrations (competitors). Such a model translates as follows:
| Member portal (example) | MakeReady |
|---|---|
| match id | match.externalId |
| squad id, name, start and end time | squads[].externalId, name, startsAt, endsAt (optional; dashboards count down to it) |
| registration/competitor id | competitors[].externalId |
| first name, last name, club, division | same (normalise the division code, e.g. "Open" → OPEN); leave division out when it is not known, see Divisions above |
| member's e-mail address | userEmail |
| payment status | only send paid registrations (the club's choice) |
| discipline | ipsc_handgun / fds / lvr / multigun / brutality |
powerFactor (major / minor) is an optional field of the competitor API: if the member portal has no notion of power factor, leave it out and minor applies; staff can change it on the tablet or in the portal, or the club portal extends its registration form and sends the field.
Documents with an event (attachments)
A club portal can send documents along with a match or training: the stage briefings as a PDF, a presentation, the range rules. They show on the event's page on the website (Overview → Documents) and every device that opens the event in the app downloads them, so they open on the range without a connection (in the PDF reader or presentation app of the device).
PUT /api/v1/integrations/matches/<externalId>/attachments/<documentId> (scope matches:write) adds or replaces one document; <documentId> is the club portal's own id for it (at most 80 characters), so sending the same document again replaces it. Two ways to send the content:
# The file itself as the body, its name in the query (or the x-filename header)
curl -X PUT "https://makeready.be/api/v1/integrations/matches/1234/attachments/briefing?name=Stage%20briefings.pdf" \
-H "Authorization: Bearer mkr_…" -H "Content-Type: application/pdf" --data-binary @briefings.pdf
# Or JSON with the content in base64, for clients that can only send JSON
curl -X PUT "https://makeready.be/api/v1/integrations/matches/1234/attachments/briefing" \
-H "Authorization: Bearer mkr_…" -H "Content-Type: application/json" \
-d '{ "name": "Stage briefings.pdf", "data": "JVBERi0xLjcK…" }'
The answer carries the stored document (id, name, contentType, size, sha256, externalId) and created. The same content again changes nothing; other content replaces the file and devices download the new version on their next sync. GET …/attachments (scope matches:read) lists the documents, DELETE …/attachments/<documentId> removes one.
Allowed types, by the extension of the name: pdf, ppt, pps, pptx, ppsx, doc, docx, xls, xlsx, odt, odp, ods, png, jpg, jpeg, txt, csv. The largest file (10 MB by default) and the number of documents per event (10 by default) are settings of the portal; a file that is too large or of another type is refused with 422, one too many with 409.
Direction 2: MakeReady → club portal (scores)
Pull
GET /api/v1/integrations/matches/<externalId>/results (scope results:read) returns, at any time:
match,stagesandcompetitors: the results per competitor, as described under Results of a finished event;results: the compact standings (ALLand one list per division);scores: all rawStageScorerevisions; the receiver takes the highestrevisionper (competitor, stage).
Push (webhooks)
The club admin registers a webhook (POST /api/v1/clubs/:id/integrations) with URL and events; the secret is shown once.
| Event | When | Content |
|---|---|---|
stage_score.approved | after every competitor-approved score accepted by the portal | match, stage, competitor (incl. externalId), raw score, calculated stage result, current standings |
match.status_changed | status changes (e.g. live → finished) | matchId, externalId, status |
match.results_published | event (match or training) set to finished; again when a score arrives or is corrected afterwards | the results per competitor, see below |
registration.updated | a match admin corrected a registration of the club portal in MakeReady (division, power factor, categories, squad, club or team) | the registration as it is now, what changed and what it was, see Corrections made in MakeReady |
The events of an existing webhook can be changed on the website (Club → Integrations: tick the events and save) or with PATCH /api/v1/clubs/:id/integrations/:integrationId (name, url, events, enabled); the secret stays the same. A webhook made before registration.updated existed does not receive it until the event is switched on.
Headers: X-MakeReady-Event, X-MakeReady-Delivery (unique id, for idempotency) and X-MakeReady-Signature: sha256=<hex HMAC-SHA256(secret, body)>. Failed deliveries are retried up to 8 times with exponential back-off (cron every 5 min). Always verify the signature and deduplicate on X-MakeReady-Delivery.
Corrections made in MakeReady
When a match admin changes the division, power factor, categories, squad, club or team of a registration that came from the club portal (on the website or on a tablet), MakeReady keeps that value on later syncs and sends registration.updated to the webhooks of the organising club that asked for it. The club portal stores the new value with the registration (and, for the division, with the member), so both sides show the same and the next sync sends the corrected value itself.
{
"event": "registration.updated",
"sentAt": "2026-12-02T19:42:10.000Z",
"data": {
"matchId": "8f0c…",
"externalId": "training-42",
"source": "member-portal",
"discipline": "ipsc_handgun",
"registration": {
"id": "3b1e…", "externalId": "165", "firstName": "Jane", "lastName": "Doe",
"division": "PROD", "powerFactor": "minor", "categories": ["L"],
"club": "Example Club", "team": null,
"squadId": "c2aa…", "squadExternalId": "21", "number": 7, "noShow": false
},
"changed": ["division", "powerFactor"],
"previous": { "division": "OPEN", "powerFactor": "major" }
}
}
externalId(of the event) andregistration.externalIdare the ids the club portal gave the event and the registration;disciplineis the discipline of the event, so the division can be stored with the member per discipline.- The message is sent right after the correction is saved (and retried like every webhook when the club portal does not answer).
registrationis the whole registration as MakeReady has it now;changednames the corrected fields andpreviousholds their values before the correction (squadIdcomes withsquadExternalId).- A new competitor number alone (the shooting order was redealt) sends no message; the number is in
registrationfor information. - "Follow the club portal again" in MakeReady forgets the corrections of a registration; the next sync then applies the club portal's values. No message is sent for that.
- A club portal that does not listen to webhooks can read the same data with
GET /api/v1/integrations/matches/:ref/registrations(scoperegistrations:read): every competitor carriesexternalId, the current values andoverrides, the list of fields corrected in MakeReady.
Results of a finished event
When a match or training is set to finished (on the website or on a tablet), MakeReady sends match.results_published to every webhook of the organising club that asked for that event. The club portal can store the scores with its members: every competitor carries the externalId the club portal gave the registration.
{
"event": "match.results_published",
"sentAt": "2026-11-11T20:15:00.000Z",
"data": {
"matchId": "8f0c…",
"externalId": "training-42",
"resultsPath": "/api/v1/integrations/matches/8f0c…/results",
"match": { "id": "8f0c…", "externalId": "training-42", "name": "Tuesday training", "kind": "training",
"discipline": "ipsc_handgun", "status": "finished", "startDate": "2026-11-11", "endDate": "2026-11-11",
"scoringMethod": "comstock" },
"stages": [{ "id": "s1…", "number": 1, "name": "El Presidente", "roundCount": 12 }],
"stageResults": true,
"competitors": [{
"id": "c1…", "externalId": "member-1017", "number": 3, "firstName": "Lode", "lastName": "Smekens",
"division": "OPEN", "powerFactor": "minor", "club": null, "team": null, "categories": [],
"squad": "Squad 1", "noShow": false, "disqualified": false, "stagesScored": 1,
"overall": { "rank": 2, "total": 48.0, "percent": 48.0 },
"inDivision": { "rank": 1, "total": 60.0, "percent": 100.0 },
"stages": {
"s1…": { "timeSeconds": 9.42, "totalTimeSeconds": 9.42, "points": 54, "hitFactor": 5.7325,
"penaltyPoints": 0, "penaltySeconds": 0,
"breakdown": { "A": 9, "C": 3, "D": 0, "M": 0, "NS": 0, "steel": 0, "procedurals": 0 },
"dnf": false, "dq": false, "zeroed": false, "revision": 1,
"overall": { "rank": 2, "stagePoints": 48.0, "stagePercent": 80.0 },
"inDivision": { "rank": 1, "stagePoints": 60.0, "stagePercent": 100.0 } }
}
}],
"results": { "ALL": [], "OPEN": [] }
}
}
competitorslists everyone registered, by number.externalIdis the club portal's id of the registration (nullfor a walk-in added in MakeReady).overallis the place among everyone,inDivisionthe place within the own division (with the division's own stage winners). Both arenullfor someone outside the standings: a no-show without a score.stagesholds the result per stage id; a stage the competitor did not shoot is absent. A drill also carriesstrings(every string on its own). Only approved scores count, the same as the standings on MakeReady.resultsis the compact standings as before (ALLplus one list per division).- A very large match (the delivery would pass 900 kB) is sent with
stageResults: falseand withoutcompetitors[].stages; fetchresultsPathwith the API key for the stage results. - The event is sent again when a score arrives after the event was finished (a tablet that synced late) or is corrected: replace what was stored for the event (
matchId), do not add to it. - Setting the event back to live and to finished again also sends it again.
Publication on the MakeReady website
Independently of the club portal, match.visibility determines who sees the results on MakeReady: public, club (members of the organising club) or private (staff). A club can therefore choose: MakeReady only, its own portal only, or both.