Skip to content
Last updated

Integration types

This guide explains the different integration patterns available when connecting your member management system (MMS) with EGYM. Understanding these patterns will help you choose the right approach for your use case and implement a robust, bidirectional synchronization strategy.

Overview

EGYM MMS API v2 supports two primary data flow patterns:

  • PUSH integration - Your system sends data to EGYM
  • PULL integration - Your system retrieves data from EGYM

Most integrations use a combination of both patterns to maintain bidirectional synchronization and ensure data consistency across systems.

PUSH integration

PUSH integration means your MMS actively sends member data to EGYM whenever changes occur in your system.

When to use PUSH

Use PUSH integration when:

  • Members are created or updated in your MMS
  • Membership contracts are modified (upgrades, extensions, cancellations)
  • Member personal information changes (email, name, contact details)
  • You need to ensure EGYM has the latest member data immediately

Key operations

OperationMethodEndpointPurpose
Create memberPOST/api/v2/accountsAdd new membership data to EGYM
Update memberPUT/api/v2/accounts/{accountId}Modify existing membership data
Delete memberDELETE/api/v2/accounts/{accountId}Remove membership data
Upload profile picturePOST/api/v2/accounts/{accountId}/imageAdd member photo

PUSH workflow example

Member signs up in your MMS

Your system calls POST /api/v2/accounts

Store returned accountId in your database

Member upgrades membership in your MMS

Your system calls PUT /api/v2/accounts/{accountId}

EGYM receives updated membership information

Critical requirement: Conflict resolution

Required for PUSH integration

Implementing conflict resolution is mandatory for PUSH integration. Your system must automatically detect and resolve HTTP 409 conflicts that occur due to uniqueness constraints (duplicate emails or membershipIds). See the Conflict Resolution guide for complete details.

Learn more

For detailed guidance on implementing PUSH integration, see:

PULL integration

PULL integration means your system retrieves member data from EGYM on a regular schedule or on-demand.

When to use PULL

Use PULL integration when you are a non-MMS partner who needs to retrieve membership data that was sent to EGYM by MMS partners. This allows you to:

  • Access member information managed by gym management systems
  • Synchronize membership data to your system
  • Perform initial data import of members
  • Keep your system updated with membership changes on a regular schedule

Key operations

OperationMethodEndpointPurpose
List membersGET/api/v2/accountsRetrieve member accounts with filters
Get member detailsGET/api/v2/accounts/{accountId}Fetch specific member information

PULL workflow example

Schedule periodic sync (every 10 minutes)

Call GET /api/v2/accounts with time filters

Process returned member updates

Update members in your MMS database

Store sync timestamp for next iteration

Learn more

For detailed guidance on implementing PULL integration, see: