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

Pending contract fees

Pending contract fee is a summary representation of a fee to be paid by a user.

Pending contract fee properties alt text

Pending contract fee is described by the following properties

Name Type Description
id long Unique identifier of pending fee.
timestamp long Timestamp. Indicates when resource was last modified.
name string Pending fee name.
description string Pending fee description.
feeType string Pending fee type.
Possible values:
  • Prorata
  • AdminFee
  • JoiningFee
  • Prepaid
  • Membership
  • Freeze
  • Manual
  • Other
fee Fee Fee to be paid.
dueDate string Fee due date
isDeleted bool Indicates if resource is deleted.

List user pending contract fees alt text

GET Payments/ContractFees

Returns paginated list of conract fees to be paid by a given user.

Parameters

Name Type Description
userId long Required. User identifier.

Example request

In this example we fetch list of pending contract fees of user identified with id = 236

curl -i 
     -X GET 
     -H "Authorization: Bearer  $ACCESS_TOKEN"  
     http://yoursubdomain.perfectgym.com/Api/Payments/ContractFees?userId=236

Example response

Status: 200 OK
{
  "elements": [
    {
      "name": "",
      "description": "Basic 6m 50% Admin fee",
      "paymentType": "AdminFee",
      "amount": {
        "net": -15.45,
        "tax": -3.55,
        "taxRate": 23,
        "gross": -19
      },
      "dueDate": "2016-01-26T00:00:00",
      "id": 3890,
      "timestamp": 448449,
      "isDeleted": false
    },
    {
      "name": "",
      "description": "Basic 6m Prorata, 6 days",
      "paymentType": "Prorata",
      "amount": {
        "net": -3.13,
        "tax": -0.72,
        "taxRate": 23,
        "gross": -3.85
      },
      "dueDate": "2016-01-26T00:00:00",
      "id": 3889,
      "timestamp": 448447,
      "isDeleted": false
    },
    {
      "name": "",
      "description": "Basic w 2016-02 (discount 9,95 - 50%)",
      "paymentType": "Membership",
      "amount": {
        "net": -8.09,
        "tax": -1.86,
        "taxRate": 23,
        "gross": -9.95
      },
      "dueDate": "2016-02-02T00:00:00",
      "id": 3891,
      "timestamp": 448451,
      "isDeleted": false
    }
  ]
}
Perfect Gym api