POST api/MonthlySubscriptionAddOn/GetInsurance?apiKey={apiKey}&lng={lng}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

lng

string

Default value is en

Body Parameters

RentalIn
NameDescriptionTypeAdditional 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": "b0839738-af14-40cb-bca6-b827381c5651",
  "SubscriptionMonth": 3,
  "ModelYear": 4,
  "SubscriptionKm": 5,
  "RentalTariffID": "2b54ea29-43fb-45ad-a53f-baa37d12032a",
  "RentalTariffName": "sample string 7",
  "CheckOutOn": "2023-12-08T20:23:09.8301588+04:00",
  "CheckInOn": "2023-12-08T20:23:09.8301588+04:00",
  "CheckOutBranchID": "62254115-93aa-4d08-aafb-9ced077361b0",
  "CheckInBranchID": "fee00724-510f-4a65-9d5a-7c05c3825c43",
  "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": "aa7a78a0-9a32-4002-a0d7-95ec3cc91c89",
  "RentalDiscountOffered": 14.1,
  "AdditionalDrivers": 15,
  "IsPAISelected": true,
  "IsCDWSelected": true,
  "IsSCDWSelected": true,
  "AncillaryIn": [
    {
      "AncillaryID": "4ee08321-90f4-49b1-8165-74df7f0ac129",
      "Qty": 2,
      "AncillaryItemIDs": [
        "38b21dcc-2ae8-40de-9d8b-9e4980c63d65",
        "0ddf3424-8ad6-4f02-a32a-f12e6ad10c35"
      ]
    },
    {
      "AncillaryID": "4ee08321-90f4-49b1-8165-74df7f0ac129",
      "Qty": 2,
      "AncillaryItemIDs": [
        "38b21dcc-2ae8-40de-9d8b-9e4980c63d65",
        "0ddf3424-8ad6-4f02-a32a-f12e6ad10c35"
      ]
    }
  ],
  "RemovedLedgerID": "62f4a9b0-861d-4c98-9be3-a43a5f3561f9",
  "PromoCode": "sample string 20",
  "SpecialOfferID": "722dde31-c696-46e7-bdd7-48623ec34ddd",
  "SpecialOfferName": "sample string 22",
  "CheckOutKm": 23,
  "CheckInKm": 24,
  "CheckInFuel": 25,
  "CheckOutFuel": 26,
  "VehicleID": "98c1bab2-984f-41e4-a5d5-b126bb6b18ab",
  "AllowedKm": 28,
  "AllowedKmPerRental": 29,
  "TransactionID": "fa6320fa-1d74-4f2e-b4de-71cdc5232fd1",
  "TransactionType": 0,
  "RentalRate": 31.1,
  "ModelWiseChargeID": "2331c80b-052e-4f1f-aef2-b6f1f39bbacc",
  "VehicleVariantID": "f1a3852d-a36d-4f68-9525-ec1f70059fa4",
  "CancelledOn": "2023-12-08T20:23:09.8301588+04:00",
  "DayUnitID": 35,
  "PaymentStatus": 0,
  "UpgradeTariffGroupID": "c0920d06-6b17-48ad-ba0c-bc0a768b5356",
  "UpgradeModelID": "a346f6c9-6b15-41d1-8d6e-631a1a74e150",
  "UpgradeType": 0,
  "ModifiedReservationID": "1e6d8038-5f6e-40e3-8a8a-54ea05a3b645",
  "ContactID": "6e955ed7-ea65-4376-ac54-038ed59f0be3",
  "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>4ee08321-90f4-49b1-8165-74df7f0ac129</AncillaryID>
      <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:guid>38b21dcc-2ae8-40de-9d8b-9e4980c63d65</d4p1:guid>
        <d4p1:guid>0ddf3424-8ad6-4f02-a32a-f12e6ad10c35</d4p1:guid>
      </AncillaryItemIDs>
      <Qty>2</Qty>
    </AncillaryIn>
    <AncillaryIn>
      <AncillaryID>4ee08321-90f4-49b1-8165-74df7f0ac129</AncillaryID>
      <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:guid>38b21dcc-2ae8-40de-9d8b-9e4980c63d65</d4p1:guid>
        <d4p1:guid>0ddf3424-8ad6-4f02-a32a-f12e6ad10c35</d4p1:guid>
      </AncillaryItemIDs>
      <Qty>2</Qty>
    </AncillaryIn>
  </AncillaryIn>
  <CancelledOn>2023-12-08T20:23:09.8301588+04:00</CancelledOn>
  <CheckInBranchID>fee00724-510f-4a65-9d5a-7c05c3825c43</CheckInBranchID>
  <CheckInFuel>25</CheckInFuel>
  <CheckInKm>24</CheckInKm>
  <CheckInOn>2023-12-08T20:23:09.8301588+04:00</CheckInOn>
  <CheckOutBranchID>62254115-93aa-4d08-aafb-9ced077361b0</CheckOutBranchID>
  <CheckOutFuel>26</CheckOutFuel>
  <CheckOutKm>23</CheckOutKm>
  <CheckOutOn>2023-12-08T20:23:09.8301588+04:00</CheckOutOn>
  <ContactID>6e955ed7-ea65-4376-ac54-038ed59f0be3</ContactID>
  <DayUnitID>35</DayUnitID>
  <DebtorID>aa7a78a0-9a32-4002-a0d7-95ec3cc91c89</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>2331c80b-052e-4f1f-aef2-b6f1f39bbacc</ModelWiseChargeID>
  <ModelYear>4</ModelYear>
  <ModifiedReservationID>1e6d8038-5f6e-40e3-8a8a-54ea05a3b645</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>62f4a9b0-861d-4c98-9be3-a43a5f3561f9</RemovedLedgerID>
  <RentalDays>1</RentalDays>
  <RentalDiscountOffered>14.1</RentalDiscountOffered>
  <RentalRate>31.1</RentalRate>
  <RentalTariffID>2b54ea29-43fb-45ad-a53f-baa37d12032a</RentalTariffID>
  <RentalTariffName>sample string 7</RentalTariffName>
  <RentalType>Daily</RentalType>
  <SpecialOfferID>722dde31-c696-46e7-bdd7-48623ec34ddd</SpecialOfferID>
  <SpecialOfferName>sample string 22</SpecialOfferName>
  <SubscriptionKm>5</SubscriptionKm>
  <SubscriptionMonth>3</SubscriptionMonth>
  <TransactionID>fa6320fa-1d74-4f2e-b4de-71cdc5232fd1</TransactionID>
  <TransactionType>None</TransactionType>
  <UpgradeModelID>a346f6c9-6b15-41d1-8d6e-631a1a74e150</UpgradeModelID>
  <UpgradeTariffGroupID>c0920d06-6b17-48ad-ba0c-bc0a768b5356</UpgradeTariffGroupID>
  <UpgradeType>None</UpgradeType>
  <VehicleID>98c1bab2-984f-41e4-a5d5-b126bb6b18ab</VehicleID>
  <VehicleModelID>b0839738-af14-40cb-bca6-b827381c5651</VehicleModelID>
  <VehicleVariantID>f1a3852d-a36d-4f68-9525-ec1f70059fa4</VehicleVariantID>
</RentalIn>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of Insurance
NameDescriptionTypeAdditional 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>