POST api/Installment

Request Information

URI Parameters

None.

Body Parameters

Installments
NameDescriptionTypeAdditional information
binNumber

string

None.

price

decimal number

None.

language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "binNumber": "sample string 1",
  "price": 2.1,
  "language": "sample string 3"
}

application/xml, text/xml

Sample:
<ReceivingParameters.Installments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.Models">
  <binNumber>sample string 1</binNumber>
  <language>sample string 3</language>
  <price>2.1</price>
</ReceivingParameters.Installments>

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 'Installments'.

Response Information

Resource Description

ReturningParameters
NameDescriptionTypeAdditional information
ErrorCode

integer

None.

ErrorMessage

string

None.

ErrorType

string

None.

ObjectList

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "ErrorMessage": "sample string 2",
  "ErrorType": "sample string 3",
  "ObjectList": {}
}

application/xml, text/xml

Sample:
<ReturningParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.Models">
  <ErrorCode>1</ErrorCode>
  <ErrorMessage>sample string 2</ErrorMessage>
  <ErrorType>sample string 3</ErrorType>
  <ObjectList />
</ReturningParameters>