POST api/Card/BuyCard

Request Information

URI Parameters

None.

Body Parameters

BuyCardRequest
NameDescriptionTypeAdditional information
productID

integer

None.

ProductIDShipHand

integer

None.

firstName

string

None.

middleName

string

None.

lastName

string

None.

Address

string

None.

postalCode

string

None.

email

string

None.

City

string

None.

Phone

string

None.

Result

boolean

None.

PIN

string

None.

Request Formats

application/json, text/json

Sample:
{
  "productID": 1,
  "ProductIDShipHand": 2,
  "firstName": "sample string 3",
  "middleName": "sample string 4",
  "lastName": "sample string 5",
  "Address": "sample string 6",
  "postalCode": "sample string 7",
  "email": "sample string 8",
  "City": "sample string 9",
  "Phone": "sample string 10",
  "Result": true,
  "PIN": "sample string 12"
}

application/xml, text/xml

Sample:
<CardController.BuyCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomerAPI.Controllers">
  <Address>sample string 6</Address>
  <City>sample string 9</City>
  <PIN>sample string 12</PIN>
  <Phone>sample string 10</Phone>
  <ProductIDShipHand>2</ProductIDShipHand>
  <Result>true</Result>
  <email>sample string 8</email>
  <firstName>sample string 3</firstName>
  <lastName>sample string 5</lastName>
  <middleName>sample string 4</middleName>
  <postalCode>sample string 7</postalCode>
  <productID>1</productID>
</CardController.BuyCardRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BuyCardRequest
NameDescriptionTypeAdditional information
productID

integer

None.

ProductIDShipHand

integer

None.

firstName

string

None.

middleName

string

None.

lastName

string

None.

Address

string

None.

postalCode

string

None.

email

string

None.

City

string

None.

Phone

string

None.

Result

boolean

None.

PIN

string

None.

Response Formats

application/json, text/json

Sample:
{
  "productID": 1,
  "ProductIDShipHand": 2,
  "firstName": "sample string 3",
  "middleName": "sample string 4",
  "lastName": "sample string 5",
  "Address": "sample string 6",
  "postalCode": "sample string 7",
  "email": "sample string 8",
  "City": "sample string 9",
  "Phone": "sample string 10",
  "Result": true,
  "PIN": "sample string 12"
}

application/xml, text/xml

Sample:
<CardController.BuyCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomerAPI.Controllers">
  <Address>sample string 6</Address>
  <City>sample string 9</City>
  <PIN>sample string 12</PIN>
  <Phone>sample string 10</Phone>
  <ProductIDShipHand>2</ProductIDShipHand>
  <Result>true</Result>
  <email>sample string 8</email>
  <firstName>sample string 3</firstName>
  <lastName>sample string 5</lastName>
  <middleName>sample string 4</middleName>
  <postalCode>sample string 7</postalCode>
  <productID>1</productID>
</CardController.BuyCardRequest>