> ## Documentation Index
> Fetch the complete documentation index at: https://developers.scoutworks.app/llms.txt
> Use this file to discover all available pages before exploring further.

# List hire bookings

> Hire bookings, oldest first, with their asset, dates, status, amounts and the hiring organisation. With `hire.people:read` too, each also carries the hirer’s `hirerId`, `hirerName`, `hirerEmail` and `hirerPhone`. The purpose, notes, answers to the asset’s questions and payment provider ids are never returned. Pass `includeDeleted=true` to include removed bookings, and `updatedSince` to read only bookings that, or whose hirer, changed.



## OpenAPI

````yaml /api-reference/openapi/hire.json get /hire-bookings
openapi: 3.1.0
info:
  title: Scoutworks public API
  version: 1.32.0
  description: >-
    Read your Scout group’s data from your own tools: spreadsheets, scripts,
    Zapier or n8n, add members, waiting-list applications and draft events, keep
    its task boards up to date, and keep its books in step with your accounting
    tools. Every request is scoped to the group that owns the key.


    **Authentication.** Send a group API key as a Bearer token. Keys are created
    by a group admin and shown once.


    **Scopes.** Each operation names the scope it needs. Area scopes
    (`members:read`, `events:read`, `badges:read`, `waiting-list:read`,
    `tasks:read`, `accounting:read`, `expenses:read`, `suppliers:read`,
    `payments:read`, `gift-aid:read`, `adults:read`, `users:read`,
    `access:read`, `compliance:read`, `communications:read`, `hire:read`,
    `fundraising:read`, `moving-on:read`, `files:read`) open an area; a
    `.contacts`, `.people` or `.compliance` scope adds detail to that area’s
    responses. The `:write` scopes change data, as the admin who created the
    key: `members:write`, `waiting-list:write` and `events:write` add and update
    members, waiting-list applications and draft events, `tasks:write` adds and
    updates tasks, `accounting:write` changes the books and attaches receipts,
    and `files:write` uploads to the Knowledge Base, and `users:write` invites,
    changes, suspends and removes users, never a group admin, and `access:write`
    manages access policies and overrides, never an admin’s access. Uploads are
    virus scanned and count towards the group’s storage. A write never emails or
    notifies a family unless it sends `notify: true`. No scope moves money:
    nothing takes, changes, cancels or refunds a payment. Fields a key may not
    see are left out, not sent as null. Health, bank details and free-text notes
    are never available.


    **Pagination.** Lists return `{ data, nextCursor }`. Pass `nextCursor` back
    as `?cursor=`, with the same filters, until it is null. `limit` is 1 to 200.


    **Writing.** Send an `Idempotency-Key` with every `POST`, so a retry answers
    with the first record instead of making a second. Every record a write or a
    single-record `GET` returns carries an `ETag`: send it as `If-Match` on a
    `PATCH`, `PUT` or `DELETE` and a change made since answers 412
    `stale_write`. See https://developers.scoutworks.app/guides/writing-data.


    **Errors.** Every error is `{ error: { code, message } }`. Branch on `code`;
    `message` is for people and may change.


    **Compatibility.** We aim to change v1 only by addition: new endpoints, new
    optional parameters, new response fields and new enum values. Ignore fields
    you do not know and treat an unknown enum value as “other”. We will try to
    warn you before a breaking change, but one can still happen without notice,
    so check responses and fail loudly on an error. Changes are listed in the
    changelog at https://developers.scoutworks.app/changelog.


    **Rate limits.** 120 requests a minute per key. `RateLimit-*` headers report
    what is left. Writes and uploads have smaller limits of their own: see
    https://developers.scoutworks.app/guides/rate-limits.
servers:
  - url: https://api.scoutworks.app/api/v1
    description: Live
  - url: https://api-demo.scoutworks.app/api/v1
    description: Demo (sample data, reset weekly)
security:
  - bearerAuth: []
