# PriceLabs

> Read listings, pricing, reservations and customization profiles from the PriceLabs Customer API.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/pricelabs

## Actions

### Get account customizations

Get account customizations.

**Inputs**

- Pms name (`pms_name`, text, required): Pms name.
- Customizations (`customizations`, text): Customizations.
- Toggled on (`toggled_on`, true/false): Toggled on.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "customizations": {
      "booking_factor": {
        "booking_factor_on": true,
        "booking_factor_value_select_option": "default"
      },
      "custom_seasonal_profile": {
        "custom_seasonal_profile": {},
        "custom_seasonal_profile_on": true
      },
      "day_of_week_adjustment": {
        "dow_factor_on": true,
        "dow_factor_value_fri": 1,
        "dow_factor_value_mon": 1,
        "dow_factor_value_sat": 1,
        "dow_factor_value_sun": 1,
        "dow_factor_value_thu": 1,
        "dow_factor_value_tue": 1,
        "dow_factor_value_wed": 1
      },
      "demand_factor": {
        "hotel_compset_type": "recommended",
        "hotel_wt": "fully_str",
        "tone_demand_factor": "conservative",
        "tone_demand_factor_on": true
      },
      "extra_person_fee": {
        "listing_extra_person_fee": 1,
        "listing_extra_person_fee_trigger": 1,
        "listing_extra_person_fee_type": "fixed",
        "update_listing_extra_person_on": true
      },
      "far_out_premium": {
        "far_out_premium_on": true,
        "far_out_premium_start": 1,
        "far_out_premium_step": 1,
        "far_out_premium_type": "none",
        "far_out_premium_value": 1
      },
      "last_minute_prices": {
        "last_min_factor_dfd": 1,
        "last_min_factor_on": true,
        "last_min_factor_type": "none",
        "last_min_factor_value": 1
      },
      "min_weekend_price": {
        "min_weekend_price": 1,
        "min_weekend_price_on": true,
        "min_weekend_price_type": "fixed"
      },
      "monthly_discount": {
        "monthly_discount": 1,
        "monthly_discount_on": true
      },
      "occupancy_based_adjustment": {
        "oba_profile_id": 1,
        "occupancy_based_discounts": {},
        "occupancy_based_discounts_on": true
      },
      "seasonality": {
        "seasonality_customization_on": true,
        "seasonality_type": "no_seasonality"
      },
      "weekly_discount": {
        "weekly_discount": 1,
        "weekly_discount_on": true
      }
    }
  }
}
```

### Get listing

Get listing.

**Inputs**

- Listing (`listing_id`, text, required): Listing id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "listings": [
      {
        "base": 1,
        "channel_listing_details": [
          {}
        ],
        "city_name": "example",
        "cleaning_fees": 1,
        "country": "example",
        "currency": "example",
        "group": "example",
        "group_id": 1,
        "id": "example",
        "isHidden": true,
        "last_date_pushed": "example",
        "last_refreshed_at": "example",
        "latitude": "example",
        "longitude": "example",
        "max": 1,
        "min": 1,
        "name": "example",
        "no_of_bedrooms": 1,
        "notes": "example",
        "pms": "example",
        "push_enabled": true,
        "state": "example",
        "subgroup": "example",
        "subgroup_id": 1,
        "tags": "example"
      }
    ]
  }
}
```

### Get listing customizations

Get listing customizations.

**Inputs**

