POST api/CreditCard/AddCridetCard

Request Information

URI Parameters

None.

Body Parameters

CreditCardViewModels
NameDescriptionTypeAdditional information
OrderID

string

None.

CardName

string

None.

SequenceOne

string

None.

SequenceTwo

string

None.

SequenceThree

string

None.

SequenceFour

string

None.

MonthPick

string

None.

YearPicker

string

None.

Secret

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderID": "sample string 1",
  "CardName": "sample string 2",
  "SequenceOne": "sample string 3",
  "SequenceTwo": "sample string 4",
  "SequenceThree": "sample string 5",
  "SequenceFour": "sample string 6",
  "MonthPick": "sample string 7",
  "YearPicker": "sample string 8",
  "Secret": "sample string 9"
}

application/xml, text/xml

Sample:
<CreditCardViewModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxiAppAPI.Models">
  <CardName>sample string 2</CardName>
  <MonthPick>sample string 7</MonthPick>
  <OrderID>sample string 1</OrderID>
  <Secret>sample string 9</Secret>
  <SequenceFour>sample string 6</SequenceFour>
  <SequenceOne>sample string 3</SequenceOne>
  <SequenceThree>sample string 5</SequenceThree>
  <SequenceTwo>sample string 4</SequenceTwo>
  <YearPicker>sample string 8</YearPicker>
</CreditCardViewModels>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreditCardViewModels'.

Response Information

Resource Description

RetrunCode
NameDescriptionTypeAdditional information
StatusCode

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<RetrunCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TaxiAppAPI.Models">
  <Message>sample string 2</Message>
  <StatusCode>1</StatusCode>
</RetrunCode>