Deprecated - API v1 will be switched off on 01.07.2022. Please upgrade to API v2
User products
This API lets you list bought products available in club.
GET Users/User/Product
Parameters
Name | Type | Description |
---|---|---|
userId |
long |
Required. User identifier. |
clubId |
long |
Required. Club identifier. |
Example request
In this example we list products bought by user with id
= 521
in club with id
= 1
.
curl -X POST -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" http://yoursubdomain.perfectgym.com/Api/Users/User/Product?userId=521&clubId=1
Example response
Status: 200 OK
{
"elements": [
{
"productId": 10,
"productName": "1 x PT",
"quantity": "10",
"expireDate": "2019-10-01T00:00:00"
}
]
}