- Listing (`listing_id`, text, required): Listing id.
- Pms name (`pms_name`, text, required): Pms name.
- Customizations (`customizations`, text): Customizations.
- Toggled on (`toggled_on`, true/false): Toggled on.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "customizations": {
      "booking_factor": {
        "booking_factor_on": true,
        "booking_factor_value_select_option": "default"
      },
      "custom_seasonal_profile": {
        "custom_seasonal_profile": {},
        "custom_seasonal_profile_on": true
      },
      "day_of_week_adjustment": {
        "dow_factor_on": true,
        "dow_factor_value_fri": 1,
        "dow_factor_value_mon": 1,
        "dow_factor_value_sat": 1,
        "dow_factor_value_sun": 1,
        "dow_factor_value_thu": 1,
        "dow_factor_value_tue": 1,
        "dow_factor_value_wed": 1
      },
      "demand_factor": {
        "hotel_compset_type": "recommended",
        "hotel_wt": "fully_str",
        "tone_demand_factor": "conservative",
        "tone_demand_factor_on": true
      },
      "extra_person_fee": {
        "listing_extra_person_fee": 1,
        "listing_extra_person_fee_trigger": 1,
        "listing_extra_person_fee_type": "fixed",
        "update_listing_extra_person_on": true
      },
      "far_out_premium": {
        "far_out_premium_on": true,
        "far_out_premium_start": 1,
        "far_out_premium_step": 1,
        "far_out_premium_type": "none",
        "far_out_premium_value": 1
      },
      "last_minute_prices": {
        "last_min_factor_dfd": 1,
        "last_min_factor_on": true,
        "last_min_factor_type": "none",
        "last_min_factor_value": 1
      },
      "min_weekend_price": {
        "min_weekend_price": 1,
        "min_weekend_price_on": true,
        "min_weekend_price_type": "fixed"
      },
      "monthly_discount": {
        "monthly_discount": 1,
        "monthly_discount_on": true
      },
      "occupancy_based_adjustment": {
        "oba_profile_id": 1,
        "occupancy_based_discounts": {},
        "occupancy_based_discounts_on": true
      },
      "seasonality": {
        "seasonality_customization_on": true,
        "seasonality_type": "no_seasonality"
      },
      "weekly_discount": {
        "weekly_discount": 1,
        "weekly_discount_on": true
      }
    }
  }
}
```

### Get listing metrics

Get listing metrics.

**Inputs**

- Listing (`listing_id`, text, required): Listing id.
- Pms name (`pms_name`, text, required): Pms name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "listing_level": {
        "adjusted_occupancy": {},
        "adr": {},
        "booking_pickup": {},
        "booking_pickup_unique": {},
        "bp_ratio": 1,
        "currency": "example",
        "goal_completion_adr": {},
        "goal_completion_occupancy": {},
        "goal_completion_rental_revenue": {},
        "goal_completion_revenue": {},
        "goal_completion_revpar": {},
        "last_booked_date": "example",
        "min_prices": {},
        "occupancy": {},
        "revenue": {},
        "revpar": {},
        "stly_adjusted_occupancy": {},
        "stly_adr": {},
        "stly_booking_pickup": {},
        "stly_booking_pickup_unique": {},
        "stly_occupancy": {},
        "stly_revenue": {},
        "stly_revpar": {},
        "stly_total_available": {},
        "stly_total_blocked": {},
        "stly_total_booked": {},
        "total_available": {},
        "total_blocked": {},
        "total_booked": {},
        "weekday_adjusted_occupancy": {},
        "weekday_total_occupancy": {},
        "weekend_adjusted_occupancy": {},
        "weekend_total_occupancy": {}
      },
      "market_level": {
        "adjusted_occupancy": {},
        "adr": {},
        "currency": "example",
        "occupancy": {}
      }
    }
  }
}
```

### Get listing optimizer summary

Get listing optimizer summary.

**Inputs**

