Developers Area
  • Information for developers
  • About the APIs
  • Release Log
  • Level 1 Calls
    • User membership check
    • Club details
    • Club affiliation status
    • Counties
  • Level 2 Calls
    • Users
    • User clubs
    • Club members
Powered by GitBook
On this page
  1. Level 1 Calls

User membership check

/users/status (Level 1)

GET https://api.englandsquash.com/users/status

Requires Level 1 access. Returns the membership status of the individual queried, based on the required query parameters. Note: While EnglandSquashID, MemberID and SPINID are optional, one of the three is required for a valid response

Query Parameters

Name
Type
Description

Lastname

string

Last name of the member you want to check (exact match)

EnglandSquashID

string

England Squash ID of the member you want to check (exact match)

MemberID

number

Legacy member ID (old England Squash ID) of the member you want to check (exact match)

SPINID

string

SPIN ID of the member you want to check (exact match)

Headers

Name
Type
Description

APIToken

string

API key required to authenticate your request

 {
 "code": 7
 "status": "EXPIRED_ACTIVATED",
 "message": "Need to renew membership"
 "englandSquashID": "ES1234567",
 "expiresOn": "01/09/2016"
 } 
{
    "message": "Authorization has been denied for this request."
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
        <title>404 - File or directory not found.</title>
        <style type="text/css">
            <!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;} 
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;} 
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->

        </style>
    </head>
    <body>
        <div id="header">
            <h1>Server Error</h1>
        </div>
        <div id="content">
            <div class="content-container">
                <fieldset>
                    <h2>404 - File or directory not found.</h2>
                    <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
                </fieldset>
            </div>
        </div>
    </body>
</html>

Full list of response codes and meanings:

0 "UNKNOWN_ERROR_PLEASE_REPORT" Something not predicted failed (safety catch-all). Please report to recover@englandsquash.com 1 "MEMBER_ID_MISSING_AND_SPINID_MISSING" member_id parameter and spin_id not supplied in request. Please supply one of EnglandSquash ID, memberID or SPINID. These need to be entered in the relevant fields 2 "LASTNAME_MISSING" Lastname parameter not supplied in request 3 "NO_SUCH_MEMBER_ID" member_id not found in membership data 4 " LASTNAME_DOES_NOT_MATCH" surname does not match member with specified id 5 "VERIFIED_ACTIVATED" member id & surname OK - membership data renewal date in the future. User has activated their account on englandsquash.com. 6 "VERIFIED_NOT_ACTIVATED" member id & surname OK - membership data renewal date in the future. User needs to activate their account on englandsquash.com 7 "EXPIRED_ACTIVATED" member id & surname OK - membership data renewal date in the past or today. User has activated their account on englandsquash.com. 8 “EXPIRED_NOT_ACTIVATED" member id & surname OK - membership data renewal date in the past or today. User needs to renew their membership and activate their account on englandsquash.com 9 “SPINID_DOES_NOT_MATCH” spin_id does not match member. Check spelling of name and SPINID value 10 “INVALID_SPINID” invalid spin_id. Must be a number – please enter a 6-digit numeric value. See www.worldsquash.org/spin

PreviousRelease LogNextClub details

Last updated 6 years ago