Go back to list

Introduction

To reduce maintenance costs and provide the Clubs with a more stable PGM system version with a significant number of usable endpoints, we've decided to turn off the API v1 and reflect all needed endpoints in the API v2.

Example

API v1 endpoint looks like - Classes/UserClasses

API v2 endpoint looks like - /v2/odata/Classes

  • This article lists API v1 endpoints reflected in API v2. 
  • This article will be helpful to Administrator, PG Champion and IT Department in the Club. 

Before you start 

Please verify your API usage in case of endpoints from API v1. All endpoints, which doesn't have in the title '/v2/' are using API v1 and should be migrated to the APIv2 endpoints. 

List of API v1 endpoints reflected in the API v2

Below, you will find the reflection of the endpoints with links to the detailed documentation.  

API v1 Endpoint API v2 Endpoint Comments
Classes/ClassesTypes /v2/odata/ClassTypes  
Classes/Classes /v2/odata/Classes  
Classes/UserPresence /v2/ClassBooking/SetMembersPresenceOnClass available in version R88 and higher
Classes/Categories /v2/odata/ClassCategories  
Classes/UserClasses /v2/odata/ClassBookings  
Classes/UserClass /v2/odata/ClassBookings  
Classes/BookClass /v2/ClassBooking/BookClass  
Classes/AvailableSeatNumbers /v2/odata/ClassTypeAppAvailabilities  
Classes/CancelBooking /v2/ClassBooking/CancelClassBooking  
Classes/BookClass/PersonalTraining /v2/PersonalTrainings/BookPersonalTraining  
Classes/RateClass /v2/Ratings/RateClass  
Classes/RateInstructor v2/Ratings/RateClass  
Classes/WhoIsIn /v2/odata/ClassBookings  
Clubs/Club /v2/odata/Clubs  
Clubs/WhoIsIn /v2/odata/MemberClubVisits  
Instructors/Instructors /v2/odata/Instructors  
Instructors/Instructor/Available /v2/odata/EmployeeAvailabilitySlots  
Instructors/Instructor/Sheduler /v2/odata/PersonalTrainingBookings  
Memberships/Memberships /v2/odata/MembershipRules available in version R86 and higher
Memberships/Membership /v2/odata/MembershipTypes available in version R86 and higher
PaymentPlans/PaymentPlans /v2/odata/PaymentPlans  
PaymentPlans/ProrataCalculation /v2/Contracts/CalculateProrata available in version R86 and higher
PaymentPlans/PaymentPlan /v2/odata/PaymentPlans  
Discounts/Discounts /v2/odata/ContractDiscountDefinitions  
Discounts/DiscountedFees /v2/Contracts/SimulateNewContract  
Contracts/Contracts /v2/odata/Contracts  
Contracts/Contract /v2/odata/Contracts  
Contracts/Contract/Fees /v2/odata/ContractCharges also: /v2/odata/ContractPayments
Contracts/FreezeReasons /v2/odata/FreezeReasons available in version R86 and higher
Contracts/FreezeTypes /v2/odata/FreezeTypes available in version R86 and higher
Contracts/FreezeType /v2/odata/FreezeTypes available in version R86 and higher
Contracts/Freeze /v2/Contracts/Freeze available in version R86 and higher
Users/Users /v2/odata/Members  
Users/User /v2/odata/Members  
Users/Search /v2/odata/Members  
Users/User [POST] /v2/Members/AddContractMember also: /v2/Members/AddGuestMember
Users/User [PUT] /v2/Members/UpdateMemberDetails available in version R86 and higher
Users/Photo /v2/Members/SetPhoto  
Users/UserContract /v2/Members/AddContractMember  
Users/Contract /v2/Contracts/AddContract  
Users/Contract [DELETE] /v2/Contracts/Delete available in version R86 and higher
Users/SignContract /v2/Contracts/SignContractDocument  
Users/CreditCard /v2/CreditCards/InitExternalCreditCardRegistration  
Users/DirectDebit /v2/MemberPaymentSource/AddDirectDebitPaymentMethod  
Users/Agreements /v2/MemberAgreements/Set available in version R86 and higher
Users/AgreementType /v2/odata/MemberAgreementTypes  
Users/UserProducts /v2/odata/MemberProducts  
Users/MembershipCards /v2/odata/MemberCards  
Users/MembershipCard [POST] /v2/MemberCards/AssignCard  
Users/DetachMembershipCard /v2/MemberCards/DetachCard available in version R86 and higher
Users/FriendStatus /v2/odata/MemberRelations  
Users/Friends /v2/odata/MemberRelations  
Users/SignUp /v2/Members/AddContractMember also: /v2/Members/AddGuestMember
Users/ResetPassword

/v2/Members/ResetPassword 

/v2/MemberAuth/GenerateResetPasswordToken

available in version R86 and higher
Users/SendEmailToResetPassword /v2/MemberAuth/SendResetPasswordLink available in version R86 and higher
Users/Search /v2/Members/Search  
Users/ValidateCredentials /v2/MemberAuth/VerifyMemberCredentials

also /v2/MemberAuth/VerifyCredentials

Users/ClubVisits /v2/odata/MemberClubVisits  
Users/ClubVisits/All /v2/odata/MemberClubVisits  
Documents/Documents /v2/odata/MemberFiles  
Payments/ContractFees /v2/odata/ContractCharges also: /v2/odata/ContractPayments
Payments/ManualContractPayment /v2/Transactions/AddContractPayment  
Payments/ExternalSystemCreditCardPayment /v2/CreditCards/PayWithRedirect  
Payments/PayWithCreditCard /v2/CreditCards/PayWithCreditCard  
Payments/Prepaid /v2/Payments/PrepaidTopup available from version R88
Payments/Prepaid/Bonus /v2/odata/CashlessBonusStages available from version R86
Payments/PaymentStatus /v2/ClientPortal/GetPaymentStatus also: /v2/odata/OnlineGateTransactions
Products/Products /v2/odata/Products  
Products/CategoryTypes /v2/odata/ProductCategories  
Products/Product/Buy /v2/Products/AddPosPurchaseTransaction available from version R86
Products/Product/Use /v2/Products/Use available from version R86
Crm/Lead /v2/Crm2/AddLead also: /v2/Crm/AddLead
Crm/Lead/Sources /v2/odata/CrmLeadSources  
Crm/Lead/Agreements /v2/odata/MemberAgreementTypes  
Geo/Cities /v2/odata/Cities  
Geo/Countries /v2/odata/Countries  
ics /v2/Files/GetCalendarFileDownloadUrl also: /v2/Files/GetCalendarFile available from version R86

Hints

Not every endpoint in API v2 works exactly as the respective endpoint in API v1. Contact Perfect Gym Support Team if you have trouble performing some operations using API v2 that you could do in the API v1.

Help us improve the Knowledge Base experience and rate this article!
0.0
No votes have been submitted yet.
Loading...