# Get the long term discount settings of a listing.

`GET /preferences/{id}/long_term_discounts`

> Wheelhouse Pro API. Web version: https://docs.usewheelhouse.com/pro/reference/get-long-term-discounts · OpenAPI spec: https://docs.usewheelhouse.com/pro/openapi.yaml · Operation ID: `getLongTermDiscounts` · Tag: Listing Preferences · Index of all docs pages: https://docs.usewheelhouse.com/llms.txt

This endpoint can be used to fetch weekly and monthly discounts set up through Wheelhouse for a listing.

## Request

`GET https://api.usewheelhouse.com/ss_api/v1/preferences/{id}/long_term_discounts`

Authentication: send your integration API key in the `X-Integration-API-Key` header and your user API key in the `X-User-API-Key` header (see https://docs.usewheelhouse.com/pro/authentication.md).

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The integration partner's unique listing identifier. |

### Example request

```bash
curl -X GET 'https://api.usewheelhouse.com/ss_api/v1/preferences/{id}/long_term_discounts' \
  -H 'X-Integration-API-Key: <your integration API key>' \
  -H 'X-User-API-Key: <your user 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

Long term discounts

Body (`application/json`): object

- `weekly_discount` (integer, required, min: -100, max: 100): Whole-percentage discount applied for stays of 7 nights or more (`10` is a 10% discount). On listings that accept length-of-stay premiums, values are signed instead, so `-10` is a 10% discount and `10` a 10% premium.
- `monthly_discount` (integer, required, min: -100, max: 100): Whole-percentage discount applied for stays of 28 nights or more (`10` is a 10% discount). On listings that accept length-of-stay premiums, values are signed instead, so `-10` is a 10% discount and `10` a 10% premium.

Example:

```json
{
  "weekly_discount": 10,
  "monthly_discount": 20
}
```

### 401

API key authorization failed

### 403

Listing authorization failed

### 404

Listing not found
