New API available - faster and more powerful!

Check it out!
Perfect Gym api
Deprecated - API v1 will be switched off on 01.07.2022. Please upgrade to API v2


This API lets you create one day pass to club and send it to user.

Create one day pass coupon alt text

POST Coupons/AcquireCoupon


Name Type Description
firstName string Required. User first name.
lastName string Required. User last name.
email string Required. User email.
phoneNumber string Required. User phone number.
personalId string Required. User personal identifier.
homeClubId long Required. Club identifier.
couponName string Required. Coupon name.
couponDescription string Required. Coupon description.
couponValidFrom date Required. Coupon valid from date.
couponValidTo date Required. Coupon valid to date.

Example request

In this example we create one day pass for user

curl -X POST 
     -H "Authorization: Bearer $ACCESS_TOKEN" 
     -H "Content-Type: application/json" 
     -d '{      
        "couponValidFrom": "2016-01-26T00:00:00",
        "couponValidTo": "2017-01-26T00:00:00",
        "firstName": "John",
        "lastName": "Fibo",
        "email": "",
        "phoneNumber": "0048123456789",
        "personalId": "88120834567",
        "homeClubId": "0048123456789",
        "couponName": "Coupon",
        "couponDescription": "Description"        

Example response

Return coupon identifier

Status: 200 OK
  "elements": [
Perfect Gym api