Memberships

get
Get Memberships

https://yourcompany.sport-keeper.com/api/v1/memberships
Retrieve memberships
Request
Response
Path Parameters
page
optional
integer
Results are paginated.
Headers
X-USER-TOKEN
required
string
Account Owner API key.
200: OK
Returns an array of memberships.
[
{
"id": 5,
"facility_id": 1,
"member_id": 18,
"expiration": "2018-11-23T17:43:21.000-05:00",
"status": "active",
"created_at": "2018-11-23T17:43:20.163-05:00",
"updated_at": "2018-11-23T17:43:23.271-05:00",
"member_group_id": null,
"membership_plan_id": 23,
"merchant_subscription_id": "sub_E1r54uOc2GsR9v",
"payment_method": "card"
},
{
"id": 7,
"facility_id": 1,
"member_id": 20,
"expiration": "2018-12-12T07:48:36.000-05:00",
"status": "active",
"created_at": "2018-12-05T07:48:13.772-05:00",
"updated_at": "2018-12-05T07:48:16.891-05:00",
"member_group_id": null,
"membership_plan_id": 23,
"merchant_subscription_id": "sub_E6CC0uW6nRTZRN",
"payment_method": "card"
}
]
404: Not Found
Could not find a membership matching this query.
{
"message": "Ain't no membership like that."
}

get
Get Single Membership

https://yourcompany.sport-keeper.com/api/v1/memberships/:id
Retrieve a single member.
Request
Response
Headers
X-USER-TOKEN
required
string
Account Owner API key.
200: OK
{
"id": 5,
"facility_id": 1,
"member_id": 18,
"expiration": "2018-11-23T17:43:21.000-05:00",
"status": "active",
"created_at": "2018-11-23T17:43:20.163-05:00",
"updated_at": "2018-11-23T17:43:23.271-05:00",
"member_group_id": null,
"membership_plan_id": 23,
"merchant_subscription_id": "sub_E1r54uOc2GsR9v",
"payment_method": "card"
}