POST api/Reservations/Post?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": "c8c877bf-35ac-4890-bb1d-33801e6b7351", "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": "360f33a7-8c0f-4d66-a68e-f66518f209aa", "Code": "sample string 9" }, "RentalIn": { "RentalDays": 1, "RentalType": 0, "VehicleModelID": "f9594bd5-b15a-401e-b031-af0183b5b097", "SubscriptionMonth": 3, "ModelYear": 4, "SubscriptionKm": 5, "RentalTariffID": "fef71847-3f70-4ddb-b72d-dc8448fa55fb", "RentalTariffName": "sample string 7", "CheckOutOn": "2023-12-08T20:55:18.5301297+04:00", "CheckInOn": "2023-12-08T20:55:18.5301297+04:00", "CheckOutBranchID": "6d7c648b-40b6-4aa9-a971-d4c89a1cfd50", "CheckInBranchID": "853e03d4-bf7f-4d82-9b67-430d9fc156a1", "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": "feb2f49c-4847-414d-beba-4c4449419eca", "RentalDiscountOffered": 14.1, "AdditionalDrivers": 15, "IsPAISelected": true, "IsCDWSelected": true, "IsSCDWSelected": true, "AncillaryIn": [ { "AncillaryID": "3a6ac670-b6af-4f34-b111-2cbe98ab9b4f", "Qty": 2, "AncillaryItemIDs": [ "8fecad76-73ba-4f24-8549-3a74cc711dbe", "b8de2fcc-89e2-4f2a-8632-bf5009fe7ebc" ] }, { "AncillaryID": "3a6ac670-b6af-4f34-b111-2cbe98ab9b4f", "Qty": 2, "AncillaryItemIDs": [ "8fecad76-73ba-4f24-8549-3a74cc711dbe", "b8de2fcc-89e2-4f2a-8632-bf5009fe7ebc" ] } ], "RemovedLedgerID": "0e249b40-2cb4-47df-a538-d14ee7b13904", "PromoCode": "sample string 20", "SpecialOfferID": "b95a8510-e757-4e27-aed0-e3f9b8cd1049", "SpecialOfferName": "sample string 22", "CheckOutKm": 23, "CheckInKm": 24, "CheckInFuel": 25, "CheckOutFuel": 26, "VehicleID": "c522bacf-da3e-43f3-b544-f2b96059c998", "AllowedKm": 28, "AllowedKmPerRental": 29, "TransactionID": "f83564df-14e9-4aa5-8888-e7203484db67", "TransactionType": 0, "RentalRate": 31.1, "ModelWiseChargeID": "839c9877-96b2-4068-a514-0249cf4e867f", "VehicleVariantID": "26e7aaed-7045-4933-b9c9-275954cab942", "CancelledOn": "2023-12-08T20:55:18.5301297+04:00", "DayUnitID": 35, "PaymentStatus": 0, "UpgradeTariffGroupID": "704311d0-ae41-4834-bb09-5a3c8949b0c9", "UpgradeModelID": "56b0d818-85a3-4019-a84b-a4cc2d720622", "UpgradeType": 0, "ModifiedReservationID": "f9af247e-1050-40f4-8992-cb2b03e9dfd0", "ContactID": "464fe7f8-e244-415c-956b-925bec3200d3", "IsMonthlyBooking": true, "IPLocation": { "IPAddress": "sample string 2" } }, "RentalRateDetail": [ { "RentalRateDetailID": "cd446e64-c81a-4928-a3fc-1f6ceed1dc19", "ItemID": "aebe7f81-cfe3-49ea-8f10-b84ceafbbfd3", "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": "cd446e64-c81a-4928-a3fc-1f6ceed1dc19", "ItemID": "aebe7f81-cfe3-49ea-8f10-b84ceafbbfd3", "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": "cd446e64-c81a-4928-a3fc-1f6ceed1dc19", "ItemID": "aebe7f81-cfe3-49ea-8f10-b84ceafbbfd3", "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": "cd446e64-c81a-4928-a3fc-1f6ceed1dc19", "ItemID": "aebe7f81-cfe3-49ea-8f10-b84ceafbbfd3", "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": "c8c877bf-35ac-4890-bb1d-33801e6b7351", "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:55:18.5301297+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:55:18.5301297+04:00", "ExpiresOn": "2023-12-08T20:55:18.5301297+04:00" }, "Passport": { "PassportNo": "sample string 1", "IssuedOn": "2023-12-08T20:55:18.5301297+04:00", "ExpiresOn": "2023-12-08T20:55:18.5301297+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:55:18.5301297+04:00", "IssuedByBank": "sample string 7" }, { "CreditCardType": "sample string 3", "CreditCardNo": "sample string 4", "ExpiryOn": "2023-12-08T20:55:18.5301297+04:00", "IssuedByBank": "sample string 7" } ], "AdditionalDocument": { "DocumentNo": "sample string 1", "IssuedBy": "sample string 2", "IssuedOn": "2023-12-08T20:55:18.5301297+04:00", "ExpiresOn": "2023-12-08T20:55:18.5301297+04:00" } }, "TotalAmount": 9.1, "TotalTax": 10.1, "SubTotal": -1.0, "RentalType": 0, "CustomerFeedback": { "TransactionID": "5f5bafa7-5aa1-447f-937a-593dd228759c", "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": "687d0440-d296-4579-8814-3b753fd171bf", "BookingIncludedType": 0, "ShortText": "sample string 2", "LongText": "sample string 3", "TempCRUD": { "TempId": 1, "IsNew": true, "IsDeleted": true, "IsUpdated": true, "IsActive": true } }, { "BookingIncludedID": "687d0440-d296-4579-8814-3b753fd171bf", "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": "05ba24f4-84df-40d1-b865-161f19557575", "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>05ba24f4-84df-40d1-b865-161f19557575</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>