POST api/Cart/CreateOrderAndOrderDetails

Request Information

URI Parameters

None.

Body Parameters

CGCartViewModel
NameDescriptionTypeAdditional information
user

CGUser

None.

cartId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "user": {
    "UserId": "201c7c88-1dd0-4ccb-a9f9-fc52d449eb28",
    "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
  },
  "cartId": "sample string 1"
}

application/xml, text/xml

Sample:
<CGCartViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.Data">
  <cartId>sample string 1</cartId>
  <user>
    <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>201c7c88-1dd0-4ccb-a9f9-fc52d449eb28</UserId>
    <UserName>sample string 2</UserName>
  </user>
</CGCartViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateOrderResponse
NameDescriptionTypeAdditional information
ResponseObject

CGOrder

None.

Code

ResponseCode

None.

Message

string

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.