- Subscribed (`subscribed`, true/false): Subscribed.
- Status (`status`, text): Status. One of: `pending`, `processing`, `completed`, `error`, `delisted`, `archived`, `deleted`.
- Listing IDs (`listing_ids`, list): Listing ids.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "has_optimizer_report": true,
      "listings": [
        {}
      ]
    }
  }
}
```

### Get listing prices

Get listing prices.

**Inputs**

- Listings (`listings`, list, required): Listings.

**Outputs**

- `data` (list): The response from PriceLabs.

**Example output**

```json
{
  "data": [
    {
      "currency": "example",
      "data": [
        {}
      ],
      "error": "example",
      "error_status": "LISTING_NOT_PRESENT",
      "group": "example",
      "id": "example",
      "last_refreshed_at": "example",
      "los_pricing": {
        "los_night": {}
      },
      "pms": "example"
    }
  ]
}
```

### Get neighborhood data

Get neighborhood data.

**Inputs**

- Listing (`listing_id`, text, required): Listing id.
- Pms (`pms`, text, required): Pms.
- Use default data (`use_default_data`, text): Use default data. One of: `true`, `false`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "Future Occ/New/Canc": {
        "Category": {},
        "Labels": [
          "example"
        ]
      },
      "Future Percentile Prices": {
        "Category": {},
        "Labels": [
          "example"
        ]
      },
      "Listings Used": 1,
      "Market KPI": {
        "Category": {},
        "Labels": [
          "example"
        ]
      },
      "Neighborhood Data Source": "example",
      "Summary Table Base Price": {
        "Category": {},
        "Labels": [
          "example"
        ]
      },
      "currency": "example",
      "lat": 1,
      "lng": 1,
      "source": "example"
    },
    "status": "example"
  }
}
```

### Get price push status

Get price push status.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "status": "example"
  }
}
```

### List actions

List actions.

**Inputs**

- Listing (`listing_id`, text): Listing id.
- Pms (`pms`, text): Pms.
- Mode (`mode`, text): Mode. One of: `visible`, `all`, `hidden`.

**Outputs**

- `data` (list): The response from PriceLabs.

**Example output**

```json
{
  "data": [
    {
      "actions": [
        {}
      ],
      "listing_details": {
        "listing_id": "example",
        "listing_name": "example",
        "pms": "example",
        "pms_display_name": "example"
      }
    }
  ]
}
```

### List customization profiles

List customization profiles.

**Inputs**

- Profile type (`profile_type`, text): Profile type. One of: `minstay`, `pricing`, `checkincheckout`, `oba`.
- Archived (`archived`, true/false): Archived.
- Name (`name`, text): Name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "profiles": {
      "checkincheckout": [
        {}
      ],
      "minstay": [
        {}
      ],
      "oba": [
        {}
      ],
      "pricing": [
        {}
      ]
    }
  }
}
```

### List group listings

List group listings.

**Inputs**

- Group ID (`group_id`, number): Group id.
- Subgroup ID (`subgroup_id`, number): Subgroup id.
- Page size (`page_size`, number): Page size.
- Page number (`page_number`, number): Page number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "group_id": 1,
    "listings": [
      {
        "listing_id": "example",
        "listing_name": "example",
        "pms": "example"
      }
    ],
    "message": "example",
    "pagination": {
      "page_number": 1,
      "page_size": 1,
      "total_pages": 1,
      "total_records": 1
    },
    "subgroup_id": 1
  }
}
```

### List group overrides

List group overrides.

**Inputs**

- Id (`id`, number, required): Id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": 1,
    "message": "example",
    "overrides": [
      {
        "base_price": 1,
        "check_in": "example",
        "check_in_check_out_enabled": "example",
        "check_out": "example",
        "created_at": "example",
        "currency": "example",
        "date": "example",
        "max_price": 1,
        "max_price_type": "fixed",
        "min_price": 1,
        "min_price_type": "fixed",
        "min_stay": 1,
        "price": "example",
        "price_type": "percent",
        "reason": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List groups

List groups.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "groups": [
      {
        "has_listings": true,
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```

### List listing overrides

List listing overrides.

**Inputs**

