# Get the last posted price per stay date for a listing.

`GET /listings/{listing_id}/last_posted_prices`

> Wheelhouse Revenue Management API. Web version: https://docs.usewheelhouse.com/rm/reference/rm-get-last-posted-prices · OpenAPI spec: https://docs.usewheelhouse.com/rm/openapi.yaml · Operation ID: `rmGetLastPostedPrices` · Tag: Calendar

Returns the last price posted to the channel for each stay date in the requested range.

- **Available nights**: the most recently posted price for that date.
- **Booked nights**: the last price posted at or before `block_time` (when the booking was recorded), reflecting the price that was live when the booking came in.

Dates with no posting history return `null` for `last_posted_price`.

Defaults to today through the maximum calendar horizon (1.5 years) when `start_date` and `end_date` are omitted. The total date range may not exceed 3 years.

## Request

`GET https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/last_posted_prices`

Authentication: send your RM API key in the `X-Integration-Api-Key` header (see https://docs.usewheelhouse.com/rm/authentication.md). Read-only keys can call this endpoint.

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `listing_id` | string | yes | The channel's unique listing identifier, or the Wheelhouse listing ID when `channel` is `wheelhouse`. |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `channel` | string | yes | Channel name the listing is on (the `channel` field of the [/listings](https://docs.usewheelhouse.com/rm/reference/rm-get-listings.md) response), or the literal `wheelhouse` to read `listing_id` as a Wheelhouse listing ID instead. See [Identifying Listings](https://docs.usewheelhouse.com/rm/concepts/listings.md). |
| `start_date` | string (date) | no | First stay date to include (YYYY-MM-DD). Defaults to today. |
| `end_date` | string (date) | no | Last stay date to include (YYYY-MM-DD). Defaults to the maximum calendar horizon (1.5 years from today). The total range (`start_date` to `end_date`) may not exceed 3 years. |

### Example request

```bash
curl -X GET 'https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/last_posted_prices?channel=<channel>' \
  -H 'X-Integration-Api-Key: <your RM API key>'
```

Only required parameters and body fields are filled in, with placeholder values. Add the optional ones you need from the lists above; some are required in combination, as their descriptions say.

## Responses

### 200

Array of last-posted-price entries ordered by stay date.

Body (`application/json`): array of object `last_posted_price_response`

The last price posted to the channel for one stay date.

- `stay_date` (string (date), required): The stay date.
- `unit_number` (integer, required): The unit number, 0 if the listing is single-unit.
- `last_posted_price` (integer, required, nullable): The last price posted to the channel for this stay date, or null if no price has been posted yet.

Example shape (generated from the schema; placeholder values, not a real response):

```json
[
  {
    "stay_date": "2026-01-01",
    "unit_number": 0,
    "last_posted_price": 0
  }
]
```

### 400

Date range exceeds the 3-year maximum.

### 401

API key authorization failed.

### 403

Listing authorization failed.

### 404

Listing not found.

### 406

The listing is inactive. See the **Inactive Listings** section in the overview.

Body (`application/json`): object

- `error` (string, example: `Listing '12345' is inactive`)

Example shape (generated from the schema; placeholder values, not a real response):

```json
{
  "error": "Listing '12345' is inactive"
}
```

### 429

Rate limit exceeded — the API key has sent too many requests. Wait before retrying. See the **Rate Limits** section in the overview for the recommended exponential backoff strategy.

Body (`application/json`): object

- `error` (string, example: `API token is at rate limit`)

Example shape (generated from the schema; placeholder values, not a real response):

```json
{
  "error": "API token is at rate limit"
}
```
