# Pricelabs pricing

Prices from PriceLabs, for units priced by PriceLabs

Endpoint: `https://api.bookingmood.com/v1/pricelabs_pricing`, supporting `GET`. Authenticate with the header `Authorization: Bearer YOUR_API_KEY` (see [authentication](https://www.bookingmood.com/fr-FR/api-reference/authentication.md)).

## The pricelabs pricing object

| Attribute | Type | Description |
| --- | --- | --- |
| `product_id` | `uuid` | Identifier of the related unit. References [`products.id`](https://www.bookingmood.com/fr-FR/api-reference/products.md). |
| `created_at` | `timestamp with time zone` | Creation timestamp. Read-only: set by the database. |
| `dirty` | `boolean` | Whether the prices still need to be exported to PriceLabs. |
| `entries` | `Array<PriceLabsPricingEntry>` | Pricing definitions per interval. |
| `exported_at` | `timestamp with time zone` | Timestamp at which the prices were last exported to PriceLabs. |
| `imported_at` | `timestamp with time zone` | Timestamp at which the prices were last imported from PriceLabs. |
| `number_of_bedrooms` | `integer` | Number of bedrooms of the unit. |
| `pricelabs_email` | `text` | Email address of the PriceLabs account. |

```json
{
  "product_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2026-10-30T22:25:33.644Z",
  "dirty": false,
  "entries": [
    {
      "check_in": true,
      "check_out": true,
      "extra_person_fee_trigger": 2,
      "extra_person_fee": 20,
      "intervals": "[2024-01-01,2024-12-31)",
      "min_stay": 1,
      "rates": [
        {
          "los": 1,
          "price": 100
        },
        {
          "los": 2,
          "price": 180
        },
        {
          "los": 3,
          "price": 250
        },
        {
          "los": 4,
          "price": 300
        },
        {
          "los": 5,
          "price": 350
        },
        {
          "los": 6,
          "price": 400
        },
        {
          "los": 7,
          "price": 450
        },
        {
          "los": 14,
          "price": 500
        }
      ]
    }
  ],
  "exported_at": "2026-10-30T22:25:33.644Z",
  "imported_at": "2026-10-30T22:25:33.644Z",
  "number_of_bedrooms": 1,
  "pricelabs_email": "guest@example.com"
}
```

### Types

```typescript
type PriceLabsPricingEntry = {
  check_in: boolean;
  check_out: boolean;
  extra_person_fee: number;
  extra_person_fee_trigger: number;
  intervals: string;
  min_stay: number;
  rates: Array<{
    los: number;
    price: number;
  }>;
};
```

### Related resources

Embed related resources with the [`select` parameter](https://www.bookingmood.com/fr-FR/api-reference/selecting.md), e.g. `select=*,products(*)`. Resources related through more than one column need the column as a hint, like `table!column(*)`.

| Embed | Type | Description |
| --- | --- | --- |
| `products(*)` | `object \| null` | The [product](https://www.bookingmood.com/fr-FR/api-reference/products.md) referenced by `product_id`. |

## List pricelabs pricing

`GET /v1/pricelabs_pricing`

Filter on any attribute with `column=operator.value` (see [filtering](https://www.bookingmood.com/fr-FR/api-reference/filtering.md)). Choose columns and embed related resources with `select` (see [selecting](https://www.bookingmood.com/fr-FR/api-reference/selecting.md)), and sort and paginate with `order`, `limit` and `offset` (see [sorting and pagination](https://www.bookingmood.com/fr-FR/api-reference/sorting-pagination.md)).

```bash
curl -X GET "https://api.bookingmood.com/v1/pricelabs_pricing?select=*&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Responses:

- `200`: A list of pricelabs pricing with the selected columns. `206` when the list is a partial range.
- `400`: The request is malformed, for example an unknown column or an invalid filter.
- `401`: The API key is missing or invalid.

Errors have a JSON body with a `code`, `message`, `details` and `hint`. See the [introduction](https://www.bookingmood.com/fr-FR/api-reference.md) for more on errors. The full API is described by the OpenAPI spec at https://api.bookingmood.com/v1/openapi.json.
