Travel Advisor

FREEMIUM
Verified
Door Api Dojo | Bijgewerkt a month ago | Transportation
Populariteit

9.9 / 10

Latency

2,941ms

Serviceniveau

100%

Health Check

N/A

Terug naar alle discussies

THERE'S A PROBLEM WIHT HOTEL API

Rapid account: Wudgres 2
wudgres2
a year ago

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 a year ago

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 a year ago

here’s a screenchot of it !

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

Rapid account: Wudgres 2
wudgres2 Commented a year ago

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 a year ago

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 a year ago

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

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen