POST api/Tariffs

Request Information

URI Parameters

None.

Body Parameters

CustomersTariffs
NameDescriptionTypeAdditional information
Id

integer

None.

TariffNo

integer

None.

OnlinePayment

boolean

None.

CustomersId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TariffNo": 1,
  "OnlinePayment": true,
  "CustomersId": 1
}

application/xml, text/xml

Sample:
<CustomersTariffs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.Models">
  <CustomersId>1</CustomersId>
  <Id>1</Id>
  <OnlinePayment>true</OnlinePayment>
  <TariffNo>1</TariffNo>
</CustomersTariffs>

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

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>