Availability Rates - OTA_VehAvailRateRQ
To ensure the security of your credentials provided to you, the integrating merchant developer must safeguard the credentials on their back-end at all times, they should not be visible on the front-end for any reason.
The OTA_AvailVehRateRQ message is a request for rental vehicle rate and availability information. This request must be asked by “GET” method. The next example shows the XML structure and the table explain each of the variables data type required.For more information visit the Important Information section
Request Variables
| Var_Name | Type | Source | Notes |
|---|---|---|---|
| RequestorID.ID* | Int | See setup var names | |
| LocCodePU* | Int | See setup var names | |
| LocCodeDO* | Int | See setup var names | |
| RateId* | Int | See setup var names | |
| PickUpDateTime* | String | OTA_VehAvailRateRQ | Pick-Up Datetime. |
| ReturnDateTime* | String | OTA_VehAvailRateRQ | Return Datetime. |
| VehPref.Code | String | SIPP Code | This is an optional field, if you want a specific vehicle group as a result. It must be empty to show all car groups rates up. |
It is very important you do not forget add the <? xml version='1.0' ?> as a header of the curl request. Also, remember to add to the curl parameter the URLENCODE inside a variable called XML… This is an example:
curl -v 'https://ota.acrdev.com/? XML=%3C%3Fxml%20version%3D%271.0%27%3F%3E%3COTA_VehAvailRateRQ%20Version%3D%221. 00%22%3E%0A%20%20%20%20%3CPOS%3E%0A%20%20%20%20%20%20%20%20%3C Source%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C RequestorID%20ID%3D%22{RequestorID}%22%20 Type%3D%22{RateID}%22%20%2F%3E%0A%20%20%20%20%20%20%20%20%3C%2F Source%3E%0A%20%20%20%20%3C%2FPOS%3E%0A%20%20%20%20%3C VehAvailRQCore%20Status%3D%22 Available%22%3E%0A%20%20%20%20%20%20%20%20%3 CVehRentalCore%20PickUpDateTime%3D%222023-12-13T10%3A00%3A00%22%20 ReturnDateTime%3D%222023-12-14T10 %3A00%3A00%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C PickUpLocation%20LocationCode%3D%22{LocCodePU}%22%3E%3C%2FPickUpLocation %3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3CReturnLocation %20LocationCode%3D%22{LocCodeDO}%22%3E%3C%2F ReturnLocation%3E%0A%20%20%20%20%20%20%20%20%3C%2 FVehRentalCore%3E%0A%20%20%20%20%20%20%20%20%3C VehPrefs%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C VehPref%20Code%3D%22%22%20CodeContext%3D%22 SIPP%22%2F%3E%0A%20%20%20%20%20%20%20%20%3C%2F VehPrefs%3E%0A%20%20%20%20%3C%2F VehAvailRQCore%3E%0A%3C%2FOTA_VehAvailRateRQ%3E'
Response Variables
| Var. Name | Type | Source | Notes |
|---|---|---|---|
| RequestorID.ID | Int | ||
| LocCodePU | Int | Pick-Up Location. | |
| LocCodeRe | String | Return Location. | |
| PickUpDateTime | DateTime | OTA_VehAvailRateRQ | Pick-Up Datetime. |
| ReturnDateTime | DateTime | OTA_VehAvailRateRQ | Return Datetime. |
| VehClass | String | OTA_VehAvailRateRQ | ACRISS Code. |
| VehType | String | OTA_VehAvailRateRQ | Car Model. |
| RateId | Int | OTA_VehAvailRateRQ | RequestorId:Type |
| Fee:”049.VCP”:Amount | Float | OTA_VehAvailRateRQ | If not apply = 0* |
| Fee:”017.VCP”:Amount | Float | OTA_VehAvailRateRQ | If not apply = 0* |
| VehicleCharge:total | Float | Subtotal, amount before taxes and fees. (UnitCharge * Quantity)-TaxAmount Exa: (4 * 18) – 9.93 = 62.07 | |
| VehicleCharge Calculation | Mix | OTA_VehAvailRateRS | UnitCharge * Quantity Exa: (4*18)=72 |
| TaxAmount * The taxes are included in the VehicleCharge Calculation: VehicleCharge:total + TaxAmount Exa: 62.07 + 9.93 = 72 | Float | OTA_VehAvailRateRS | Taxes and fees break- down (UnitCharge * Quantity) - (UnitCharge * Quantity)/1.16 Exe: (4 * 18) – ((4 * 18)/1.16) = 9.93 |
| TotalCharge.RateTotalAmount | Float | Total before taxes | Just the rent price. |
| TotalCharge.EstimatedTotalAmount | Mix | Extras info | |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.EquipType |
Int | CT:VehicleEquipmentType | Refer to OTA Code List Equipment Type (EQP) |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.Description |
String | Element | |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.Charge. Amount |
Float | Money | A monetary amount. |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.Charge. TaxInclusive |
Bool | Attribute | If apply taxes. |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.Charge. IncludedRate |
Bool | Attribute | If is included in the total of the quotation. |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.Charge. Currency |
String | Attribute | Monetary unit defined in the ISO_4217. |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.Charge. Calculation.Applicability |
String | Enum | Time or place of reference. |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.Charge. Calculation.Unitcharge |
Float | Money | |
| VehAvailCore.PricedEquips. PricedEquip.Equipment.Charge. Calculation.UnitName |
Float | Attribute | {1,…,99} |
| VehAvailCore.RentalRate. RateQualifier.RateQualifier |
String | Attribute | This is the vendor specific code for rate code.. |
| VehAvailCore.RentalRate. RateQualifier.RateQualifierName |
String | Car Category Rate | |
| VehAvailCore.RentalRate. RateQualifier.VendorRateID |
Int | Attribute | The identifier assigned to this rate by the vendor. |
| VehAvailCore.RentalRate. RateQualifier.RateComments. RateComment. |
String | CT:RateComment | |
| VehAvailCore.RentalRate. RateQualifier.RateComments. TextFormat |
String | Enum | FormattedTextTextType_ TextFormat |
| VehAvailCore.RentalRate. RateQualifier.RateComments. Language |
String | ISO 639-2 | |
| VehAvailInfo.PricedCoverages .PricedCoverage.Coverage. Code |
String | CoverageType | Coverage Code |
| VehAvailInfo.PricedCoverages. PricedCoverage.Coverage. CoverageType |
Int | CoverageType | OTA Code List Vehicle Coverage Type (VCT). |
| VehAvailInfo.PricedCoverages. PricedCoverage.Coverage. Charge |
ComplexType | VechicleChargeType | See Charges elements. |