POST api/ReservationValidation/ValidateSubscription?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": "709035ab-17b7-408d-8c27-4e52ef22e409", "SubscriptionMonth": 3, "ModelYear": 4, "SubscriptionKm": 5, "RentalTariffID": "f976dfe7-50b2-4056-af7a-480b8d7ff91b", "RentalTariffName": "sample string 7", "CheckOutOn": "2023-12-08T20:21:43.9333587+04:00", "CheckInOn": "2023-12-08T20:21:43.9333587+04:00", "CheckOutBranchID": "dad3dacf-0421-4c39-b090-cd97dbb7621c", "CheckInBranchID": "dd360e08-5de9-4b0f-8d81-b25f1cb551b3", "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": "aa32df40-8a8f-4045-8a7b-c47ba37fcae1", "RentalDiscountOffered": 14.1, "AdditionalDrivers": 15, "IsPAISelected": true, "IsCDWSelected": true, "IsSCDWSelected": true, "AncillaryIn": [ { "AncillaryID": "e36dcfb4-d8a9-45cd-bb4b-a5f479ec320b", "Qty": 2, "AncillaryItemIDs": [ "e48f3fc2-4220-4b83-b95d-354a52910322", "88ef179b-fd97-4df1-b9d7-075415a6e560" ] }, { "AncillaryID": "e36dcfb4-d8a9-45cd-bb4b-a5f479ec320b", "Qty": 2, "AncillaryItemIDs": [ "e48f3fc2-4220-4b83-b95d-354a52910322", "88ef179b-fd97-4df1-b9d7-075415a6e560" ] } ], "RemovedLedgerID": "9e18eb21-49dc-4887-ada9-91f4266f6c05", "PromoCode": "sample string 20", "SpecialOfferID": "3066d549-6d86-40e0-aefb-7c2170ce8e40", "SpecialOfferName": "sample string 22", "CheckOutKm": 23, "CheckInKm": 24, "CheckInFuel": 25, "CheckOutFuel": 26, "VehicleID": "b1d49ed6-60f1-4b31-b260-11500d1160a5", "AllowedKm": 28, "AllowedKmPerRental": 29, "TransactionID": "7bdbd079-7471-40cb-b954-3d2484babb6d", "TransactionType": 0, "RentalRate": 31.1, "ModelWiseChargeID": "39747d45-08e5-4127-80db-f399446e1dc7", "VehicleVariantID": "6d10ba3b-ff95-47bf-8111-ca9e2fe3a830", "CancelledOn": "2023-12-08T20:21:43.9333587+04:00", "DayUnitID": 35, "PaymentStatus": 0, "UpgradeTariffGroupID": "23202173-19ee-4856-aa1c-a1f5be240471", "UpgradeModelID": "8c1ba091-b277-4acc-b2e9-91abe52663b2", "UpgradeType": 0, "ModifiedReservationID": "0bc4c736-7f28-4e7d-90a6-22894b9b2ee7", "ContactID": "efb307f0-6707-4df5-ae3f-0ef675d4cf9f", "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>e36dcfb4-d8a9-45cd-bb4b-a5f479ec320b</AncillaryID> <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:guid>e48f3fc2-4220-4b83-b95d-354a52910322</d4p1:guid> <d4p1:guid>88ef179b-fd97-4df1-b9d7-075415a6e560</d4p1:guid> </AncillaryItemIDs> <Qty>2</Qty> </AncillaryIn> <AncillaryIn> <AncillaryID>e36dcfb4-d8a9-45cd-bb4b-a5f479ec320b</AncillaryID> <AncillaryItemIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:guid>e48f3fc2-4220-4b83-b95d-354a52910322</d4p1:guid> <d4p1:guid>88ef179b-fd97-4df1-b9d7-075415a6e560</d4p1:guid> </AncillaryItemIDs> <Qty>2</Qty> </AncillaryIn> </AncillaryIn> <CancelledOn>2023-12-08T20:21:43.9333587+04:00</CancelledOn> <CheckInBranchID>dd360e08-5de9-4b0f-8d81-b25f1cb551b3</CheckInBranchID> <CheckInFuel>25</CheckInFuel> <CheckInKm>24</CheckInKm> <CheckInOn>2023-12-08T20:21:43.9333587+04:00</CheckInOn> <CheckOutBranchID>dad3dacf-0421-4c39-b090-cd97dbb7621c</CheckOutBranchID> <CheckOutFuel>26</CheckOutFuel> <CheckOutKm>23</CheckOutKm> <CheckOutOn>2023-12-08T20:21:43.9333587+04:00</CheckOutOn> <ContactID>efb307f0-6707-4df5-ae3f-0ef675d4cf9f</ContactID> <DayUnitID>35</DayUnitID> <DebtorID>aa32df40-8a8f-4045-8a7b-c47ba37fcae1</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>39747d45-08e5-4127-80db-f399446e1dc7</ModelWiseChargeID> <ModelYear>4</ModelYear> <ModifiedReservationID>0bc4c736-7f28-4e7d-90a6-22894b9b2ee7</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>9e18eb21-49dc-4887-ada9-91f4266f6c05</RemovedLedgerID> <RentalDays>1</RentalDays> <RentalDiscountOffered>14.1</RentalDiscountOffered> <RentalRate>31.1</RentalRate> <RentalTariffID>f976dfe7-50b2-4056-af7a-480b8d7ff91b</RentalTariffID> <RentalTariffName>sample string 7</RentalTariffName> <RentalType>Daily</RentalType> <SpecialOfferID>3066d549-6d86-40e0-aefb-7c2170ce8e40</SpecialOfferID> <SpecialOfferName>sample string 22</SpecialOfferName> <SubscriptionKm>5</SubscriptionKm> <SubscriptionMonth>3</SubscriptionMonth> <TransactionID>7bdbd079-7471-40cb-b954-3d2484babb6d</TransactionID> <TransactionType>None</TransactionType> <UpgradeModelID>8c1ba091-b277-4acc-b2e9-91abe52663b2</UpgradeModelID> <UpgradeTariffGroupID>23202173-19ee-4856-aa1c-a1f5be240471</UpgradeTariffGroupID> <UpgradeType>None</UpgradeType> <VehicleID>b1d49ed6-60f1-4b31-b260-11500d1160a5</VehicleID> <VehicleModelID>709035ab-17b7-408d-8c27-4e52ef22e409</VehicleModelID> <VehicleVariantID>6d10ba3b-ff95-47bf-8111-ca9e2fe3a830</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": "87e0d4bd-d975-4e1a-ad04-7de84ce45c72", "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>87e0d4bd-d975-4e1a-ad04-7de84ce45c72</ID> <IsValid>true</IsValid> <Message>sample string 2</Message> </Result>