You can lookup a USTA player safe play status given a email or UAID. API will provide safe play status i.e. if approved or not.
This API is called once per player.
Production: POST https://api-ustaconnect.usta.com/v1/usta-service/customers/safeplay/approval/isApproved Stage: POST https://stage-api-ustaconnect.usta.com/v1/usta-service/customers/safeplay/approval/isApproved |
{ "email": "test@mailinator.com" } |
{ "uaid": "201842xxxx" } |
{ "isApproved": true } |
You must first retrieve an access token using Bound or Unbound method. See STAGE2 - OKTA Auth0 Client Integration Guide for more on how to request a token.
You must first retrieve an access token using Bound or Unbound method. See STAGE2 - OKTA Auth0 Client Integration Guide for more on how to request a token.
The following is a sample curl to retrieve a player membership status.
Where:
--header 'Authorization: Bearer eyJraW...
specifies the token that you retrieved using the https://account-ustaconnect.usta.com/oauth/token endpoint.
curl --location 'https://api-ustaconnect.usta.com/v1/usta-service/customers/safeplay/approval/isApproved' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer eyJraW... --data '{ "email": "test@mailinator.com" }' |