POST api/ExtraProducts
Request Information
URI Parameters
None.
Body Parameters
ExtraProductsRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| rentalDays | integer |
None. |
|
| tariffNos | Collection of integer |
None. |
|
| campaignNo | integer |
None. |
|
| classNo | integer |
None. |
|
| language | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"rentalDaysField": 1,
"tariffNosField": [
1,
2
],
"campaignNoField": 2,
"classNoField": 3,
"languageField": "sample string 4"
}
application/xml, text/xml
Sample:
<ExtraProductsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.JupicarService">
<campaignNoField>2</campaignNoField>
<classNoField>3</classNoField>
<languageField>sample string 4</languageField>
<rentalDaysField>1</rentalDaysField>
<tariffNosField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</tariffNosField>
</ExtraProductsRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ReturningParameters| Name | Description | Type | Additional 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>