- Listing (`listing_id`, text, required): Listing id.
- Pms (`pms`, text, required): Pms.
- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "overrides": [
      {
        "base_price": 1,
        "check_in": "example",
        "check_in_check_out_enabled": "example",
        "check_out": "example",
        "created_at": "example",
        "currency": "example",
        "date": "example",
        "lead_time_expiry": 1,
        "max_price": 1,
        "max_price_type": "fixed",
        "min_price": 1,
        "min_price_type": "fixed",
        "min_stay": 1,
        "price": "example",
        "price_type": "percent",
        "reason": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List listings

List listings.

**Inputs**

- Skip hidden (`skip_hidden`, true/false): Skip hidden.
- Only syncing listings (`only_syncing_listings`, true/false): Only syncing listings.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "listings": [
      {
        "base": 1,
        "channel_listing_details": [
          {}
        ],
        "city_name": "example",
        "cleaning_fees": 1,
        "country": "example",
        "currency": "example",
        "group": "example",
        "group_id": 1,
        "id": "example",
        "isHidden": true,
        "last_date_pushed": "example",
        "last_refreshed_at": "example",
        "latitude": "example",
        "longitude": "example",
        "max": 1,
        "min": 1,
        "name": "example",
        "no_of_bedrooms": 1,
        "notes": "example",
        "pms": "example",
        "push_enabled": true,
        "state": "example",
        "subgroup": "example",
        "subgroup_id": 1,
        "tags": "example"
      }
    ]
  }
}
```

### List neighborhood sources

List neighborhood sources.

**Inputs**

- Listing (`listing_id`, text, required): Listing id.
- Pms (`pms`, text, required): Pms.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "current_source": "NL",
      "listing_id": "example",
      "pms": "example",
      "sources": [
        {}
      ]
    },
    "status": "example"
  }
}
```

### List rate plans

List rate plans.

**Inputs**

- Listing (`listing_id`, text, required): Listing id.
- Pms name (`pms_name`, text, required): Pms name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "rate_plans": {
      "id": "example",
      "name": "example",
      "pms": "example",
      "rateplans": {}
    }
  }
}
```

### List report templates

List report templates.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "templates": [
      {
        "createdByDisplayName": "example",
        "description": "example",
        "lastGeneratedDate": "example",
        "name": "example",
        "templateId": 1,
        "userId": 1
      }
    ]
  }
}
```

### List reservations

List reservations.

**Inputs**

- Pms (`pms`, text, required): Pms.
- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.
- Listing (`listing_id`, text): Listing id.
- Include hidden (`include_hidden`, text): Include hidden. One of: `true`, `false`.
- Booked start date (`booked_start_date`, date): Booked start date.
- Booked end date (`booked_end_date`, date): Booked end date.
- Include (`include`, text): Include.
- Limit (`limit`, number): Limit.
- Offset (`offset`, number): Offset.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "booked_date": "example",
        "booking_channel": "example",
        "booking_status": "booked",
        "cancelled_on": "example",
        "channelConfirmationCode": "example",
        "check_in": "example",
        "check_out": "example",
        "cleaning_fees": 1,
        "currency": "example",
        "guestName": "example",
        "guest_count": 1,
        "listing_id": "example",
        "listing_name": "example",
        "no_of_days": 1,
        "ota_commission": 1,
        "rental_revenue": 1,
        "reservation_id": "example",
        "total_cost": 1,
        "unit_id": "example"
      }
    ],
    "next_page": true,
    "pms_name": "example"
  }
}
```

### Search listings

Search listings.

**Inputs**

- Search query (`search_query`, text): Search query.
- Listing name (`listing_name`, text): Listing name.
- Listings (`listings`, text): Listings.
- Pms (`pms`, text): Pms.
- Cities (`cities`, text): Cities.
- Groups (`groups`, text): Groups.
- Subgroups (`subgroups`, text): Subgroups.
- Only syncing listings (`only_syncing_listings`, true/false): Only syncing listings.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "listings": [
      {
        "channel_listing_details": [
          {}
        ],
        "group_id": 1,
        "listing_id": "example",
        "listing_name": "example",
        "parent_key": 1,
        "pms_name": "example",
        "property_name": "example",
        "push_enabled": true
      }
    ],
    "total_listings": 1
  }
}
```
