Update item's timeslots

PUT{{API_BASE_URL}}/shop/v1/cart/:cart/items/:item/timeslots?$expand=AssociatedPersonOnItems&$expand=AvailableTimeslotsOnItems

This endpoint is used to update the timeslots for a specific item in the user's shopping cart.

Request

  • bookings (array of objects) - An array containing the booking details for the item.

    • day (string) - The unique identifier for the day of the booking.

    • timeRange (string) - The unique identifier for the time range of the booking.

Response

The response returns a JSON object with the following fields:

  • timeslotsBooked (object) - Object containing the booked timeslots information.

    • bookings (array of objects) - Array of booked timeslots.

      • id (string) - The unique identifier for the booking.

      • date (string) - The date of the booking.

      • printText (string) - The text to be printed for the booking.

      • timeRange (object) - Object containing the time range information.

        • id (string) - The unique identifier for the time range.

        • start (string) - The start time of the time range.

        • end (string) - The end time of the time range.

  • cart (object) - Object containing the updated cart information.

    • Various cart details including ID, expiry time, user information, event details, promotion codes, items, totals, buyer person details, and status.

Authentication#auth

This endpoint does not require authentication.

Query parameters#query

$expandAssociatedPersonOnItemsoptional
$expandAvailableTimeslotsOnItemsoptional

Responses#responses

200OKUpdate item's timeslots