---
search:
  tags:
    - organization-reads
    - POST
seo:
  description: >-
    Price a private lesson booking exactly as… Reference for the POST
    /queries/quote_private_lesson endpoint in the Soljio Organization API.
sidebar:
  label: >-
    Price a private lesson booking exactly as create_private_lesson_booking
    will.
  badge: POST
title: Price a private lesson booking exactly as create_private_lesson_booking will.
type: openapi-operation
---
Price a private lesson booking exactly as create_private_lesson_booking will. An organization-scoped read using JSON filter arguments; requires private_lessons.read. Pagination cursors must be reused only with the same organization, operation and filters.

`POST /queries/quote_private_lesson`

**Request body** (`application/json`, required)

- `household_id` (string, required) — Opaque Soljio resource ID.
- `instructor_id` (string) — Opaque Soljio resource ID.
- `lesson_type_id` (string, required) — Opaque Soljio resource ID.
- `lessons` (object[], required)
- `location_id` (string, required) — Opaque Soljio resource ID.
- `replaces` (object)
- `now` (number, required)
- `override` (boolean, required)
- `use_credits` (boolean, required)

Request body example:

```json
{
  "household_id": "string",
  "instructor_id": "string",
  "lesson_type_id": "string",
  "lessons": [
    {
      "guest_emails": [
        "string"
      ],
      "participant_ids": [
        "string"
      ],
      "starts_at": "2019-08-24T14:15:22Z"
    }
  ],
  "location_id": "string",
  "replaces": {
    "appointment_ids": [
      "string"
    ],
    "booking_id": "string"
  },
  "now": 0,
  "override": true,
  "use_credits": true
}
```

**Responses**

- `200` — Successful read.
- `400` — invalid\_request
- `401` — unauthorized
- `403` — forbidden
- `404` — not\_found
- `405` — method\_not\_allowed
- `409` — conflict, idempotency\_conflict
- `413` — payload\_too\_large
- `415` — unsupported\_media\_type
- `429` — rate\_limited
- `500` — internal\_error

Response example, 200:

```json
{
  "data": {
    "available_credits": 0,
    "cancellation_hours": 0,
    "credits": 0,
    "currency": "string",
    "due_minor": 0,
    "instructor": {
      "id": "string",
      "name": "string"
    },
    "invitation_hours": 0,
    "lessons": [
      {
        "credits": 0,
        "due_amount_minor": 0,
        "ends_at": "2019-08-24T14:15:22Z",
        "problem": "string",
        "starts_at": "2019-08-24T14:15:22Z",
        "students": 0,
        "total_amount_minor": 0,
        "unit_amount_minor": 0
      }
    ],
    "needs_approval": true,
    "online_payments": true,
    "pack_ids": [
      "string"
    ],
    "pay_later_allowed": true,
    "timezone": "string",
    "total_minor": 0,
    "transfer_minor": 0,
    "waiver_needed": true
  },
  "request_id": "266ea41d-adf5-480b-af50-15b940c2b846"
}
```

Response example, 400:

```json
{
  "error": {
    "code": "invalid_request",
    "message": "The request is invalid."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 401:

```json
{
  "error": {
    "code": "unauthorized",
    "message": "A valid service token is required."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 403:

```json
{
  "error": {
    "code": "forbidden",
    "message": "The service token lacks a required scope."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 404:

```json
{
  "error": {
    "code": "not_found",
    "message": "The requested resource was not found."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 405:

```json
{
  "error": {
    "code": "method_not_allowed",
    "message": "The method is not supported for this resource."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 409:

```json
{
  "error": {
    "code": "conflict",
    "message": "The command conflicts with the current state."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 413:

```json
{
  "error": {
    "code": "payload_too_large",
    "message": "The request body exceeds the byte limit for this operation."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 415:

```json
{
  "error": {
    "code": "unsupported_media_type",
    "message": "Use application/json for command requests."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 429:

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests. Retry after the indicated delay."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```

Response example, 500:

```json
{
  "error": {
    "code": "internal_error",
    "message": "The request could not be completed."
  },
  "request_id": "00000000-0000-4000-8000-000000000001"
}
```
