Update Reservation / Update Cart

PUT {{baseUrl}}/reservations/:reservation_reference

This API is called to update an existing reservation / cart.

This endpoint can also be requested for products without availability (product_availability:false) or managed capacity (product_capacity:false).

Cart Functionality:

  • To add a product to the cart, send a reservation_details array item with a blank booking_reservation_reference.

  • To amend an existing booking, please send the corresponding booking_reservation_reference for the array item with the amended data. In this case the latest request takes precedence and therefore the quantity is always overwritten, not summed.

Only sent the booking details of those bookings you would like to amend.

  • To remove a product from the cart, please call the Remove Cart Item endpoint.

  • TIP: The full reservation / cart details will be returned on every request. Therefore you are able to manage the cart outside of your system if required. ReadOnly properties which are included in the response, but not allowed in the request, such as booking_pricing and booking_reservation_valid_until will be ignored and can be safely sent. If you choose not to do this, make sure both carts are kept in sync.

Request Body

{"data"=>{"reservation"=>{"reservation_distributor_id"=>"{{distributorID}}", "reservation_external_reference"=>"{{$randomUUID}} - ", "reservation_details"=>[{"booking_reservation_reference"=>"{{booking_reservation_reference}}", "booking_external_reference"=>"{{$randomUUID}}", "booking_language"=>"DE", "product_id"=>"{{ProductID}}", "product_availability_id"=>"{{product_availability_id}}", "product_type_details"=>[{"product_type_id"=>"{{product_type_id}}", "product_type_count"=>4}]}]}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK