---
title: "GET rentals pending on-rent (M2M)"
method: GET
path: "/machine-to-machine/rentals/pending-on-rent"
tags: ["Machine to Machine"]
---

# GET rentals pending on-rent (M2M)

`GET /machine-to-machine/rentals/pending-on-rent`

## Request

- Base URL: `https://api.equipmentshare.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equipmentshare.com/machine-to-machine/rentals/pending-on-rent`
- Auth: HTTP bearer

Returns 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.

## Response `200`

List of rentals pending on-rent, or an empty list if there are none.

## Other responses

- `401`: Unauthorized - valid machine Bearer token required.

## Changes

- **2026-10-14** `1a087ab36a2c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/equipmentshare/apis/es-api/changes/machine-to-machine/rentals/pending-on-rent/get.md)

---

[API](https://skmtc.dev/equipmentshare/apis/es-api.md) - [All operations](https://skmtc.dev/equipmentshare/apis/es-api/llms.txt) - [OpenAPI document](https://skmtc.dev/equipmentshare/apis/es-api/revisions/40651e1558ac?raw)
