# Uplisting

> Read properties, availability, calendars and bookings from Uplisting.

App · 7 actions. Web page: https://docs.lodol.com/docs/integrations/uplisting

## Actions

### Get a property

Get a property.

**Inputs**

- Property (`property_id`, text, required): Property ID.
- Include (`include`, text): Include.

**Outputs**

- `data` (object): The response from Uplisting.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created_at": "example",
        "name": "example",
        "type": "example"
      },
      "id": "example",
      "relationships": {
        "address": {
          "data": {}
        },
        "amenities": {
          "data": [
            {}
          ]
        },
        "photos": {
          "data": [
            {}
          ]
        }
      },
      "type": "example"
    },
    "included": [
      {
        "attributes": {},
        "id": "example",
        "type": "example"
      }
    ]
  }
}
```

### Get a property calendar

Get a property calendar.

**Inputs**

- Property (`property_id`, text, required): Property ID.
- Start date (`start_date`, date): Range start. Defaults to today.
- End date (`end_date`, date): Range end. Defaults to `from` + 1 year; clamped to at most 730 days after `from`.

**Outputs**

- `data` (object): The response from Uplisting.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "from": "example",
        "to": "example"
      },
      "id": "example",
      "relationships": {
        "days": {
          "data": [
            {}
          ]
        }
      },
      "type": "example"
    },
    "included": [
      {
        "attributes": {
          "date": "example"
        },
        "id": "example",
        "type": "example"
      }
    ]
  }
}
```

### Get account information

Get account information.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Uplisting.

**Example output**

```json
{
  "data": {
    "name": "example",
    "uid": "example"
  }
}
```

### List properties

List properties.

**Inputs**

- Include (`include`, text): Include.

**Outputs**

- `data` (object): The response from Uplisting.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "created_at": "example",
          "name": "example",
          "type": "example"
        },
        "id": "example",
        "relationships": {
          "address": {},
          "amenities": {},
          "channels": {},
          "photos": {}
        },
        "type": "example"
      }
    ],
    "included": [
      {
        "attributes": {},
        "id": "example",
        "type": "example"
      }
    ],
    "meta": {
      "cursor": "example",
      "has_more": true,
      "total_count": 1
    }
  }
}
```

### List property bookings

List bookings for a property by date range.

**Inputs**

- Property (`property_id`, text, required): Property whose bookings you want to list.
- Include (`include`, text): Include.
- Start date (`start_date`, date): Legacy API key only.
- End date (`end_date`, date): Legacy API key only.
- Page (`page`, number): Page number, starting at zero. At least 0.
- Limit (`limit`, number): Maximum bookings per page. From 1 to 50.

**Outputs**

- `data` (object): The response from Uplisting.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "status": "example"
        },
        "id": "example",
        "relationships": {},
        "type": "example"
      }
    ],
    "meta": {
      "total": 1,
      "total_pages": 1
    }
  }
}
```

### List webhook subscriptions

List webhook subscriptions.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Uplisting.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "created_at": "example",
          "event": "example",
          "target_url": "example",
          "updated_at": "example"
        },
        "id": "example",
        "type": "example"
      }
    ]
  }
}
```

### Search availability

Search availability.

**Inputs**

- Start date (`start_date`, date): Cannot be earlier than yesterday.
- End date (`end_date`, date): Must be after `check_in`.
- Number of guests (`number_of_guests`, number): Number of guests.
- Min price (`min_price`, number): Minimum nightly price; must be less than `max_price`.
- Max price (`max_price`, number): Maximum nightly price; must be greater than `min_price`.
- City (`city`, text): City.

**Outputs**

- `data` (object): The response from Uplisting.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "created_at": "example",
          "name": "example",
          "type": "example"
        },
        "id": "example",
        "relationships": {
          "address": {},
          "amenities": {},
          "photos": {}
        },
        "type": "example"
      }
    ],
    "included": [
      {
        "attributes": {},
        "id": "example",
        "type": "example"
      }
    ]
  }
}
```
