Reservation time window

It is possible to update the time window of a reservation of type TIME. This can be achieved by supplying two parameters via a v2/reservations PATCH request:

  • startReservationDate,

  • expirationDate.

 

An example of a PATCH request, which updates the time window of the reservation:

PATCH /parcel-lockers/v2/reservation { "data": { "reservation": { "id": "RES123", "attributes": { "startReservationDate": "2023-08-23T08:00:00.000Z", "expirationDate": "2023-08-24T14:00:00.000Z" } } } }

 

Please note, that such PATCH request is only valid for reservation of type TIME. Please find below an example of a reservation created by POST request, which could be PATCHed by the request above:

POST /parcel-lockers/v2/reservation { "data": { "reservation": { "id": "RES123", "attributes": { "startReservationDate": "2023-09-22T06:30:00.000Z", "expirationDate": "2023-09-24T06:30:00.000Z", "packages": [ { "depth": 3.5, "height": 2.8, "width": 4.2, "barcode": "PKG123" } ] "type": "TIME" ... } } } }