Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page Tree Search

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.

Info

The USTA terms and conditions content must be displayed as retrieved without modification other than formatting for display purposes.

API

Endpoint

Code Block
GET https://services.usta.com/v1/dataexchange//v1/ustaTerms/redirectUrl

Body

No body is required for this call.

Code Block
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.

Code Block
{
    "contentUrlredirectUrl": "https://wwwstage.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/tokenendpoint.

Code Block
curl --location --request GET 'https://stage-services.usta.com/v1/dataexchange/ustaTerms/redirectUrl' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJraW...' \
--header 'Cookie: JSESSIONID=A18BF05059108055D15F38262123C04D' \
--data-raw ''

Panel
bgColor#FFFFFF

On This Page:

Table of Contents