tags:
  - name: Hire
    description: What the group hires out and its bookings, read only.
paths:
  /hire-bookings:
    get:
      tags:
        - Hire
      summary: List hire bookings
      description: >-
        Hire bookings, oldest first, with their asset, dates, status, amounts
        and the hiring organisation. With `hire.people:read` too, each also
        carries the hirer’s `hirerId`, `hirerName`, `hirerEmail` and
        `hirerPhone`. The purpose, notes, answers to the asset’s questions and
        payment provider ids are never returned. Pass `includeDeleted=true` to
        include removed bookings, and `updatedSince` to read only bookings that,
        or whose hirer, changed.
      operationId: listHireBookings
      parameters:
        - name: cursor
          in: query
          required: false
          description: >-
            Opaque. Pass the `nextCursor` of the previous page, with the same
            filters, to get the next one. Do not build or parse it.
          schema:
            type: string
            minLength: 1
            maxLength: 512
        - name: limit
          in: query
          required: false
          description: Page size, 1 to 200. Defaults to 50.
          schema:
            default: 50
            type: integer
            minimum: 1
            maximum: 200
        - name: status
          in: query
          required: false
          description: Only bookings in this status.
          schema:
            type: string
            enum:
              - pending
              - confirmed
              - awaiting_inspection
              - completed
              - cancelled
        - name: assetId
          in: query
          required: false
          description: Only bookings of this asset.
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        - name: includeDeleted
          in: query
          required: false
          description: >-
            With `true`, deleted records come back too, each with `deletedAt`
            set, so a sync can remove its copy. Defaults to `false`.
          schema:
            type: string
            enum:
              - 'true'
              - 'false'
        - name: updatedSince
          in: query
          required: false
          description: >-
            Only records that changed at or after this time. Pass the previous
            walk’s `nextUpdatedSince`. Records that were deleted or left the
            list are reported only where the list takes `includeDeleted=true`;
            elsewhere, run a full read, without `updatedSince`, at least once a
            week.
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1HireBookingPage'
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
        '400':
          description: >-
            A query parameter, cursor or request body is not acceptable
            (`invalid_request`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '401':
          description: >-
            No API key, or one that is unknown, revoked or expired
            (`invalid_api_key`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '403':
          description: The key lacks the scope this operation needs (`insufficient_scope`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '429':
          description: Too many requests; wait `retryAfter` seconds (`rate_limited`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before trying again.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
        '500':
          description: Our fault; quote `errorRef` to support (`internal_error`).
          headers:
            RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests left in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the window resets.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1Error'
      security:
        - bearerAuth:
            - hire:read
components:
  schemas:
    V1HireBookingPage:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/V1HireBooking'
        nextCursor:
          description: Pass as `?cursor=` for the next page. Null on the last. Opaque.
          type:
            - string
            - 'null'
        nextUpdatedSince:
          description: >-
            Only with `updatedSince`. Pass it as `updatedSince` on your next
            sync. It is a little before this walk began, so a record changed
            while you were paging is read again next time, never missed.
          type: string
          format: date-time
      required:
        - data
        - nextCursor
    V1Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - invalid_api_key
                - insufficient_scope
                - invalid_request
                - subscription_required
                - not_found
                - conflict
                - period_closed
                - source_locked
                - over_refund
                - possible_duplicate
                - invalid_transition
                - admin_protected
                - stale_write
                - insufficient_stock
                - not_available
                - not_downloadable
                - file_too_large
                - storage_full
                - unsupported_file_type
                - file_infected
                - scan_unavailable
                - service_unavailable
                - rate_limited
                - internal_error
            message:
              type: string
          required:
            - code
            - message
        errorRef:
          description: 'On a 500: a reference to quote to Scoutworks support.'
          type: string
        retryAfter:
          description: 'On a 429: seconds to wait before trying again.'
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        matchingIds:
          description: >-
            On a 409 `possible_duplicate`: the ids of the records this one looks
            like, which `GET /members/{memberId}` or `GET
            /waiting-list/{entryId}` reads.
          type: array
          items:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      required:
        - error
    V1HireBooking:
      type: object
      properties:
        id:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        reference:
          type: string
          description: The booking’s reference in Scoutworks.
        assetId:
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
          description: The asset booked, from `GET /hire-assets`.
        status:
          type: string
          enum:
            - pending
            - confirmed
            - awaiting_inspection
            - completed
            - cancelled
          description: >-
            `awaiting_inspection` once the hire has ended and the group has
            still to check the asset. More values may be added.
        source:
          type: string
          enum:
            - admin
            - portal
          description: >-
            `portal` when the hirer booked on the group’s public hire page,
            `admin` when a leader added it in Scoutworks.
        startAt:
          type: string
          format: date-time
          description: A UTC timestamp, ISO 8601.
        endAt:
          type: string
          format: date-time
          description: A UTC timestamp, ISO 8601.
        expectedAttendees:
          anyOf:
            - type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            - type: 'null'
        organisationName:
          description: >-
            The organisation hiring, as the hirer gave it. Null for a private
            hirer who gave none.
          type:
            - string
            - 'null'
        hirerType:
          type: string
          enum:
            - scout_group
            - community
            - private
            - corporate
            - other
          description: What kind of hirer it is. More values may be added.
        totalAmount:
          $ref: '#/components/schemas/V1Money'
        depositAmount:
          $ref: '#/components/schemas/V1Money'
        damageDepositAmount:
          $ref: '#/components/schemas/V1Money'
        damageDepositRetainedAmount:
          anyOf:
            - $ref: '#/components/schemas/V1Money'
            - type: 'null'
        depositPaidAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        balancePaidAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        damageDepositHeldAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        damageDepositReturnedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        confirmedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        completedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        cancelledAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
        createdAt:
          type: string
          format: date-time
          description: A UTC timestamp, ISO 8601.
        updatedAt:
          type: string
          format: date-time
          description: The later of the booking’s and its hirer’s last change.
        deletedAt:
          anyOf:
            - type: string
              format: date-time
              description: A UTC timestamp, ISO 8601.
            - type: 'null'
          description: Set when the booking was removed. Only with `includeDeleted`.
        hirerId:
          description: The hirer’s id. Only with the `hire.people:read` scope.
          type: string
          format: uuid
          pattern: >-
            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        hirerName:
          description: The hirer’s name. Only with the `hire.people:read` scope.
          type: string
        hirerEmail:
          description: The hirer’s email address. Only with the `hire.people:read` scope.
          type: string
        hirerPhone:
          description: The hirer’s phone number. Only with the `hire.people:read` scope.
          type:
            - string
            - 'null'
      required:
        - id
        - reference
        - assetId
        - status
        - source
        - startAt
        - endAt
        - expectedAttendees
        - organisationName
        - hirerType
        - totalAmount
        - depositAmount
        - damageDepositAmount
        - damageDepositRetainedAmount
        - depositPaidAt
        - balancePaidAt
        - damageDepositHeldAt
        - damageDepositReturnedAt
        - confirmedAt
        - completedAt
        - cancelledAt
        - createdAt
        - updatedAt
        - deletedAt
      description: >-
        A booking of one asset. `totalAmount` is the hire charge;
        `depositAmount` is the part of it due up front, and
        `damageDepositAmount` is a returnable deposit on top.
        `damageDepositRetainedAmount` is what the group kept back when it
        returned the damage deposit, null when it kept nothing.
    V1Money:
      type: string
      pattern: ^-?\d+\.\d{2}$
      description: >-
        Pounds, as a decimal string with two places: `"12.50"`. Never a float. A
        refund or contra entry is negative.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A group API key, sent as `Authorization: Bearer sw_live_…`. Keys from
        staging and the demo start `sw_test_` instead. A group admin creates
        keys in Settings → Integrations → API keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.