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

Products

Represents product available in your club.

Products properties

Product is described by the following properties

Name Type Description
id long Product identity.
name string Product name.
price decimal Product price.
isActive bool Is product available.
unitOfMeasure string Unit of measure.
type string Product type.
category string Product category.
createdTime datetime Product added date.
clubZoneTypes ClubZoneTypes Club zone available with product.
categoriesClasses CategoriesClasses Classes available with product.

List products in club alt text

GET Products/Products

Returns products list.

Parameters

Name Type Description
clubId long Required. Club identifier. Request returns products in club identified by clubId.
productTarget string Defined place where product is available.
clubServiceType string Service type.
categoryTypeId long Category type identifier.

Example request

In this example we fetch products in club with id = 2

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Products/Products?clubId=2       

Example response

Status: 200 OK
{
  "elements": [
    {
      "category": "Drink",
      "createdTime": "2014-03-28T16:19:51",
      "isActive": "True",
      "name": "Mineral water",
      "price": "5",
      "type": "ProductGood",
      "unitOfMeasure": "Piece"
    },
    {
      "category": "Waterfall Golf",
      "createdTime": "2014-02-28T16:19:51",
      "isActive": "True",
      "name": "Waterfall Golf",
      "price": "10",
      "type": "ProductService",
      "unitOfMeasure": "Piece"
    },
    {
      "category": "Waterfall Golf",
      "createdTime": "2014-02-28T16:19:51",
      "isActive": "True",
      "name": "Waterfall 20 Golf",
      "price": "10",
      "type": "ProductBundle",
      "unitOfMeasure": "Piece"
    }
  ]
}

Product targets alt text

GET Products/ProductTargets 

Returns targets list.

Example request

In this example we fetch list of targets

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Products/ProductTargets
        

Club service types alt text

GET Products/ClubServiceTypes 

Returns club service types list.

Example request

In this example we fetch list of service types

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Products/ClubServiceTypes
        

Product categories alt text

GET Products/CategoryTypes

Returns product categories.

Example request

In this example we fetch list of categories

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Products/CategoryTypes
        
Perfect Gym api