Closed mateusgrb closed 3 years ago
Hi,
You are likely missing one header: Accept:application/json
The below request should work:
POST /v2.0.0/get/vehavail HTTP/1.1 Host: api-crt.cert.havail.sabre.com Accept: application/json Authorization: Bearer xxxxxxxxxxxx Content-Type: text/plain
{
"GetVehAvailRQ": {
"SearchCriteria": {
"AirportRef": {
"PickUpLocation": {
"LocationCode": "SFO"
}
},
"RatePrefs": {
"ConvertedRateInfoOnly": false,
"SupplierCurrencyOnly": true
},
"PickUpTime": "10:30",
"ReturnTime": "10:30",
"PickUpDate": "2021-03-25",
"ReturnDate": "2021-04-01",
"LocPolicyRef": {
"Include": false
},
"VendorPrefs": {
"VendorPref": [
{
"Code": "ZE"
}
]
}
}
}
}
thanks! that did it
Hey team!
Sorry in advance if this is not the right place, but I couldn't find a repo for cars. I'm trying to consume the
/v2.0.0/Get/VehAvail
endpoint but I keep getting a 400 Bad Request error with this body:Here's the request body:
I've also tried to search for cars with the SOAP API and got an error with the same code:
Any thoughts?