POST api/Reservations/Update?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": "76865cff-49e1-4391-bcf8-9d08449cd0a1", "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": "cb4c9a41-7298-47d5-93a2-8a386eb4c9f9", "Code": "sample string 9" }, "RentalIn": { "RentalDays": 1, "RentalType": 0, "VehicleModelID": "8bc63bbc-3147-4583-8d06-d2f2c647e3da", "SubscriptionMonth": 3, "ModelYear": 4, "SubscriptionKm": 5, "RentalTariffID": "dbbd1ba2-ea77-4b85-9667-77b0a7edb557", "RentalTariffName": "sample string 7", "CheckOutOn": "2023-12-08T19:50:54.2351213+04:00", "CheckInOn": "2023-12-08T19:50:54.2351213+04:00", "CheckOutBranchID": "aa74fa9d-2506-4852-b6e3-37e98a77df89", "CheckInBranchID": "eafd3bdd-fa00-4e3e-aeae-f3e73d931ca2", "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": "f51d7900-b871-4ad1-835c-e79c2fa5cedd", "RentalDiscountOffered": 14.1, "AdditionalDrivers": 15, "IsPAISelected": true, "IsCDWSelected": true, "IsSCDWSelected": true, "AncillaryIn": [ { "AncillaryID": "9fc291ab-da8b-49b7-89ef-7d752475c734", "Qty": 2, "AncillaryItemIDs": [ "9ff9aa2b-cc4c-444f-9f57-fc5fc44fb03a", "9889178c-265b-4e9a-a75a-62ded388541d" ] }, { "AncillaryID": "9fc291ab-da8b-49b7-89ef-7d752475c734", "Qty": 2, "AncillaryItemIDs": [ "9ff9aa2b-cc4c-444f-9f57-fc5fc44fb03a", "9889178c-265b-4e9a-a75a-62ded388541d" ] } ], "RemovedLedgerID": "8af51cef-e741-4267-a609-38adb12513e8", "PromoCode": "sample string 20", "SpecialOfferID": "cacb277e-77dc-4e1e-9925-b2210f71b7e7", "SpecialOfferName": "sample string 22", "CheckOutKm": 23, "CheckInKm": 24, "CheckInFuel": 25, "CheckOutFuel": 26, "VehicleID": "1554e62f-1391-4d81-9016-024c9a9f8909", "AllowedKm": 28, "AllowedKmPerRental": 29, "TransactionID": "f2ae04bb-b2c0-4c63-9348-1d3a136a4a61", "TransactionType": 0, "RentalRate": 31.1, "ModelWiseChargeID": "5345b84e-e698-41dd-b76d-1176e740a99d", "VehicleVariantID": "51454838-3c93-46c7-9fdf-3051895cea9a", "CancelledOn": "2023-12-08T19:50:54.2351213+04:00", "DayUnitID": 35, "PaymentStatus": 0, "UpgradeTariffGroupID": "11bc9bed-2768-4ffb-a026-0aeb1f9073e8", "UpgradeModelID": "3f576075-9d66-4262-92e3-eb83fd9ea17e", "UpgradeType": 0, "ModifiedReservationID": "75b18873-a2e2-47b9-ad3c-02b7e5d47850", "ContactID": "4be8c09a-221d-4b41-8564-21e0c03c3372", "IsMonthlyBooking": true, "IPLocation": { "IPAddress": "sample string 2" } }, "RentalRateDetail": [ { "RentalRateDetailID": "2ab9f303-84ed-41e2-bea6-283c6d87f12e", "ItemID": "93ad1ed4-9135-4c79-bfe6-3f9e6b45eebe", "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": "2ab9f303-84ed-41e2-bea6-283c6d87f12e", "ItemID": "93ad1ed4-9135-4c79-bfe6-3f9e6b45eebe", "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": "2ab9f303-84ed-41e2-bea6-283c6d87f12e", "ItemID": "93ad1ed4-9135-4c79-bfe6-3f9e6b45eebe", "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": "2ab9f303-84ed-41e2-bea6-283c6d87f12e", "ItemID": "93ad1ed4-9135-4c79-bfe6-3f9e6b45eebe", "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": "76865cff-49e1-4391-bcf8-9d08449cd0a1", "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-08T19:50:54.2351213+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-08T19:50:54.2351213+04:00", "ExpiresOn": "2023-12-08T19:50:54.2351213+04:00" }, "Passport": { "PassportNo": "sample string 1", "IssuedOn": "2023-12-08T19:50:54.2351213+04:00", "ExpiresOn": "2023-12-08T19:50:54.2351213+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-08T19:50:54.2351213+04:00", "IssuedByBank": "sample string 7" }, { "CreditCardType": "sample string 3", "CreditCardNo": "sample string 4", "ExpiryOn": "2023-12-08T19:50:54.2351213+04:00", "IssuedByBank": "sample string 7" } ], "AdditionalDocument": { "DocumentNo": "sample string 1", "IssuedBy": "sample string 2", "IssuedOn": "2023-12-08T19:50:54.2351213+04:00", "ExpiresOn": "2023-12-08T19:50:54.2351213+04:00" } }, "TotalAmount": 9.1, "TotalTax": 10.1, "SubTotal": -1.0, "RentalType": 0, "CustomerFeedback": { "TransactionID": "e48eefdc-ce79-4c5a-bd8b-11fb156c70d9", "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": "95f7dd97-8ab4-4448-9907-54ecb23ac0e3", "BookingIncludedType": 0, "ShortText": "sample string 2", "LongText": "sample string 3", "TempCRUD": { "TempId": 1, "IsNew": true, "IsDeleted": true, "IsUpdated": true, "IsActive": true } }, { "BookingIncludedID": "95f7dd97-8ab4-4448-9907-54ecb23ac0e3", "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
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": "219f7445-8af6-4fc4-923a-358f8c7cef53", "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>219f7445-8af6-4fc4-923a-358f8c7cef53</ID> <IsValid>true</IsValid> <Message>sample string 2</Message> </Result>