You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 8 Next »
Before using this, please refer to Account API functions for login and API explanations.
Changes the logged in users' email address
GET /user/history/subscriptions
Account privilege restriction:
Request
Method: GET
Only logged in: YES
Headers:
X-Requested-With
Parameters:
User id for which to get the information
Ignored if privilege is member and will only return data for current logged in member
NO
Default: name
Sort index for which to sort the records:
Default: asc
Sort order:
Default: 10
Default: 1
State of the subscription:
Default: false
Response
Description
200
{ "rows": [ { "id": 6, "cell": { "actions": 6, "name": "Test subscription", "type": "Corporate", "access": "Best club (Toate)", "access_time": "07:00 - 23:59", "access_type": "Full access", "checkins": "0 (0)", "entrances": "0 (0)", "invites": "0 (0)", "availability": "05/01/2018 - 06/01/2018", "is_active": 0 } }, { "id": 10, "cell": { "actions": 10, "name": "Test", "type": "Personal", "access": "Best club (Toate)", "access_time": "07:00 - 23:59", "access_type": "Full access", "checkins": "0 (0)", "entrances": "0 (0)", "invites": "0 (0)", "availability": "02/01/2018 - 04/02/2018", "is_active": 1 } } ], "records": 2, "page": 1, "total": 1 }
Success response
Type of the subscription:
Where access is allowed:
<club name> (<studio>)
Time span when the subscription can be used:
<start time> - <end time>
Access type of the subscription:
How many check-ins are left:
<left> (<initial>)
How many group class entrances are left:
How many invites are left:
Shows the status of the subscription:
422
{ "success": 0 }
Error