Booking Check (p:booking-check)

http//profiles.goabout.com/booking-check

The Booking Check resource allows clients to check product booking information without actually making a booking.

Example

$ curl -d@- \
    -H'Authorization: Bearer UArtDY9Bpo9Whga2mfd7nIK6vENxp2twtnH7RvPC6xj0jy6' \
    -H'Content-Type: application/json' \
    https://api.goabout.com/booking-check <<.
>{
>  "products": [{
>    "productHref": "https://api.goabout.com/product/3306",
>    "properties": {
>      "days": 2
>    }
>  }],
>  "userProperties": {
>    "ovFietsSubscription": "612345678"
>  }
>}
>.
{
  "products": [{
    "productHref": "https://api.goabout.com/product/3306",
    "available": true,
    "cost": 6.7
  }]
}

Reference

POST

The request body contains an array of products to be booked and a map of user properties. Every product contains the product URI and a map of product properties.

Properties

products:JSON-Array of ProductBooking The products to be booked.
userProperties:JSON-Object A map of user properties relevant to the booking conforming to the bookUserPropertySchema of all checked products.

ProductBooking:

productHref:URI A reference to the Product (p:product) to be booked.
properties:JSON-Object A map of product properties relevant to booking conforming to the bookPropertySchema of the product.

Response

The response body contains array of product booking information.

products:JSON-Array of ProductBookingInfo Information about the products to be booked.

ProductBookingInfo:

productHref:URI A reference to the Product (p:product).
available:boolean Whether the product is available for the supplied booking properties.
cost:number [OPTIONAL] The cost of the booking in euros, if known.