POST api/AddOn/GetInsurance?apiKey={apiKey}&lng={lng}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
apiKey | string |
Required |
|
lng | string |
Default value is en |
Body Parameters
RentalInName | Description | Type | Additional information |
---|---|---|---|
RentalDays | integer |
None. |
|
RentalType | RentalType |
None. |
|
VehicleModelID | globally unique identifier |
None. |
|
SubscriptionMonth | integer |
None. |
|
ModelYear | integer |
None. |
|
SubscriptionKm | integer |
None. |
|
RentalTariffID | globally unique identifier |
None. |
|
RentalTariffName | string |
None. |
|
CheckOutOn | date |
None. |
|
CheckInOn | date |
None. |
|
CheckOutBranchID | globally unique identifier |
None. |
|
CheckInBranchID | globally unique identifier |
None. |
|
DeliveryDetails | DeliveryPickupDetail |
None. |
|
PickupDetails | DeliveryPickupDetail |
None. |
|
DebtorID | globally unique identifier |
None. |
|
RentalDiscountOffered | decimal number |
None. |
|
AdditionalDrivers | integer |
None. |
|
IsPAISelected | boolean |
None. |
|
IsCDWSelected | boolean |
None. |
|
IsSCDWSelected | boolean |
None. |
|
AncillaryIn | Collection of AncillaryIn |
None. |
|
RemovedLedgerID | globally unique identifier |
None. |
|
PromoCode | string |
None. |
|
SpecialOfferID | globally unique identifier |
None. |
|
SpecialOfferName | string |
None. |
|
CheckOutKm | integer |
None. |
|
CheckInKm | integer |
None. |
|
CheckInFuel | integer |
None. |
|
CheckOutFuel | integer |
None. |
|
VehicleID | globally unique identifier |
None. |
|
AllowedKm | integer |
None. |
|
AllowedKmPerRental | integer |
None. |
|
TransactionID | globally unique identifier |
None. |
|
TransactionType | TransactionType |
None. |
|
RentalRate | decimal number |
None. |
|
ModelWiseChargeID | globally unique identifier |
None. |
|
VehicleVariantID | globally unique identifier |
None. |
|
CancelledOn | date |
None. |
|
DayUnitID | integer |
None. |
|
PaymentStatus | PaymentStatus |
None. |
|
UpgradeTariffGroupID | globally unique identifier |
None. |
|
UpgradeModelID | globally unique identifier |
None. |
|
UpgradeType | UpgradeType |
None. |
|
ModifiedReservationID | globally unique identifier |
None. |
|
ContactID | globally unique identifier |
None. |
|
IsMonthlyBooking | boolean |
None. |
|
IPLocation | IPLocation |
None. |
Request Formats
application/json, text/json
Sample:
{ "RentalDays": 1, "RentalType": 0, "VehicleModelID": "475459bb-ecf0-4dda-afd2-2e5aec1fcd6c", "SubscriptionMonth": 3, "ModelYear": 4, "SubscriptionKm": 5, "RentalTariffID": "5e7424a0-f6d9-424d-b04d-437b0d338318", "RentalTariffName": "sample string 7", "CheckOutOn": "2023-12-10T13:43:02.0982203+04:00", "CheckInOn": "2023-12-10T13:43:02.0982203+04:00", "CheckOutBranchID": "267d3ead-081f-4209-a522-31b5957a788b", "CheckInBranchID": "380ce070-5f9c-44d1-af6d-1a5b01686633", "DeliveryDetails": { "Address": "sample string 4", "AddressJson": "sample string 5", "StateName": "sample string 8" }, "PickupDetails": { "Address": "sample string 4", "AddressJson": "sample string 5", "StateName": "sample string 8" }, "DebtorID": "531d4fe4-ebee-40a2-8f05-72679bdd3ee3", "RentalDiscountOffered": 14.1, "AdditionalDrivers": 15, "IsPAISelected": true, "IsCDWSelected": true, "IsSCDWSelected": true, "AncillaryIn": [ { "AncillaryID": "0b67aeb4-7d9a-4a56-97e6-4c933297ed1e", "Qty": 2, "AncillaryItemIDs": [ "44f0a1e6-ceb3-4a1a-b74f-7009de6be993", "d70e70a7-8ea1-417e-a3f2-e4535a46d117" ] }, { "AncillaryID": "0b67aeb4-7d9a-4a56-97e6-4c933297ed1e", "Qty": 2, "AncillaryItemIDs": [ "44f0a1e6-ceb3-4a1a-b74f-7009de6be993", "d70e70a7-8ea1-417e-a3f2-e4535a46d117" ] } ], "RemovedLedgerID": "dd6b7b95-24e7-4599-8360-f15d423155e0", "PromoCode": "sample string 20", "SpecialOfferID": "5bb796ee-6c5c-423c-a021-0653f8d00157", "SpecialOfferName": "sample string 22", "CheckOutKm": 23, "CheckInKm": 24, "CheckInFuel": 25, "CheckOutFuel": 26, "VehicleID": "af9806b0-9495-42e8-89e6-e6029b627df8", "AllowedKm": 28, "AllowedKmPerRental": 29, "TransactionID": "19878062-188f-4aeb-a7a6-e2b4ff5e4027", "TransactionType": 0, "RentalRate": 31.1, "ModelWiseChargeID": "7dc8e40c-2991-4f5d-a554-32de9c104779", "VehicleVariantID": "0ca3297d-1b9d-4d11-a466-802bd63e7562", "CancelledOn": "2023-12-10T13:43:02.0982203+04:00", "DayUnitID": 35, "PaymentStatus": 0, "UpgradeTariffGroupID": "fe3e90a4-5b1d-4956-8ad8-803a9129162a", "UpgradeModelID": "2adb77a5-4d11-494a-b472-6f798eb99263", "UpgradeType": 0, "ModifiedReservationID": "0597231c-3af6-4827-81d8-012f2708ddb3", "ContactID": "0d35ae67-5aa7-489d-b2bc-62b5736b2402", "IsMonthlyBooking": true, "IPLocation": { "IPAddress": "sample string 2" } }
application/xml, text/xml
Sample:
<RentalIn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity.Rental"> <AdditionalDrivers>15</AdditionalDrivers> <AllowedKm>28</AllowedKm> <AllowedKmPerRental>29</AllowedKmPerRental> <AncillaryIn> <AncillaryIn> <AncillaryID>0b67aeb4-7d9a-4a56-97e6-4c933297ed1e</AncillaryID> <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:guid>44f0a1e6-ceb3-4a1a-b74f-7009de6be993</d4p1:guid> <d4p1:guid>d70e70a7-8ea1-417e-a3f2-e4535a46d117</d4p1:guid> </AncillaryItemIDs> <Qty>2</Qty> </AncillaryIn> <AncillaryIn> <AncillaryID>0b67aeb4-7d9a-4a56-97e6-4c933297ed1e</AncillaryID> <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:guid>44f0a1e6-ceb3-4a1a-b74f-7009de6be993</d4p1:guid> <d4p1:guid>d70e70a7-8ea1-417e-a3f2-e4535a46d117</d4p1:guid> </AncillaryItemIDs> <Qty>2</Qty> </AncillaryIn> </AncillaryIn> <CancelledOn>2023-12-10T13:43:02.0982203+04:00</CancelledOn> <CheckInBranchID>380ce070-5f9c-44d1-af6d-1a5b01686633</CheckInBranchID> <CheckInFuel>25</CheckInFuel> <CheckInKm>24</CheckInKm> <CheckInOn>2023-12-10T13:43:02.0982203+04:00</CheckInOn> <CheckOutBranchID>267d3ead-081f-4209-a522-31b5957a788b</CheckOutBranchID> <CheckOutFuel>26</CheckOutFuel> <CheckOutKm>23</CheckOutKm> <CheckOutOn>2023-12-10T13:43:02.0982203+04:00</CheckOutOn> <ContactID>0d35ae67-5aa7-489d-b2bc-62b5736b2402</ContactID> <DayUnitID>35</DayUnitID> <DebtorID>531d4fe4-ebee-40a2-8f05-72679bdd3ee3</DebtorID> <DeliveryDetails> <Address>sample string 4</Address> <AddressJson>sample string 5</AddressJson> <StateName>sample string 8</StateName> </DeliveryDetails> <IPLocation xmlns:d2p1="http://schemas.datacontract.org/2004/07/Fleetlet.Entity.Booking"> <d2p1:IPAddress>sample string 2</d2p1:IPAddress> </IPLocation> <IsCDWSelected>true</IsCDWSelected> <IsMonthlyBooking>true</IsMonthlyBooking> <IsPAISelected>true</IsPAISelected> <IsSCDWSelected>true</IsSCDWSelected> <ModelWiseChargeID>7dc8e40c-2991-4f5d-a554-32de9c104779</ModelWiseChargeID> <ModelYear>4</ModelYear> <ModifiedReservationID>0597231c-3af6-4827-81d8-012f2708ddb3</ModifiedReservationID> <PaymentStatus>PayAtCounter</PaymentStatus> <PickupDetails> <Address>sample string 4</Address> <AddressJson>sample string 5</AddressJson> <StateName>sample string 8</StateName> </PickupDetails> <PromoCode>sample string 20</PromoCode> <RemovedLedgerID>dd6b7b95-24e7-4599-8360-f15d423155e0</RemovedLedgerID> <RentalDays>1</RentalDays> <RentalDiscountOffered>14.1</RentalDiscountOffered> <RentalRate>31.1</RentalRate> <RentalTariffID>5e7424a0-f6d9-424d-b04d-437b0d338318</RentalTariffID> <RentalTariffName>sample string 7</RentalTariffName> <RentalType>Daily</RentalType> <SpecialOfferID>5bb796ee-6c5c-423c-a021-0653f8d00157</SpecialOfferID> <SpecialOfferName>sample string 22</SpecialOfferName> <SubscriptionKm>5</SubscriptionKm> <SubscriptionMonth>3</SubscriptionMonth> <TransactionID>19878062-188f-4aeb-a7a6-e2b4ff5e4027</TransactionID> <TransactionType>None</TransactionType> <UpgradeModelID>2adb77a5-4d11-494a-b472-6f798eb99263</UpgradeModelID> <UpgradeTariffGroupID>fe3e90a4-5b1d-4956-8ad8-803a9129162a</UpgradeTariffGroupID> <UpgradeType>None</UpgradeType> <VehicleID>af9806b0-9495-42e8-89e6-e6029b627df8</VehicleID> <VehicleModelID>475459bb-ecf0-4dda-afd2-2e5aec1fcd6c</VehicleModelID> <VehicleVariantID>0ca3297d-1b9d-4d11-a466-802bd63e7562</VehicleVariantID> </RentalIn>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of InsuranceName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
ShortName | string |
None. |
|
InsuranceType | InsuranceType |
None. |
|
IsSelected | boolean |
None. |
|
Description | string |
None. |
|
Rate | decimal number |
None. |
|
RateType | RateType |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Name": "sample string 1", "ShortName": "sample string 2", "InsuranceType": 0, "IsSelected": true, "Description": "sample string 4", "Rate": 5.1, "RateType": 0 }, { "Name": "sample string 1", "ShortName": "sample string 2", "InsuranceType": 0, "IsSelected": true, "Description": "sample string 4", "Rate": 5.1, "RateType": 0 } ]
application/xml, text/xml
Sample:
<ArrayOfInsurance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity.Booking"> <Insurance> <Description>sample string 4</Description> <InsuranceType>PAI</InsuranceType> <IsSelected>true</IsSelected> <Name>sample string 1</Name> <Rate>5.1</Rate> <RateType>PerDay</RateType> <ShortName>sample string 2</ShortName> </Insurance> <Insurance> <Description>sample string 4</Description> <InsuranceType>PAI</InsuranceType> <IsSelected>true</IsSelected> <Name>sample string 1</Name> <Rate>5.1</Rate> <RateType>PerDay</RateType> <ShortName>sample string 2</ShortName> </Insurance> </ArrayOfInsurance>