User Registration

This service will handle creation of a user.

Create a user

PUT HTTPS /v1/users
Name Required Values Description
AUTHORIZATION Y Bearer {token} Used to attach access token for API call

Body

Name Required Values Description
CONTENT-TYPE Y application/json Used to alert the rest service to the presence of a json body

Body Fields (REQUIRED FIELDS denoted with *)

Name Type Constrain Description
*username String 4 - 20 characters username
*password String 4 - 20 characters password
*firstName String 1 - 20 characters first name
*lastName String 1 - 20 characters last name
*emailAddress String 3 - 100 characters all lowercase, unique email address
*birthDay Integer 1-31 day of birth
*birthMonth Integer 1-12 month of birth
*birthYear Integer >1900 year of birth
*optIn Boolean true/false mailing opt in (default true)
street String 1 - 50 characters street
city String 1 - 50 characters city
state String Must in StateCode state
country String Must in CountryCode country
zip String zip code
favoriteTeams Array Each value must be in TeamCode favorite teams in order of preference
device Device device information
*tos Boolean true/false terms of services
*gpEuropeTos Boolean true/false terms of services for Gamepass Europe

State Code

AK,AL,AR,AZ,CA,CO,CT,DC,DE,FL,
GA,GU,HI,IA,ID, IL,IN,KS,KY,LA,
MA,MD,ME,MH,MI,MN,MO,MS,MT,NC,ND,
NE,NH,NJ,NM,NV,NY, OH,OK,OR,PA,
PR,PW,RI,SC,SD,TN,TX,UT,VA,VI,VT,
WA,WI,WV,WY

Country Code

Please use ISO-Alpha-2 Country Code http://www.nationsonline.org/oneworld/country_code_list.htm

Also you can call the following endpoint to get the list of available country codes in ISO2 format:

GET HTTP /v1/countryCodes

Sample Response

{
    "countryCodes": [
        {
            "name": "Andorra",
            "code": "AD"
        },
        {
            "name": "United Arab Emirates",
            "code": "AE"
        },
        ...
        {
            "name": "Zambia",
            "code": "ZM"
        },
        {
            "name": "Zimbabwe",
            "code": "ZW"
        }
    ]
}

Team Code

ARI,ATL,BAL,BUF,CAR,CHI,CIN,CLE,
DAL,DEN,DET,GB,HOU,IND,JAC,KC,LA,LAR
MIA,MIN,NE,NO,NYG,NYJ,OAK,PHI,
PIT,SEA,SF,TB,TEN,WAS

Device Type

Name Type Description
id string device unique id

Request JSON

{  
   "username":"jimmyreeds4",
   "password":"password",
   "firstName":"William",
   "lastName":"Somo",
   "emailAddress":"jimmyreed4@nfl.com",
   "street":"123 NFL Street",
   "city":"Culver City",
   "state":"CA",
   "country":"US",
   "zip":"92330",
   "birthYear" : 1986,
   "birthMonth" : 10,
   "birthDay" : 10,
   "optIn" : "true",
   "favoriteTeams" : [
      "SF",
      "OAK",
      "STL"
   ],
   "device":{  
      "id":"68753A44-4D6F-1234-9D60-0050E4C11167"
   }
}

Response Status Code

Code Description Body
202 Accepted No body
400 Bad Request No body

Check if a username exists

GET HTTP /v1/users/{username}/exists

Header

Name Required Values Description
AUTHORIZATION Y Bearer {token} Used to attach access token for API call

Path Parameters

Name Description Type
username Desired username to check for String

Response Status Code

Code Description Body
200 OK Return true / false indicating the existence of that username