POST api/Reservations?apiKey={apiKey}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
apiKey | string |
Required |
Body Parameters
RentalReservationName | Description | Type | Additional information |
---|---|---|---|
Identity | Identity |
None. |
|
ContactInfo | ContactInfo |
None. |
|
RentalIn | RentalIn |
None. |
|
RentalRateDetail | Collection of RateDetail |
None. |
|
ModifyRateDetail | Collection of RateDetail |
None. |
|
UpgradeText | string |
None. |
|
InsuranceText | string |
None. |
|
ReservationStatus | ReservationStatus |
None. |
|
Remark | string |
None. |
|
Renter | Renter |
None. |
|
TotalAmount | decimal number |
None. |
|
TotalTax | decimal number |
None. |
|
SubTotal | decimal number |
None. |
|
RentalType | RentalType |
None. |
|
CustomerFeedback | Feedback |
None. |
|
AirlinesName | string |
None. |
|
PaynowDiscount | decimal number |
None. |
|
OnlinePaymentDetail | OnlinePaymentDetail |
None. |
|
BookingSource | BookingSource |
None. |
|
BookingIncluded | Collection of BookingIncluded |
None. |
|
ModificationCharge | ModificationCharge |
None. |
|
CancellationCharge | CancellationCharge |
None. |
|
IsAllowCancellation | boolean |
None. |
|
IsAllowModification | boolean |
None. |
|
IPLocation | IPLocation |
None. |
Request Formats
application/json, text/json
Sample:
{ "Identity": { "Id": "42148328-4b6f-4af9-aca7-19c027667c6d", "Code": "sample string 2" }, "ContactInfo": { "CustomerType": 0, "TitleType": 0, "Name": "sample string 1", "Address": "sample string 2", "Email": "sample string 3", "ContactNo": "sample string 4", "CountryState": { "StateCode": "sample string 2", "StateName": "sample string 3", "CountryCode": "sample string 4", "CountryName": "sample string 5", "NationalityCode": "sample string 6", "NationalityName": "sample string 7" }, "Id": "72aa2185-5253-4de9-ad18-f00b3ba50286", "Code": "sample string 9" }, "RentalIn": { "RentalDays": 1, "RentalType": 0, "VehicleModelID": "0434eb37-1662-4b72-aaa2-c97bbba3ca56", "SubscriptionMonth": 3, "ModelYear": 4, "SubscriptionKm": 5, "RentalTariffID": "0db14e25-6997-4f0d-83a9-435965301fe1", "RentalTariffName": "sample string 7", "CheckOutOn": "2023-12-08T20:05:49.4713863+04:00", "CheckInOn": "2023-12-08T20:05:49.4713863+04:00", "CheckOutBranchID": "fa7b6d18-0839-464f-b500-efa4faadf61f", "CheckInBranchID": "14d24c35-3781-43ad-90f7-8c6ae16487ed", "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": "b069fe79-190f-453c-a201-884193d5ef0f", "RentalDiscountOffered": 14.1, "AdditionalDrivers": 15, "IsPAISelected": true, "IsCDWSelected": true, "IsSCDWSelected": true, "AncillaryIn": [ { "AncillaryID": "a2fe58a7-2786-4957-85be-409505236a5f", "Qty": 2, "AncillaryItemIDs": [ "696454f9-6354-4f87-b1ef-af9a57ff1fe7", "046231b1-baca-423c-b893-5e68bc1e6977" ] }, { "AncillaryID": "a2fe58a7-2786-4957-85be-409505236a5f", "Qty": 2, "AncillaryItemIDs": [ "696454f9-6354-4f87-b1ef-af9a57ff1fe7", "046231b1-baca-423c-b893-5e68bc1e6977" ] } ], "RemovedLedgerID": "9f59c730-7323-478a-a566-45ca8109e796", "PromoCode": "sample string 20", "SpecialOfferID": "efce1897-817d-4c3d-bad6-8ae10bdb4fa0", "SpecialOfferName": "sample string 22", "CheckOutKm": 23, "CheckInKm": 24, "CheckInFuel": 25, "CheckOutFuel": 26, "VehicleID": "6769ef25-efb9-49d0-9719-9e6110d340b8", "AllowedKm": 28, "AllowedKmPerRental": 29, "TransactionID": "c261e1d0-5961-4b2e-81da-f066c7e9443f", "TransactionType": 0, "RentalRate": 31.1, "ModelWiseChargeID": "f26bb5fe-cd00-4f01-a050-bbb34eb34a1c", "VehicleVariantID": "d253a2b1-bc69-408a-8aa2-b07485f8fe37", "CancelledOn": "2023-12-08T20:05:49.4713863+04:00", "DayUnitID": 35, "PaymentStatus": 0, "UpgradeTariffGroupID": "9fef1b86-a847-4f2f-8ee2-f892c974ac76", "UpgradeModelID": "b0672b1d-0863-44f4-bd09-dce017f85865", "UpgradeType": 0, "ModifiedReservationID": "943b3337-770c-454c-8d1d-445495a668a7", "ContactID": "3873c717-4fad-4045-8f6f-47174d4adde7", "IsMonthlyBooking": true, "IPLocation": { "IPAddress": "sample string 2" } }, "RentalRateDetail": [ { "RentalRateDetailID": "d0aa58b3-a8b1-44b2-bd51-c26c1db51f99", "ItemID": "30191c66-abb1-450c-9c03-85922f324f17", "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": "d0aa58b3-a8b1-44b2-bd51-c26c1db51f99", "ItemID": "30191c66-abb1-450c-9c03-85922f324f17", "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 } ], "ModifyRateDetail": [ { "RentalRateDetailID": "d0aa58b3-a8b1-44b2-bd51-c26c1db51f99", "ItemID": "30191c66-abb1-450c-9c03-85922f324f17", "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": "d0aa58b3-a8b1-44b2-bd51-c26c1db51f99", "ItemID": "30191c66-abb1-450c-9c03-85922f324f17", "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 } ], "UpgradeText": "sample string 4", "InsuranceText": "sample string 5", "ReservationStatus": 0, "Remark": "sample string 6", "Renter": { "Identity": { "Id": "42148328-4b6f-4af9-aca7-19c027667c6d", "Code": "sample string 2" }, "TitleType": 0, "FirstName": "sample string 2", "LastName": "sample string 3", "ContactNo": "sample string 4", "EmailId": "sample string 5", "BirthDate": "2023-12-08T20:05:49.4713863+04:00", "Address": "sample string 7", "CountryState": { "StateCode": "sample string 2", "StateName": "sample string 3", "CountryCode": "sample string 4", "CountryName": "sample string 5", "NationalityCode": "sample string 6", "NationalityName": "sample string 7" }, "DrivingLicense": { "LicenseNo": "sample string 1", "IssuedBy": "sample string 2", "IssuedOn": "2023-12-08T20:05:49.4713863+04:00", "ExpiresOn": "2023-12-08T20:05:49.4713863+04:00" }, "Passport": { "PassportNo": "sample string 1", "IssuedOn": "2023-12-08T20:05:49.4713863+04:00", "ExpiresOn": "2023-12-08T20:05:49.4713863+04:00", "IssuedCountryCode": "sample string 5", "IssuedCountryName": "sample string 6" }, "Balance": 9.0, "CreditCardDetail": [ { "CreditCardType": "sample string 3", "CreditCardNo": "sample string 4", "ExpiryOn": "2023-12-08T20:05:49.4713863+04:00", "IssuedByBank": "sample string 7" }, { "CreditCardType": "sample string 3", "CreditCardNo": "sample string 4", "ExpiryOn": "2023-12-08T20:05:49.4713863+04:00", "IssuedByBank": "sample string 7" } ], "AdditionalDocument": { "DocumentNo": "sample string 1", "IssuedBy": "sample string 2", "IssuedOn": "2023-12-08T20:05:49.4713863+04:00", "ExpiresOn": "2023-12-08T20:05:49.4713863+04:00" } }, "TotalAmount": 9.1, "TotalTax": 10.1, "SubTotal": -1.0, "RentalType": 0, "CustomerFeedback": { "TransactionID": "1a9c28c1-c2d2-4138-8a4b-cb4234677e4f", "TransactionType": 0, "TransactionNo": "sample string 3", "Rating": 6, "Remark": "sample string 7", "FeatureType": [ 1, 2 ] }, "AirlinesName": "sample string 13", "PaynowDiscount": 15.1, "OnlinePaymentDetail": { "OrderRefNo": "sample string 3", "OnlinePayRefNo": "sample string 5", "OnlinePayStatus": 0, "PaymentMessage": "sample string 7" }, "BookingSource": 0, "BookingIncluded": [ { "BookingIncludedID": "0b496324-f5c9-44f9-9c54-b382dcb3cdb9", "BookingIncludedType": 0, "ShortText": "sample string 2", "LongText": "sample string 3", "TempCRUD": { "TempId": 1, "IsNew": true, "IsDeleted": true, "IsUpdated": true, "IsActive": true } }, { "BookingIncludedID": "0b496324-f5c9-44f9-9c54-b382dcb3cdb9", "BookingIncludedType": 0, "ShortText": "sample string 2", "LongText": "sample string 3", "TempCRUD": { "TempId": 1, "IsNew": true, "IsDeleted": true, "IsUpdated": true, "IsActive": true } } ], "ModificationCharge": { "AmountPaid": 1.1, "AmountToRefund": 2.1, "AmountToPay": 3.1 }, "CancellationCharge": { "AmountCancellationCharge": 1.1, "AmountToRefund": 2.1, "AmountToPay": 3.1, "AmountPaid": 4.1 }, "IsAllowCancellation": true, "IsAllowModification": true, "IPLocation": { "IPAddress": "sample string 2" } }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ReservationResultName | Description | Type | Additional information |
---|---|---|---|
PaymentUrl | string |
None. |
|
PaymentOrderJson | string |
None. |
|
Parameters | Collection of PaymentParam |
None. |
|
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:
{ "PaymentUrl": "sample string 1", "PaymentOrderJson": "sample string 2", "Parameters": [ { "Key": "sample string 1", "Value": "sample string 2" }, { "Key": "sample string 1", "Value": "sample string 2" } ], "IsValid": true, "Message": "sample string 4", "Code": "sample string 5", "ID": "768e2e52-2653-4f69-9f22-791cc6798397", "Errors": [ "sample string 1", "sample string 2" ], "ErrorCodes": [ 1, 1 ] }
application/xml, text/xml
Sample:
<ReservationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity"> <Code>sample string 5</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>768e2e52-2653-4f69-9f22-791cc6798397</ID> <IsValid>true</IsValid> <Message>sample string 4</Message> <Parameters> <PaymentParam> <Key>sample string 1</Key> <Value>sample string 2</Value> </PaymentParam> <PaymentParam> <Key>sample string 1</Key> <Value>sample string 2</Value> </PaymentParam> </Parameters> <PaymentOrderJson>sample string 2</PaymentOrderJson> <PaymentUrl>sample string 1</PaymentUrl> </ReservationResult>