Members

get
All Members

https://yourcompany.sport-keeper.com/api/v1/members
Retrieve all members
Request
Response
Path Parameters
page
optional
integer
Results are paginated.
Headers
Authorization
required
string
Auth token
200: OK
Returns an array of members. Only the first 20 are returned. Passing the page param will paginate the results.
[
{
"id": 34,
"first_name": "Gilbert",
"last_name": "Daniel",
"middle_name": "Loyce",
"address": "111 Hirthe Glen",
"zipcode": "12414-7378",
"city": "Jenkinshaven",
"state": "Colorado",
"country": "United States",
"phone": "701-540-7972",
"birthday": "1973-03-12T00:00:00.000-05:00",
"age": 30,
"gender": "female",
"emergency_contact": "Kennith Grimes",
"emergency_contact_phone": "864-780-4539 x6133",
"picture_data": null,
"checkins_count": 0,
"created_at": "2018-11-28T19:04:25.000-05:00",
"updated_at": "2018-10-27T09:40:16.668-04:00",
"email": "audrey@kuhic.net",
"pin": 68890,
"avatar_data": null,
"merchant_customer_id": "cus_DxghAV5KT0GV34"
},
{
"id": 82,
"first_name": "Johnathon",
"last_name": "Kozey",
"middle_name": "Prince",
"address": "68644 Mitch Camp",
"zipcode": "94530-2094",
"city": "Lenland",
"state": "Wisconsin",
"country": "United States",
"phone": "495-863-5305",
"birthday": "1971-01-28T00:00:00.000-05:00",
"age": 38,
"gender": "other",
"emergency_contact": "Steven Cassin",
"emergency_contact_phone": "590-619-0111 x8525",
"picture_data": null,
"checkins_count": 0,
"created_at": "2018-12-01T06:30:49.000-05:00",
"updated_at": "2018-10-27T09:40:22.682-04:00",
"email": "ethelterry@roberts.org",
"pin": 842154,
"avatar_data": null,
"merchant_customer_id": "cus_E4OSS8QWRCfWBJ"
}
]

get
Show Member

https://yourcompany.sport-keeper.com/api/v1/members/:id
Retrieve a single member
Request
Response
Headers
Authorization
required
string
Auth token
200: OK
{
"id": 34,
"first_name": "Gilbert",
"last_name": "Daniel",
"middle_name": "Loyce",
"address": "111 Hirthe Glen",
"zipcode": "12414-7378",
"city": "Jenkinshaven",
"state": "Colorado",
"country": "United States",
"phone": "701-540-7972",
"birthday": "1973-03-12T00:00:00.000-05:00",
"age": 30,
"gender": "female",
"emergency_contact": "Kennith Grimes",
"emergency_contact_phone": "864-780-4539 x6133",
"picture_data": null,
"checkins_count": 0,
"created_at": "2018-11-28T19:04:25.000-05:00",
"updated_at": "2018-10-27T09:40:16.668-04:00",
"email": "audrey@kuhic.net",
"pin": 68890,
"avatar_data": null,
"merchant_customer_id": "cus_DxghAV5KT0GV34"
}
404: Not Found
null

post
Create Member

https://yourcompany.sport-keeper.com/v1/members
Request
Response
Headers
Authorization
required
string
Auth Token
Form Data Parameters
email
required
string
Email of the member
first_name
required
string
Members first name.
middle_name
optional
string
Members middle name.
last_name
required
string
Last name of Member.
pin
required
integer
Unique 4 digit pin code.
address
optional
string
Members address.
city
optional
string
Members city.
state
optional
string
Members state.
zipcode
optional
string
Members zipcode.
country
optional
string
Members country.
phone
optional
string
Members phone.
birthday
optional
string
Members birthday.
age
optional
integer
Members age.
gender
optional
integer
0 - male, 1 - female, 2 - other
emergency_contact_phone
optional
string
Emergency phone number
200: OK
{
"id": 34,
"first_name": "Gilbert",
"last_name": "Daniel",
"middle_name": "Loyce",
"address": "111 Hirthe Glen",
"zipcode": "12414-7378",
"city": "Jenkinshaven",
"state": "Colorado",
"country": "United States",
"phone": "701-540-7972",
"birthday": "1973-03-12T00:00:00.000-05:00",
"age": 30,
"gender": "female",
"emergency_contact": "Kennith Grimes",
"emergency_contact_phone": "864-780-4539 x6133",
"picture_data": null,
"checkins_count": 0,
"created_at": "2018-11-28T19:04:25.000-05:00",
"updated_at": "2018-10-27T09:40:16.668-04:00",
"email": "audrey@kuhic.net",
"pin": 68890,
"avatar_data": null,
"merchant_customer_id": "cus_DxghAV5KT0GV34"
}

patch
Update Member

https://yourcompany.sport-keeper.com/v1/members/:id
Update a single member. All of the above properties in create member are valid.
Request
Response
Headers
Authorization
optional
string
Auth token
200: OK
{
"id": 34,
"first_name": "Gilbert",
"last_name": "Daniel",
"middle_name": "Loyce",
"address": "111 Hirthe Glen",
"zipcode": "12414-7378",
"city": "Jenkinshaven",
"state": "Colorado",
"country": "United States",
"phone": "701-540-7972",
"birthday": "1973-03-12T00:00:00.000-05:00",
"age": 30,
"gender": "female",
"emergency_contact": "Kennith Grimes",
"emergency_contact_phone": "864-780-4539 x6133",
"picture_data": null,
"checkins_count": 0,
"created_at": "2018-11-28T19:04:25.000-05:00",
"updated_at": "2018-10-27T09:40:16.668-04:00",
"email": "audrey@kuhic.net",
"pin": 68890,
"avatar_data": null,
"merchant_customer_id": "cus_DxghAV5KT0GV34"
}

delete
Delete a Member

https://yourcompany.sport-keeper.com/v1/members/:id
Delete a member.
Request
Response
Headers
Authorization
required
string
Auth token.
200: OK
‚Äč