Hotels

ÜCRETLİ
Verified
Taraf Api Dojo | Güncelleyen vor 4 Tagen | Travel
Popülerlik

9.8 / 10

Gecikme

2,303ms

Hizmet Düzeyi

100%

Health Check

N/A

Tüm Tartışmalara Dön

OLD API and New API so much changed

Rapid account: STAAH Limited
STAAHLimited
vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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 vor einem Jahr

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.

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun