This page presents the simplest example of booking/easy usage, in EVALUATION mode.
Full use of /v2/bookings/easy API are documented here.
If stay specified in booking is no more available, response status code will be 409 (conflict).
If the presented price less than our possible price, response status code will be 404 (not found).
Authentication | No |
Request Formats | xml, json |
Response Formats | xml, json |
HTTP Method | POST |
Request Object | Booking easy |
Response Object | Booking result, Booking evaluation |
API Version | v2 |
https://api.poplidays.com/v2/bookings/easy
{"requestType":"EVALUATION", "lodgingId": "6893537", "arrival": "20151031", "departure": "20151110", "occupantCount": "2", "customer":{"address":{"line1":"","city":"","country":"","postalCode":""}, "email":"","firstName":"","lastName":"","language":"","phoneNumber":""} }
<booking> <requestType>EVALUATION</requestType> <lodgingId>6893537</lodgingId> <arrival>20151031</arrival> <departure>20151110</departure> <occupantCount>2</occupantCount> <customer><address><line1/><city/><country/><postalCode/></address><email/><firstName/><lastName/><language/><phoneNumber/></customer> </booking>