Reputation: 651
I am trying to connect to this API endpoint, some parameters such as roomTypes
and addOns
require more parameters inside them. What should the URL be like?
Here is what I am trying, unsuccessfully:
https://api.lodgify.com/v2/quote/308200/?arrival=2020-10-02&departure=2020-10-07&propertyId=308200&roomTypes=[Id=373125, People=5]&addOns=[]
See image of Documentation
Upvotes: 1
Views: 88
Reputation: 651
The correct format of parameters are as following:
https://api.lodgify.com/v2/quote/{PropertyID}?arrival={DATE}&departure={DATE}&roomTypes[0].id={RoomID}&roomTypes[0].people={PEOPLE}
Upvotes: 1
Reputation: 1
It seems like you have space (white space) between Id and People in your URL, an URL must not contain a literal space
Upvotes: 0