POST api/Shared/InsertNewCasualGolfer

Request Information

URI Parameters

None.

Body Parameters

CGUser
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

UserName

string

None.

PasswordHash

string

None.

SecurityStamp

string

None.

PassportId

integer

None.

FirstName

string

None.

LastName

string

None.

CgRegionId

integer

None.

CgRegion

string

None.

IsEmailSubscription

boolean

None.

BillingToken

BillingToken

None.

Region

string

None.

Gender

string

None.

MyGolfPassword

string

None.

CountryId

integer

None.

NonAffiliateId

integer

None.

RegionId

integer

None.

IsProfileComplete

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "7edc9011-b906-4b1a-9f72-3cc0b8c53367",
  "UserName": "sample string 2",
  "PasswordHash": "sample string 3",
  "SecurityStamp": "sample string 4",
  "PassportId": 5,
  "FirstName": "sample string 6",
  "LastName": "sample string 7",
  "CgRegionId": 8,
  "CgRegion": "sample string 9",
  "IsEmailSubscription": true,
  "BillingToken": {
    "BillingTokenId": 1,
    "DpsBillingId": "sample string 2",
    "CardType": "sample string 3",
    "CardHolderName": "sample string 4",
    "CreditCardNumber": "sample string 5"
  },
  "Region": "sample string 10",
  "Gender": "sample string 11",
  "MyGolfPassword": "sample string 12",
  "CountryId": 13,
  "NonAffiliateId": 14,
  "RegionId": 15,
  "IsProfileComplete": true
}

application/xml, text/xml

Sample:
<CGUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.Data">
  <BillingToken>
    <BillingTokenId>1</BillingTokenId>
    <CardHolderName>sample string 4</CardHolderName>
    <CardType>sample string 3</CardType>
    <CreditCardNumber>sample string 5</CreditCardNumber>
    <DpsBillingId>sample string 2</DpsBillingId>
  </BillingToken>
  <CgRegion>sample string 9</CgRegion>
  <CgRegionId>8</CgRegionId>
  <CountryId>13</CountryId>
  <FirstName>sample string 6</FirstName>
  <Gender>sample string 11</Gender>
  <IsEmailSubscription>true</IsEmailSubscription>
  <IsProfileComplete>true</IsProfileComplete>
  <LastName>sample string 7</LastName>
  <MyGolfPassword>sample string 12</MyGolfPassword>
  <NonAffiliateId>14</NonAffiliateId>
  <PassportId>5</PassportId>
  <PasswordHash>sample string 3</PasswordHash>
  <Region>sample string 10</Region>
  <RegionId>15</RegionId>
  <SecurityStamp>sample string 4</SecurityStamp>
  <UserId>7edc9011-b906-4b1a-9f72-3cc0b8c53367</UserId>
  <UserName>sample string 2</UserName>
</CGUser>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IntResponse
NameDescriptionTypeAdditional information
ResponseObject

integer

None.

Code

ResponseCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseObject": 1,
  "Code": 0,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<IntResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.CasualGolf.WebApi.Contracts">
  <Code>None</Code>
  <Message>sample string 2</Message>
  <ResponseObject>1</ResponseObject>
</IntResponse>