POST api/MonthlySubscription/GetCalculation?apiKey={apiKey}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
apiKey | string |
Required |
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": "94492265-d80f-43cf-a9e3-8d99d078834c", "SubscriptionMonth": 3, "ModelYear": 4, "SubscriptionKm": 5, "RentalTariffID": "36d84c28-45a2-4652-8f3f-e9e43e4afb85", "RentalTariffName": "sample string 7", "CheckOutOn": "2023-12-08T19:54:51.3385473+04:00", "CheckInOn": "2023-12-08T19:54:51.3385473+04:00", "CheckOutBranchID": "dc64490a-b8af-4259-9b15-9c3bcfeadae4", "CheckInBranchID": "805bd7a1-bd6c-49b1-99e1-afa6f379d8f0", "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": "45dd2bf2-6ef8-4a14-9d05-b529d3677c55", "RentalDiscountOffered": 14.1, "AdditionalDrivers": 15, "IsPAISelected": true, "IsCDWSelected": true, "IsSCDWSelected": true, "AncillaryIn": [ { "AncillaryID": "231e935a-0879-49cb-85b7-d8565108cd82", "Qty": 2, "AncillaryItemIDs": [ "4cf4dccf-748c-403b-bc2b-7e8c2865c5ae", "578dede9-f494-4aa3-91f7-d8ec8d374f26" ] }, { "AncillaryID": "231e935a-0879-49cb-85b7-d8565108cd82", "Qty": 2, "AncillaryItemIDs": [ "4cf4dccf-748c-403b-bc2b-7e8c2865c5ae", "578dede9-f494-4aa3-91f7-d8ec8d374f26" ] } ], "RemovedLedgerID": "026045c8-4d24-486c-9047-15f4011820e5", "PromoCode": "sample string 20", "SpecialOfferID": "ee7fa0e8-af31-452c-932e-403a637f1e2b", "SpecialOfferName": "sample string 22", "CheckOutKm": 23, "CheckInKm": 24, "CheckInFuel": 25, "CheckOutFuel": 26, "VehicleID": "a749a0d3-d9b7-4df0-ae24-7076b9d5b2e5", "AllowedKm": 28, "AllowedKmPerRental": 29, "TransactionID": "6d674898-4195-4e5b-8183-4db1bd742196", "TransactionType": 0, "RentalRate": 31.1, "ModelWiseChargeID": "7a2a7bd3-0dc5-4b74-ae50-683f8566e7fb", "VehicleVariantID": "6700d23c-f603-4e26-961a-4b4e91f35303", "CancelledOn": "2023-12-08T19:54:51.3385473+04:00", "DayUnitID": 35, "PaymentStatus": 0, "UpgradeTariffGroupID": "474dde59-e143-45c1-8b88-713bcd1f061a", "UpgradeModelID": "5af2a880-f942-40ab-bf21-d99dff7db395", "UpgradeType": 0, "ModifiedReservationID": "9d7c5fb6-1b1c-497a-be66-9de35a7557a3", "ContactID": "fde3d3fa-de60-448a-a3c2-50ac6162716a", "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>231e935a-0879-49cb-85b7-d8565108cd82</AncillaryID> <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:guid>4cf4dccf-748c-403b-bc2b-7e8c2865c5ae</d4p1:guid> <d4p1:guid>578dede9-f494-4aa3-91f7-d8ec8d374f26</d4p1:guid> </AncillaryItemIDs> <Qty>2</Qty> </AncillaryIn> <AncillaryIn> <AncillaryID>231e935a-0879-49cb-85b7-d8565108cd82</AncillaryID> <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:guid>4cf4dccf-748c-403b-bc2b-7e8c2865c5ae</d4p1:guid> <d4p1:guid>578dede9-f494-4aa3-91f7-d8ec8d374f26</d4p1:guid> </AncillaryItemIDs> <Qty>2</Qty> </AncillaryIn> </AncillaryIn> <CancelledOn>2023-12-08T19:54:51.3385473+04:00</CancelledOn> <CheckInBranchID>805bd7a1-bd6c-49b1-99e1-afa6f379d8f0</CheckInBranchID> <CheckInFuel>25</CheckInFuel> <CheckInKm>24</CheckInKm> <CheckInOn>2023-12-08T19:54:51.3385473+04:00</CheckInOn> <CheckOutBranchID>dc64490a-b8af-4259-9b15-9c3bcfeadae4</CheckOutBranchID> <CheckOutFuel>26</CheckOutFuel> <CheckOutKm>23</CheckOutKm> <CheckOutOn>2023-12-08T19:54:51.3385473+04:00</CheckOutOn> <ContactID>fde3d3fa-de60-448a-a3c2-50ac6162716a</ContactID> <DayUnitID>35</DayUnitID> <DebtorID>45dd2bf2-6ef8-4a14-9d05-b529d3677c55</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>7a2a7bd3-0dc5-4b74-ae50-683f8566e7fb</ModelWiseChargeID> <ModelYear>4</ModelYear> <ModifiedReservationID>9d7c5fb6-1b1c-497a-be66-9de35a7557a3</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>026045c8-4d24-486c-9047-15f4011820e5</RemovedLedgerID> <RentalDays>1</RentalDays> <RentalDiscountOffered>14.1</RentalDiscountOffered> <RentalRate>31.1</RentalRate> <RentalTariffID>36d84c28-45a2-4652-8f3f-e9e43e4afb85</RentalTariffID> <RentalTariffName>sample string 7</RentalTariffName> <RentalType>Daily</RentalType> <SpecialOfferID>ee7fa0e8-af31-452c-932e-403a637f1e2b</SpecialOfferID> <SpecialOfferName>sample string 22</SpecialOfferName> <SubscriptionKm>5</SubscriptionKm> <SubscriptionMonth>3</SubscriptionMonth> <TransactionID>6d674898-4195-4e5b-8183-4db1bd742196</TransactionID> <TransactionType>None</TransactionType> <UpgradeModelID>5af2a880-f942-40ab-bf21-d99dff7db395</UpgradeModelID> <UpgradeTariffGroupID>474dde59-e143-45c1-8b88-713bcd1f061a</UpgradeTariffGroupID> <UpgradeType>None</UpgradeType> <VehicleID>a749a0d3-d9b7-4df0-ae24-7076b9d5b2e5</VehicleID> <VehicleModelID>94492265-d80f-43cf-a9e3-8d99d078834c</VehicleModelID> <VehicleVariantID>6700d23c-f603-4e26-961a-4b4e91f35303</VehicleVariantID> </RentalIn>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
RateDetailWithSubtotalName | Description | Type | Additional information |
---|---|---|---|
RentalRateDetail | Collection of RateDetail |
None. |
|
RentalTotal | decimal number |
None. |
|
InsuranceTotal | decimal number |
None. |
|
AncillaryTotal | decimal number |
None. |
|
SubTotal | decimal number |
None. |
|
TotalTax | decimal number |
None. |
|
TotalAmount | decimal number |
None. |
|
PayNowDiscAmount | decimal number |
None. |
|
ModificationCharge | ModificationCharge |
None. |
|
CancellationCharge | CancellationCharge |
None. |
|
IsDocumentUploadMandatory | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "RentalRateDetail": [ { "RentalRateDetailID": "d2fa6d3e-e940-4072-99cb-a11f9f097bcd", "ItemID": "a63e9b44-36eb-4846-b469-2bc0d8a4fc65", "Item": "sample string 3", "Description": "sample string 4", "Days": 5, "Qty": 6, "Rate": 7.1, "DiscRate": 8.1, "TaxAmt": 9.1, "FreeDays": 10, "SequenceNo": 11, "RateChargeType": 0, "RateOffered": 12.1, "OnlinePayDiscPer": 13.1, "DiscTotal": -30.0, "SubTotal": 243.0, "TotalWithOutDisc": 222.1, "TotalAmt": 252.1, "CanBeDeleted": true }, { "RentalRateDetailID": "d2fa6d3e-e940-4072-99cb-a11f9f097bcd", "ItemID": "a63e9b44-36eb-4846-b469-2bc0d8a4fc65", "Item": "sample string 3", "Description": "sample string 4", "Days": 5, "Qty": 6, "Rate": 7.1, "DiscRate": 8.1, "TaxAmt": 9.1, "FreeDays": 10, "SequenceNo": 11, "RateChargeType": 0, "RateOffered": 12.1, "OnlinePayDiscPer": 13.1, "DiscTotal": -30.0, "SubTotal": 243.0, "TotalWithOutDisc": 222.1, "TotalAmt": 252.1, "CanBeDeleted": true } ], "RentalTotal": 1.1, "InsuranceTotal": 2.1, "AncillaryTotal": 3.1, "SubTotal": 4.1, "TotalTax": 5.1, "TotalAmount": 6.1, "PayNowDiscAmount": 7.1, "ModificationCharge": { "AmountPaid": 1.1, "AmountToRefund": 2.1, "AmountToPay": 3.1 }, "CancellationCharge": { "AmountCancellationCharge": 1.1, "AmountToRefund": 2.1, "AmountToPay": 3.1, "AmountPaid": 4.1 }, "IsDocumentUploadMandatory": true }
application/xml, text/xml
Sample:
<RateDetailWithSubtotal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity.Rental"> <AncillaryTotal>3.1</AncillaryTotal> <CancellationCharge> <AmountCancellationCharge>1.1</AmountCancellationCharge> <AmountPaid>4.1</AmountPaid> <AmountToPay>3.1</AmountToPay> <AmountToRefund>2.1</AmountToRefund> </CancellationCharge> <InsuranceTotal>2.1</InsuranceTotal> <IsDocumentUploadMandatory>true</IsDocumentUploadMandatory> <ModificationCharge> <AmountPaid>1.1</AmountPaid> <AmountToPay>3.1</AmountToPay> <AmountToRefund>2.1</AmountToRefund> </ModificationCharge> <PayNowDiscAmount>7.1</PayNowDiscAmount> <RentalRateDetail> <RateDetail> <CanBeDeleted>true</CanBeDeleted> <Days>5</Days> <Description>sample string 4</Description> <DiscRate>8.1</DiscRate> <FreeDays>10</FreeDays> <Item>sample string 3</Item> <ItemID>a63e9b44-36eb-4846-b469-2bc0d8a4fc65</ItemID> <OnlinePayDiscPer>13.1</OnlinePayDiscPer> <Qty>6</Qty> <Rate>7.1</Rate> <RateChargeType>BookingCharge</RateChargeType> <RateOffered>12.1</RateOffered> <RentalRateDetailID>d2fa6d3e-e940-4072-99cb-a11f9f097bcd</RentalRateDetailID> <SequenceNo>11</SequenceNo> <TaxAmt>9.1</TaxAmt> </RateDetail> <RateDetail> <CanBeDeleted>true</CanBeDeleted> <Days>5</Days> <Description>sample string 4</Description> <DiscRate>8.1</DiscRate> <FreeDays>10</FreeDays> <Item>sample string 3</Item> <ItemID>a63e9b44-36eb-4846-b469-2bc0d8a4fc65</ItemID> <OnlinePayDiscPer>13.1</OnlinePayDiscPer> <Qty>6</Qty> <Rate>7.1</Rate> <RateChargeType>BookingCharge</RateChargeType> <RateOffered>12.1</RateOffered> <RentalRateDetailID>d2fa6d3e-e940-4072-99cb-a11f9f097bcd</RentalRateDetailID> <SequenceNo>11</SequenceNo> <TaxAmt>9.1</TaxAmt> </RateDetail> </RentalRateDetail> <RentalTotal>1.1</RentalTotal> <SubTotal>4.1</SubTotal> <TotalAmount>6.1</TotalAmount> <TotalTax>5.1</TotalTax> </RateDetailWithSubtotal>