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

This API lets you list all purchases made by the user.

Get user products alt text

Get Users/UserProducts

Get information about user's products bought at the club.

Parameters

Name Type Description
userId long Required. User identifier.
clubId long Required. Club identifier.

Response

User products.

Example request

In this example we get all products belongs to user with id 22.


curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Users/UserProducts?userId=22&clubId=1

Example response

Status: 200 OK
{
  "elements": [
    {
      "id": 10,
      "expireDate": "2019-10-01T00:00:00",
      "unitOfMeasure": "Piece",
      "transactionId": 99075,
      "quantity": 1,
      "price": 0,
      "name": "BodyShaping",
      "isStartPackageOnlyForNewcomer": "False",
      "isStartPackage": "True",
      "isActive": "True",
      "initialQuantity": 1,
      "categoriesClasses": [
        {
          "description": "MIX1",
          "id": 2,
          "name": "MIX1"
        }
      ]
    }
  ]
}
Perfect Gym api