Webhooks for GymMaster
GymMaster offers a webhook service that can send information to a third party such as Salesforce, GoHighLevel, or your own bespoke applications. If you already have experience with webhooks you can probably skip the first section. With LLMs (‘AI’) making custom integrations more accessible to people who haven’t built one before, it may be a helpful overview of what webhooks are and when you might want to use them.
- What are Webhooks?
- Setting up a Webhook
- Event Types
- Payloads
- Event Reference
- Failed Deliveries and Retries
- Getting more Data
What are Webhooks?
How are they different to using an API?
When there isn’t an off-the-shelf integration available (e.g. Fitness Passport, Mailchimp, or our supported billing providers), you can build your own integration with GymMaster using our API or webhooks. This could be anything from showing live class availability on a screen in your facility or adding bookings to your website, to a complete mobile app for your members.
An API endpoint is a URL that provides the information you ask for: your integration makes a request and receives a response. It answers questions like “What classes are on today?” and “How much does this member owe?”. This works well for actions started on your end, but it becomes cumbersome for questions like “Which new members have signed up?”, because you would need to ask over and over throughout the day and compare each answer to the last one to work out what changed.
Webhooks solve this problem by answering the question before you need to ask it. You give us a URL where we can reach you, and we’ll send a payload of information about an event as soon as it happens in GymMaster. They are better suited to things like members signing up, checking in to bookings, or making payments.
In many cases you will find GymMaster’s built-in task and communication systems provide everything you need. Webhooks are useful when you want to keep GymMaster in sync with your own sales and retention pipelines, marketing tools, or anything else that can be set up to receive webhooks.
For the API, see the GymMaster API Documentation
Setting up a Webhook
- In GymMaster, go to Settings > Integrations > Webhook Manager and select Add
- Enter the URL that should receive the webhooks
- Choose one or more Event Types, and the Club (or clubs) they apply to
- Optionally, set a Secret Token. GymMaster will send this in the X-Gymmaster-Token header of every webhook, so your receiving system can check that the request really came from GymMaster. A secret token can only be used with an https URL, and can’t be viewed again once it’s set.
- Select Save
The Webhook Manager shows each URL with the events and clubs it receives. Use the pencil button to change the events for a URL, or the cross to remove it.
Use Test Send on the Webhook Manager page to send a test webhook to your URL. Test webhooks use the most recently created record of that type (e.g. the newest member) as sample data, and include “test_webhook”: true in the payload so you can tell them apart from real events. The Test Webhook event sends a basic payload to every URL you have set up.
After you select Send, the result shows below. Delivered means your URL replied with a success status. Select View payload to see what GymMaster sent.
Event Types
At the time of writing, webhooks can be sent when:
- Members are added, updated, deleted, or check in at the door
- Memberships are added, started, completed, cancelled, expired, put on hold, or run out of visits (concession memberships)
- Bookings are made, checked in, checked out, rescheduled, cancelled, or marked as a no-show
- Payments for a membership are paid (with a separate event for the first payment), refunded, or fail
More event types will be added depending on demand. If there is an event you need that isn’t listed, contact GymMaster support.
Webhooks are set up per club (also known as a ‘company’) if you have more than one. You can set up a different URL for each event type you subscribe to, or send them all to the same URL and use the event type included in each webhook to sort them on your end.
Door check-ins and booking check-ins are separate events. A member checking in at the door sends Member Checkin, and checking in to a class or appointment sends Booking Checkin.
Payloads
Webhooks are sent as a POST request with a JSON body. All webhook payloads follow the same base structure. They contain an event ID, event type, event timestamp, processed timestamp and finally a payload object. For example:
{
"event_id": 338514,
"event_type": "member_add",
"event_timestamp": "2026-05-22T19:28:10.472+12",
"processed_at": "2026-05-22T19:28:25.608+12",
"payload": {
"memberid": 9226,
"companyid": 4
}
}
| Field | Description |
|---|---|
| event_id | A unique number for this webhook event. It stays the same if a webhook fails and is retried, so you can use it to make sure you haven’t already processed the same webhook. |
| event_type | Which event the webhook is for, e.g. member_add or booking_checkin. |
| event_timestamp | When the event happened in GymMaster. |
| processed_at | When the webhook was sent from GymMaster. Comparing this with event_timestamp shows whether a webhook was delayed, and by how much. |
| payload | The data for this event. The fields in this object differ depending on the event type. |
All IDs in a payload are GymMaster IDs. Use them with the GymMaster API Documentation to get more details, such as the member’s name or the membership type. Every payload includes companyid, the ID of the club the event happened at.
Event Reference
Each event has its own section on Webhook Events for GymMaster, with its payload fields and an example webhook.
| Event | event_type | Sent when |
|---|---|---|
| Member Add | member_add | A member or prospect is added |
| Member Update | member_update | A member’s details change |
| Member Delete | member_delete | A member is deleted or merged |
| Member Check-in | member_checkin | A member tries to get in at a door |
| Membership Add | membership_add | A membership is added to a member |
| Membership Complete | membership_complete | The sale of a membership is completed |
| Membership Start | membership_start | A completed membership starts |
| Membership Hold Add | membership_hold_add | A hold is added to a membership |
| Membership Cancel | membership_cancel | A membership is cancelled |
| Membership Expire | membership_expire | A membership ends on its end date |
| Membership Deplete | membership_deplete | A concession membership runs out of visits |
| Booking Add | booking_add | A member is booked in |
| Booking Reschedule | booking_reschedule | The date or time of a booking changes |
| Booking Check-in | booking_checkin | A member is checked in to a booking |
| Booking Checkout | booking_checkout | A booking check-in is undone |
| Booking No Show | booking_no_show | A booking is marked as a no-show |
| Booking Cancel | booking_cancel | A booking is cancelled |
| Journal Charge Paid Membership (First) | journal_charge_paid_ms_first | The first charge of a membership is paid |
| Journal Charge Paid Membership | journal_charge_paid_ms | A later charge of a membership is paid |
| Journal Payment Refunded Membership | journal_payment_refunded_ms | A membership payment is refunded |
| Payment Fail | payment_fail | A payment from a billing run fails |
| Test Webhook | test_webhook | You use Test Send with the Test Webhook event |
Failed Deliveries and Retries
Your system should respond with a success (2XX) status code within 10 seconds. A webhook is treated as failed if GymMaster can’t connect to your server, receives a 4XX or 5XX response, or doesn’t get a response within 10 seconds.
Failed webhooks are retried up to 8 times, with the time between attempts increasing from seconds for the first retry to 4 hours for the last. Because a retried webhook keeps the same event_id, use it to ignore any webhook you have already processed.
Getting more Data
By default the payload is quite minimal. For example, a new membership webhook includes the ID of the membership, the ID of the member, and the ID of the club they belong to. This may be enough for what you’re trying to do, such as confirming that a prospect in your sales funnel has converted by buying a membership. If you need more information, there are a couple of ways to get it.
Follow-up API request
Once you receive a webhook with a member ID, your system can make an API request to get more information, such as a list of the member’s current memberships. You can also use the API to take action, such as booking a new member into an introductory class when they sign up.
See the GymMaster API Documentation for what’s available.
Expanded payload
If you know in advance what information you need, contact GymMaster support and we can include it in the webhook payload itself. For example, for a new membership you might want to know which discount code was used to sign up, or whether the member has been a member before. For a failed payment, you might want the amount of the payment, and a link with a login token that you can send to the member, which signs them in and takes them straight to updating their payment details and trying again.
Use other platforms in the running of your business? Click here to learn more about other GymMaster integrations
Common Questions This Covers
- What are webhooks
- What is the difference between an API and a webhook
- How to set up webhooks in GymMaster
- What webhook events does GymMaster support
- Can GymMaster send more data in a webhook
- Can GymMaster connect to my own app or CRM