POST api/ReservationValidation/Validate?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": "632e0297-166f-4794-99e0-de05eccadc8d", "SubscriptionMonth": 3, "ModelYear": 4, "SubscriptionKm": 5, "RentalTariffID": "114864ee-5292-48c1-b7b9-536fe54cdf6a", "RentalTariffName": "sample string 7", "CheckOutOn": "2023-12-10T15:32:17.9613082+04:00", "CheckInOn": "2023-12-10T15:32:17.9613082+04:00", "CheckOutBranchID": "d0119b19-89ee-413c-927d-62cede5e01f1", "CheckInBranchID": "0fab4bd2-669c-45e1-8b08-bd0c8273cbf3", "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": "4f6bbf31-35e3-4a1a-836e-3a7e1c55418d", "RentalDiscountOffered": 14.1, "AdditionalDrivers": 15, "IsPAISelected": true, "IsCDWSelected": true, "IsSCDWSelected": true, "AncillaryIn": [ { "AncillaryID": "d91ba376-6ef0-4a88-996a-c4a6d8260765", "Qty": 2, "AncillaryItemIDs": [ "d55d89a2-2ff9-442c-9542-966f61fd9410", "58dc8439-172f-4d0a-85f5-397a96a76155" ] }, { "AncillaryID": "d91ba376-6ef0-4a88-996a-c4a6d8260765", "Qty": 2, "AncillaryItemIDs": [ "d55d89a2-2ff9-442c-9542-966f61fd9410", "58dc8439-172f-4d0a-85f5-397a96a76155" ] } ], "RemovedLedgerID": "10b63cf1-b8d2-4dce-a6ee-d6de407d2a05", "PromoCode": "sample string 20", "SpecialOfferID": "91ab3c10-6e91-4100-984b-1aecbedb3788", "SpecialOfferName": "sample string 22", "CheckOutKm": 23, "CheckInKm": 24, "CheckInFuel": 25, "CheckOutFuel": 26, "VehicleID": "3fe6869e-f21b-417a-becc-eca075e30606", "AllowedKm": 28, "AllowedKmPerRental": 29, "TransactionID": "81562662-f9cd-45de-bd39-23cdb8dc1226", "TransactionType": 0, "RentalRate": 31.1, "ModelWiseChargeID": "9d058143-40b0-4ea3-b8c9-0ede551aece3", "VehicleVariantID": "93c55499-0f6c-4345-9ce9-55f8086a13b6", "CancelledOn": "2023-12-10T15:32:17.9613082+04:00", "DayUnitID": 35, "PaymentStatus": 0, "UpgradeTariffGroupID": "87f524c2-c89c-46a9-8ff3-e8fa1669c629", "UpgradeModelID": "5a1cb5bd-fd37-47ac-a4b1-60215172bc3a", "UpgradeType": 0, "ModifiedReservationID": "0c7e2bd4-64d0-4bd4-a39a-d85289fd3cb7", "ContactID": "e07feb8f-d8b4-4d51-b6d6-d5236dd05999", "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>d91ba376-6ef0-4a88-996a-c4a6d8260765</AncillaryID> <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:guid>d55d89a2-2ff9-442c-9542-966f61fd9410</d4p1:guid> <d4p1:guid>58dc8439-172f-4d0a-85f5-397a96a76155</d4p1:guid> </AncillaryItemIDs> <Qty>2</Qty> </AncillaryIn> <AncillaryIn> <AncillaryID>d91ba376-6ef0-4a88-996a-c4a6d8260765</AncillaryID> <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:guid>d55d89a2-2ff9-442c-9542-966f61fd9410</d4p1:guid> <d4p1:guid>58dc8439-172f-4d0a-85f5-397a96a76155</d4p1:guid> </AncillaryItemIDs> <Qty>2</Qty> </AncillaryIn> </AncillaryIn> <CancelledOn>2023-12-10T15:32:17.9613082+04:00</CancelledOn> <CheckInBranchID>0fab4bd2-669c-45e1-8b08-bd0c8273cbf3</CheckInBranchID> <CheckInFuel>25</CheckInFuel> <CheckInKm>24</CheckInKm> <CheckInOn>2023-12-10T15:32:17.9613082+04:00</CheckInOn> <CheckOutBranchID>d0119b19-89ee-413c-927d-62cede5e01f1</CheckOutBranchID> <CheckOutFuel>26</CheckOutFuel> <CheckOutKm>23</CheckOutKm> <CheckOutOn>2023-12-10T15:32:17.9613082+04:00</CheckOutOn> <ContactID>e07feb8f-d8b4-4d51-b6d6-d5236dd05999</ContactID> <DayUnitID>35</DayUnitID> <DebtorID>4f6bbf31-35e3-4a1a-836e-3a7e1c55418d</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>9d058143-40b0-4ea3-b8c9-0ede551aece3</ModelWiseChargeID> <ModelYear>4</ModelYear> <ModifiedReservationID>0c7e2bd4-64d0-4bd4-a39a-d85289fd3cb7</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>10b63cf1-b8d2-4dce-a6ee-d6de407d2a05</RemovedLedgerID> <RentalDays>1</RentalDays> <RentalDiscountOffered>14.1</RentalDiscountOffered> <RentalRate>31.1</RentalRate> <RentalTariffID>114864ee-5292-48c1-b7b9-536fe54cdf6a</RentalTariffID> <RentalTariffName>sample string 7</RentalTariffName> <RentalType>Daily</RentalType> <SpecialOfferID>91ab3c10-6e91-4100-984b-1aecbedb3788</SpecialOfferID> <SpecialOfferName>sample string 22</SpecialOfferName> <SubscriptionKm>5</SubscriptionKm> <SubscriptionMonth>3</SubscriptionMonth> <TransactionID>81562662-f9cd-45de-bd39-23cdb8dc1226</TransactionID> <TransactionType>None</TransactionType> <UpgradeModelID>5a1cb5bd-fd37-47ac-a4b1-60215172bc3a</UpgradeModelID> <UpgradeTariffGroupID>87f524c2-c89c-46a9-8ff3-e8fa1669c629</UpgradeTariffGroupID> <UpgradeType>None</UpgradeType> <VehicleID>3fe6869e-f21b-417a-becc-eca075e30606</VehicleID> <VehicleModelID>632e0297-166f-4794-99e0-de05eccadc8d</VehicleModelID> <VehicleVariantID>93c55499-0f6c-4345-9ce9-55f8086a13b6</VehicleVariantID> </RentalIn>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultName | Description | Type | Additional information |
---|---|---|---|
IsValid | boolean |
None. |
|
Message | string |
None. |
|
Code | string |
None. |
|
ID | globally unique identifier |
None. |
|
Errors | Collection of string |
None. |
|
ErrorCodes | Collection of ErrorCode |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsValid": true, "Message": "sample string 2", "Code": "sample string 3", "ID": "72ec60ab-e4bb-48df-b131-fac3d12bb6a1", "Errors": [ "sample string 1", "sample string 2" ], "ErrorCodes": [ 1, 1 ] }
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity"> <Code>sample string 3</Code> <ErrorCodes> <ErrorCode>Success</ErrorCode> <ErrorCode>Success</ErrorCode> </ErrorCodes> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> <ID>72ec60ab-e4bb-48df-b131-fac3d12bb6a1</ID> <IsValid>true</IsValid> <Message>sample string 2</Message> </Result>