Hotels

PAGATO
Verified
Da Api Dojo | Aggiornamento 5 days ago | Travel
Popolarità

9.8 / 10

Latenza

2,263ms

Livello di servizio

100%

Health Check

N/A

Torna a tutte le discussioni

OLD API and New API so much changed

Rapid account: STAAH Limited
STAAHLimited
a year ago

We used old API fetch for property details like expedia property ID . As per checking new API expedia API totally change . so please give me solution how to integrate with this new API date with OLD API data .

Rapid account: Apidojo
apidojo Commented a year ago

Well, you should often check the related email for notification. We have released the new version of endpoints THREE MONTHS AGO.

Regards.

Rapid account: STAAH Limited
STAAHLimited Commented a year ago

Hi Team

whenever you will be change API level please inform me before 10 days.
So we will aware about our side and implement into API level change.

Rapid account: Apidojo
apidojo Commented a year ago

Hello,

I tested manually with postman and your body request, everything worked fine https://prnt.sc/dfQe7dz7mf4z
You tested with your code, not with a Http client so check you shitty code how it did send the request body.

Regards.

Rapid account: STAAH Limited
STAAHLimited Commented a year ago

Hi
i tried to fetch rate using ( get-offer ) API via. i got a response from another language and rate also other currency .

Please why i am not getting rate base on pass currency wise.

$expedia_arr = [
“currency” => “INR”,
“eapid” => 1,
“locale” => “en_IN”,
“siteId” => 300000001,
“propertyId” => “9777493”,
“checkInDate” => [
“day” => 6,
“month” => 2,
“year” => 2023
],
“checkOutDate” => [
“day” => 7,
“month” => 2,
“year” => 2023
],
“destination” => [
“coordinates”=> [
“latitude”=> -36.313482,
“longitude”=> 145.057138
]
],
“rooms” => [
[
“adults” => 1,
“children” => [
]
]
]
];

Rapid account: STAAH Limited
STAAHLimited Commented a year ago

Hi
Thank you for suggestion.
why i will send 2 request for fetch regionID . Here, request hit multiple so our charges increase.

can you please provide me single hit or you set region ID into resolve-URL ?

its easily to us .

Rapid account: Apidojo
apidojo Commented a year ago

Hello,

You may try this flow : …/
1/ …/properties/v2/get-summary with the new id (to get the hotel name)
2/ …/locations/v3/search with the name (to get sourceId or regionId, and GEO location)
3/ …/properties/v2/get-offers (it requires either regionId or coordinates)

Or
1/ …/properties/v2/get-summary with the new id (to get the coordinates)
2/ …/properties/v2/get-offers with the coordinates (it requires either regionId or coordinates)

Regards.

Rapid account: STAAH Limited
STAAHLimited Commented a year ago

Thank you for resolve-url suggestion.

I have another queries.
As per OLD API for RATE / Price fetched used this API : https://hotels4.p.rapidapi.com/properties/get-details
As per new API ( https://hotels4.p.rapidapi.com/properties/v2/get-offers ) there is changed API for Rate / price fetch and also change parameter. there is 3 parameter need for property rate fetch ( property ID , region ID , cordinate ).
As per given resolve-URL i will fetch new property ID from old property ID. what about other 2 parameter.

Please guide me what to do into the process

Rapid account: Apidojo
apidojo Commented a year ago

Hello,

Yes, Hotels is migrating to Expedia, the property ID is different from two versions. There is …/properties/v2/resolve-url endpoint helping you to convert the old ID (ex : ho192322) to the new one.

Regards.

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti