REST API Method: bookings/fetch-new-confirmed

Fetches a list of confirmed bookings for which the method bookings/fetch-details hasn't been requested yet. Only returns confirmed bookings with a departure day in the future.

URL

http://api.bookingmarkets.com/bookings/fetch-new-confirmed?api_key=your_key

Formats:

  • xml
  • json

HTTP Method(s):

  • POST
  • GET (maximum of 2048 characters) 

Requires Authentication:

true

API rate limited:

false

Parameters:

Response

  • ok. The request was successfully processed.
    • timestamp. Timestamp of the transaction in UnixTime (GMT).
    • listing token. Identifies the listing for which the booking was made.
      • booking id. The id of the new confirmed booking. Only returns already confirmed bookings for which the method bookings/fetch-details hasn't been requested yet. Additionally, it only returns confirmed bookings with a departure day in the future.
  • error. The request wasn't successfully processed.
    • errorcode. Error code.
    • errormessage. Error message explaining the issue.

Examples

Request (XML):

http://api.bookingmarkets.com/bookings/fetch-new-confirmed?api_key=your_key&xml=
<request>
     <listing token="czY2YnRPa0JFOE9QTXJpVU9ma0dWQT09"></listing>
     <listing token="czXJpVU9ma0dWQT09Y2YnRPa0JFOE9QT"></listing>
     <listing token="cz9mXJpVUa0dWQT0a0JFOE9QT9Y2YnRP"></listing>
</request>

Successful Response:

<?xml version="1.0" encoding="UTF-8"?>
<ok>
     <timestamp>1287186106</timestamp>
     <listing token="czY2YnRPa0JFOE9QTXJpVU9ma0dWQT09">
          <booking id=54666>
          <booking id=254555>
      </listing>
     <listing token="czXJpVU9ma0dWQT09Y2YnRPa0JFOE9QT">
            <booking id=254555>
     </listing>
</ok>

Failed Response:

<?xml version="1.0" encoding="UTF-8"?>
<error>
     <errorcode>0200.0100a</errorcode>
     <errormessage>A listing token is not valid: cz9mXJpVUa0dWQT0a0JFOE9QT9Y2YnRP. Please find the correct token by visiting the URL /tokens in any of the sites powered by the BookingMarkets Engine</errormessage>
</error>

Have questions or need help? We are eager to help. Contact us!