POST api/payment/checkout

Request Information

URI Parameters

None.

Body Parameters

PaymentViewModel
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

Name

string

None.

Email

string

None.

FirstName

string

None.

LastName

string

None.

Address1

string

None.

Address2

string

None.

City

string

None.

State

string

None.

Zip

string

None.

CountryCode

string

None.

ContactNo

string

None.

CreditCardType

string

None.

CreditCardNumber

string

None.

CVV2

string

None.

ExpMonth

integer

None.

ExpYear

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "ad5b7acf-ad40-495d-a472-4be48743e9c8",
  "Name": "sample string 2",
  "Email": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "Address1": "sample string 6",
  "Address2": "sample string 7",
  "City": "sample string 8",
  "State": "sample string 9",
  "Zip": "sample string 10",
  "CountryCode": "sample string 11",
  "ContactNo": "sample string 12",
  "CreditCardType": "sample string 13",
  "CreditCardNumber": "sample string 14",
  "CVV2": "sample string 15",
  "ExpMonth": 16,
  "ExpYear": 17
}

text/html

Sample:
{"UserId":"ad5b7acf-ad40-495d-a472-4be48743e9c8","Name":"sample string 2","Email":"sample string 3","FirstName":"sample string 4","LastName":"sample string 5","Address1":"sample string 6","Address2":"sample string 7","City":"sample string 8","State":"sample string 9","Zip":"sample string 10","CountryCode":"sample string 11","ContactNo":"sample string 12","CreditCardType":"sample string 13","CreditCardNumber":"sample string 14","CVV2":"sample string 15","ExpMonth":16,"ExpYear":17}

application/xml, text/xml

Sample:
<PaymentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SingersBabel.BAL.ViewModel">
  <Address1>sample string 6</Address1>
  <Address2>sample string 7</Address2>
  <CVV2>sample string 15</CVV2>
  <City>sample string 8</City>
  <ContactNo>sample string 12</ContactNo>
  <CountryCode>sample string 11</CountryCode>
  <CreditCardNumber>sample string 14</CreditCardNumber>
  <CreditCardType>sample string 13</CreditCardType>
  <Email>sample string 3</Email>
  <ExpMonth>16</ExpMonth>
  <ExpYear>17</ExpYear>
  <FirstName>sample string 4</FirstName>
  <LastName>sample string 5</LastName>
  <Name>sample string 2</Name>
  <State>sample string 9</State>
  <UserId>ad5b7acf-ad40-495d-a472-4be48743e9c8</UserId>
  <Zip>sample string 10</Zip>
</PaymentViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.