Hotels

BEZAHLT
Verified
Durch Api Dojo | Aktualisiert 한 달 전 | Travel
Popularität

9.8 / 10

Latenz

2,188ms

Service Level

100%

Health Check

N/A

Zurück zu allen Diskussionen

Filters are not working how to use it ?

Rapid account: Desi 007
desi007
8일 전

I want to see properties which type is HOTEL. I have tried 3 ways but its not working. sort is properly working but filter is not. tell me how to do that ?
‘resultsStartingIndex’ => 0,
‘resultsSize’ => 10,
‘sort’ => ‘REVIEW’,
‘lodging’ => ‘HOTEL’,
‘filters’ => [
‘price’ => [
‘max’ => 1000,
‘min’ => 10
],
‘lodging’ => ‘HOTEL’,
‘lodging’ => [
‘type’ => ‘HOTEL’
],
]

Rapid account: Desi 007
desi007 Commented 6일 전

You should check it again as I don’t see option HOTEL (but HOTEL_RESORT). Fix your careless first, then everything should work as expected.

Finally I got it.
When i pass only single value in lodging then its not showing good result but when i pass in array format then its showing good results.

do like this ‘lodging’ => [‘HOTEL_RESORT’]

not like this ‘lodging’ => ‘HOTEL_RESORT’

now i got it i can pass multiple values in array format like this.

‘lodging’ => [‘HOTEL_RESORT’,‘APARTMENT’,‘VILLA’]

Thanks again 😃

Rapid account: Apidojo
apidojo Commented 7일 전

You should check it again as I don’t see option HOTEL (but HOTEL_RESORT). Fix your careless first, then everything should work as expected.

Rapid account: Desi 007
desi007 Commented 7일 전

I am not confused with pricing.

I want to get list of properties which “lodging” type is “HOTEL” not (APARTMENT, VILLA, VACATION_RENTALS, HOTEL_RESORT, VACATION_HOME, CONDO_RESORT, CONDO).

I am using PHP and I want to apply that filter “lodging” => “HOTEL”

I dont know correct schema structure for that filter.

I have seen this code in docs which show how to apply pricing filter.
"resultsStartingIndex": 0, "resultsSize": 200, "sort": "PRICE_LOW_TO_HIGH", "filters": { "price": { "max": 150, "min": 100 } }
its working and i am getting all data i want but tell me how to apply this lodging filter ?
Is that correct way ? if yes then why its not working ?

"resultsStartingIndex": 0, "resultsSize": 200, "sort": "PRICE_LOW_TO_HIGH", "filters": { "price": { "max": 150, "min": 100 }, "lodging":"HOTEL" }

Rapid account: Apidojo
apidojo Commented 8일 전

Hello,

1/ I cannot help you to check your code. Please manually make a request with an HTTP client such as postman.com to test the endpoint and see whether or not it works as expected. You then share with me your body request, it will tell me why your request does not work.

2/ You may be simply confused with the regular price and sale price. You have to learn the response carefully to understand it correctly.

Regards.

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen