GET rentals pending on-rent (M2M)
Changed onReturns the rentals that should be moved to on_rent now, as a bare list of rental_id and asset_id (asset_id is null for part rentals). A rental is included when it has an asset or a part type, its drop-off delivery is confirmed or completed, its status is needs_approval, draft, pending or scheduled, the current time is between its start_date and end_date (exclusive), and, for a part rental, it has an active part assignment. The result is capped at 1000 rentals and is not paginated; the newest start dates come first (start_date descending, then rental_id descending). The list is read from a read replica, so it can briefly lag the primary database; that is harmless because putting an already on-rent rental on rent is a no-op. While the re-rent On Rent gate is on, a rental on a re-rent asset whose vendor details or vendor PO are missing, or a bulk re-rent whose vendor PO is missing, is left out and logged; it would only be rejected by the on-rent call.
Request
- Base URLhttps://api.equipmentshare.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Response
List of rentals pending on-rent, or an empty list if there are none.
Changes
- info
endpoint added
- info