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
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
APIToken
string
API key required to authenticate your request
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
Last updated