Travel Advisor

FREEMIUM
Verified
By Api Dojo | Updated 16日前 | Transportation
Popularity

9.9 / 10

Latency

2,660ms

Service Level

100%

Health Check

N/A

Back to All Discussions

THERE'S A PROBLEM WIHT HOTEL API

Rapid account: Wudgres 2
wudgres2
1年前

Hi APIDOJO TEAM,
HOPE Y’ALL DOING GOOD… FIRST AND FOREMOST THANKS FOR CREATING THIS USEFUL API , IM CURRENTLY USING IT IN MY PERSONAL PROJECT AND IM LOVIN IT BUT RECENTLY I RAN INTO THIS “ERROR” OR “PROBLEM” WHAT EVER U WANNA CALL IT!! SO BASICALLY WHEN I TRY TO FETCH DATA FROM HOTELS API IT THROWS THE FOLLOWING ERROR

{
“errors”: [
{
“type”: “BadRequestException”,
“message”: “The checkin time is before today in accommodation 293919 timezone.”,
“code”: “117”
}
]
}

I DON’T UNDERSTAND WHAT’S WRONG MY CODE OR THE API ITSELF… COULD U PLS HELP ME OUT !!!

Rapid account: Apidojo
apidojo Commented 1年前

Hello,

As I mentioned “The response message has already told you what was wrong”. You should scroll the page down and check the value of “checkin” parameter. Please check the screenshot :
https://prnt.sc/LUyuN-CyomLE
https://prnt.sc/R8n_d-3SY0GE
https://prnt.sc/KhVGDI8BnA0I
You simply use tomorrow or future date instead and try again. Ex : …&checkin=2022-12-15
In addition, you can always review your requests at https://rapidapi.com/developer and the endpoint was deprecated long time ago.

Regards

Rapid account: Wudgres 2
wudgres2 Commented 1年前

here’s a screenchot of it !

[https://ibb.co/3Wr7ZXZ]

Rapid account: Wudgres 2
wudgres2 Commented 1年前

i mean i tried entering a bunch a bunch of differnent countries co-ordinates, i also tried changing the date it doesnt seem to work …
i dont get it like could u explain it in more detail

Rapid account: Wudgres 2
wudgres2 Commented 1年前

im a beginner im trying to call the api in my react app using axios get method
i’ve never used check-in datetime in the past if could sir!! pls tell me how its done?

Rapid account: Apidojo
apidojo Commented 1年前

Hello,

What is your body request?
The response message has already told you what was wrong. Didn’t you read it? “The checkin time is before today in accommodation 293919 timezone”. Did you use checkin datetime in the past?!

Regards

Join in the discussion - add comment below:

Login / Signup to post new comments