Perfect Gym api

Freeze reasons

Freeze reason represent a reason user wants to suspend membership contract.

Freeze reason properties

Freeze reason is described by the following properties

Name Type Description
id long Freeze reason identifier.
name string Freeze reason name.

List available freeze reasons alt text

GET Contracts/FreezeReasons

Returns list of available freeze reasons.

Example request

In this example we fetch all available freeze reasons.

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

Example response

Status: 200 OK
{
  "elements": [
    {
      "id": 1,
      "name": "Holiday"
    },
    {
      "id": 2,
      "name": "Injury"
    },
    {
      "id": 3,
      "name": "Medical"
    },
    {
      "id": 4,
      "name": "Other"
    },
    {
      "id": 5,
      "name": "Pregnancy"
    }
  ]
}
Perfect Gym api