Fetch USTA Terms And Conditions URL
Overview
Applications of USTA partners can provide the ability for their participants to create a USTA player account via the API. As a requirement, the application must collect the consent to USTA terms and conditions from the participant. In order to collect consent from the participant, the 3rd party application must display the most current USTA terms and conditions and then take action to indicate the participant’s consent. A URL to the USTA terms can be retrieved and redirected to in order to review the terms shoule the participant desire.
The 3rd party application must then collect and indicate consent on behalf of the participant when creating the account, complete with the timestamp of when the particpant actioned their consent.
The 3rd party application should redirect to the url returned from this url.
The USTA terms and conditions content must be displayed as retrieved without modification other than formatting for display purposes.
API
Endpoint
GET https://services.usta.com/v1/dataexchange//v1/ustaTerms/redirectUrl
Body
No body is required for this call.
No body for this call
Return
The deep link to the most current USTA terms and conditions on http://usta.com . The calling application should redirect to this ungated landing page
Once the participant consents, there is no need to present the terms again.
{
"redirectUrl": "https://stage.usta.com/en/home/about-usta/who-we-are/national/usta-terms-of-use.html"
}
Sample Curl
You must first retrieve an access token using Bound or Unbound method. See Cognito Client Integration Guide for more on how to request a token.
The following is a sample curl illustrating the contribution of a doubles matchup.
Where:
--header 'Authorization: Bearer eyJraW...
specifies the token that you retrieved using the https://stage-account.usta.com/oauth2/token endpoint.
Â