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

# Reservations with who pays resolved to a name, what is reserved counted, and whether anything

>      on them could not be priced.



## OpenAPI

````yaml /api-reference/openapi.json get /bookings
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes. Reads are security_invoker views; writes
    are SECURITY DEFINER functions. Rebuilt wholesale on every deploy — it holds
    no data.
  version: 12.2.3
servers:
  - url: https://app.assetinfinity.ai/api
security: []
tags:
  - name: Signing in
  - name: Profile
  - name: Assets
  - name: Asset lifecycle
  - name: Work lifecycle
  - name: Maintenance
  - name: Inventory
  - name: Inventory detail
  - name: Procurement
  - name: Contracts
  - name: Workforce
  - name: Capacity
  - name: Dispatch
  - name: Tools
  - name: Inspections
  - name: Verification
  - name: Reliability
  - name: Parts demand
  - name: Sensors and meters
  - name: Map
  - name: Floor plans
  - name: Labels
  - name: Lost and found
  - name: Root cause analysis
  - name: Reports
  - name: Audit center
  - name: Activity
  - name: Notifications
  - name: Channels
  - name: Search
  - name: Copilot
  - name: Import
  - name: Files
  - name: Sync
  - name: Support
  - name: Admin
  - name: Access
  - name: Lookups
  - name: Read models
  - name: Branding
  - name: Custom fields
  - name: Form studio
  - name: Workflows
  - name: Workflow studio
  - name: Rules
  - name: Statuses and transitions
  - name: Currencies and locales
  - name: Work configuration
  - name: Asset configuration
  - name: Inventory configuration
  - name: Tool configuration
  - name: Workforce configuration
  - name: Vendor and contract configuration
  - name: Document configuration
  - name: Inspection configuration
  - name: Sites, locations and the organisation
  - name: Platform
  - name: Amendments
  - name: Asset clone
  - name: Asset components
  - name: Asset register
  - name: Asset transfer
  - name: Audit feed
  - name: Billing
  - name: Bookings
  - name: Budgets
  - name: Bulk jobs
  - name: Calibration history
  - name: Capex plans
  - name: Conversations
  - name: Costing
  - name: Currency
  - name: Dashboards
  - name: Directory sync
  - name: Document control
  - name: Document folders
  - name: Document tree
  - name: Documents
  - name: Energy
  - name: Extracts
  - name: Features
  - name: Feeds
  - name: File exchange
  - name: Filing exceptions
  - name: Finance
  - name: Inbound mail
  - name: Keys
  - name: Knowledge
  - name: Licence
  - name: List views
  - name: Locations
  - name: Mapping
  - name: Mcp
  - name: Mcp oauth
  - name: Mfa
  - name: Numbering
  - name: Permits
  - name: Readers
  - name: Reference
  - name: Reference columns
  - name: Reference entry
  - name: Release
  - name: Scim
  - name: Security streams
  - name: Self verification
  - name: Setup
  - name: Shutdown
  - name: Sso
  - name: Telegram
  - name: Tenant switch
  - name: The caller's own work
  - name: The checklist library
  - name: Tools on a job, and who has them out
  - name: Tray
  - name: Vendor spend forecast
  - name: Vendors and contracts
  - name: Visitors
  - name: Work order execution
  - name: Work sequencing
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /bookings:
    get:
      tags:
        - Bookings
      summary: >-
        Reservations with who pays resolved to a name, what is reserved counted,
        and whether anything
      description: '     on them could not be priced.'
      parameters:
        - $ref: '#/components/parameters/rowFilter.bookings.id'
        - $ref: '#/components/parameters/rowFilter.bookings.booking_number'
        - $ref: '#/components/parameters/rowFilter.bookings.booking_type_id'
        - $ref: '#/components/parameters/rowFilter.bookings.booking_type'
        - $ref: '#/components/parameters/rowFilter.bookings.booking_type_name'
        - $ref: '#/components/parameters/rowFilter.bookings.is_external'
        - $ref: '#/components/parameters/rowFilter.bookings.title'
        - $ref: '#/components/parameters/rowFilter.bookings.purpose'
        - $ref: '#/components/parameters/rowFilter.bookings.site_id'
        - $ref: '#/components/parameters/rowFilter.bookings.site_code'
        - $ref: '#/components/parameters/rowFilter.bookings.starts_at'
        - $ref: '#/components/parameters/rowFilter.bookings.ends_at'
        - $ref: '#/components/parameters/rowFilter.bookings.status'
        - $ref: '#/components/parameters/rowFilter.bookings.charge_to'
        - $ref: '#/components/parameters/rowFilter.bookings.billing_cycle'
        - $ref: '#/components/parameters/rowFilter.bookings.charged_to'
        - $ref: '#/components/parameters/rowFilter.bookings.cost_center_id'
        - $ref: '#/components/parameters/rowFilter.bookings.department_id'
        - $ref: '#/components/parameters/rowFilter.bookings.business_unit_id'
        - $ref: '#/components/parameters/rowFilter.bookings.project_id'
        - $ref: '#/components/parameters/rowFilter.bookings.customer_id'
        - $ref: '#/components/parameters/rowFilter.bookings.work_order_id'
        - $ref: '#/components/parameters/rowFilter.bookings.is_chargeable'
        - $ref: '#/components/parameters/rowFilter.bookings.estimated_cost'
        - $ref: '#/components/parameters/rowFilter.bookings.total_cost'
        - $ref: '#/components/parameters/rowFilter.bookings.deposit_amount'
        - $ref: '#/components/parameters/rowFilter.bookings.deposit_status'
        - $ref: '#/components/parameters/rowFilter.bookings.requested_by_user_id'
        - $ref: '#/components/parameters/rowFilter.bookings.requested_by'
        - $ref: '#/components/parameters/rowFilter.bookings.on_behalf_of_worker_id'
        - $ref: '#/components/parameters/rowFilter.bookings.issued_at'
        - $ref: '#/components/parameters/rowFilter.bookings.returned_at'
        - $ref: '#/components/parameters/rowFilter.bookings.closed_at'
        - $ref: '#/components/parameters/rowFilter.bookings.cancelled_at'
        - $ref: '#/components/parameters/rowFilter.bookings.cancelled_reason'
        - $ref: '#/components/parameters/rowFilter.bookings.tool_lines'
        - $ref: '#/components/parameters/rowFilter.bookings.asset_lines'
        - $ref: '#/components/parameters/rowFilter.bookings.location_lines'
        - $ref: '#/components/parameters/rowFilter.bookings.worker_lines'
        - $ref: '#/components/parameters/rowFilter.bookings.unpriced_charges'
        - $ref: '#/components/parameters/rowFilter.bookings.in_progress'
        - $ref: '#/components/parameters/rowFilter.bookings.upcoming'
        - $ref: '#/components/parameters/rowFilter.bookings.is_overdue'
        - $ref: '#/components/parameters/rowFilter.bookings.custom_fields'
        - $ref: '#/components/parameters/rowFilter.bookings.row_version'
        - $ref: '#/components/parameters/select'
        - $ref: '#/components/parameters/order'
        - $ref: '#/components/parameters/range'
        - $ref: '#/components/parameters/rangeUnit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/preferCount'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/bookings'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/bookings'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/bookings'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/bookings'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.bookings.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.bookings.booking_number:
      in: query
      name: booking_number
      required: false
      schema:
        type: string
    rowFilter.bookings.booking_type_id:
      in: query
      name: booking_type_id
      required: false
      schema:
        type: string
    rowFilter.bookings.booking_type:
      in: query
      name: booking_type
      required: false
      schema:
        type: string
    rowFilter.bookings.booking_type_name:
      in: query
      name: booking_type_name
      required: false
      schema:
        type: string
    rowFilter.bookings.is_external:
      in: query
      name: is_external
      required: false
      schema:
        type: string
    rowFilter.bookings.title:
      in: query
      name: title
      required: false
      schema:
        type: string
    rowFilter.bookings.purpose:
      in: query
      name: purpose
      required: false
      schema:
        type: string
    rowFilter.bookings.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.bookings.site_code:
      in: query
      name: site_code
      required: false
      schema:
        type: string
    rowFilter.bookings.starts_at:
      in: query
      name: starts_at
      required: false
      schema:
        type: string
    rowFilter.bookings.ends_at:
      in: query
      name: ends_at
      required: false
      schema:
        type: string
    rowFilter.bookings.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.bookings.charge_to:
      in: query
      name: charge_to
      required: false
      schema:
        type: string
    rowFilter.bookings.billing_cycle:
      in: query
      name: billing_cycle
      required: false
      schema:
        type: string
    rowFilter.bookings.charged_to:
      in: query
      name: charged_to
      required: false
      schema:
        type: string
    rowFilter.bookings.cost_center_id:
      in: query
      name: cost_center_id
      required: false
      schema:
        type: string
    rowFilter.bookings.department_id:
      in: query
      name: department_id
      required: false
      schema:
        type: string
    rowFilter.bookings.business_unit_id:
      in: query
      name: business_unit_id
      required: false
      schema:
        type: string
    rowFilter.bookings.project_id:
      in: query
      name: project_id
      required: false
      schema:
        type: string
    rowFilter.bookings.customer_id:
      in: query
      name: customer_id
      required: false
      schema:
        type: string
    rowFilter.bookings.work_order_id:
      in: query
      name: work_order_id
      required: false
      schema:
        type: string
    rowFilter.bookings.is_chargeable:
      in: query
      name: is_chargeable
      required: false
      schema:
        type: string
    rowFilter.bookings.estimated_cost:
      in: query
      name: estimated_cost
      required: false
      schema:
        type: string
    rowFilter.bookings.total_cost:
      in: query
      name: total_cost
      required: false
      schema:
        type: string
    rowFilter.bookings.deposit_amount:
      in: query
      name: deposit_amount
      required: false
      schema:
        type: string
    rowFilter.bookings.deposit_status:
      in: query
      name: deposit_status
      required: false
      schema:
        type: string
    rowFilter.bookings.requested_by_user_id:
      in: query
      name: requested_by_user_id
      required: false
      schema:
        type: string
    rowFilter.bookings.requested_by:
      in: query
      name: requested_by
      required: false
      schema:
        type: string
    rowFilter.bookings.on_behalf_of_worker_id:
      in: query
      name: on_behalf_of_worker_id
      required: false
      schema:
        type: string
    rowFilter.bookings.issued_at:
      in: query
      name: issued_at
      required: false
      schema:
        type: string
    rowFilter.bookings.returned_at:
      in: query
      name: returned_at
      required: false
      schema:
        type: string
    rowFilter.bookings.closed_at:
      in: query
      name: closed_at
      required: false
      schema:
        type: string
    rowFilter.bookings.cancelled_at:
      in: query
      name: cancelled_at
      required: false
      schema:
        type: string
    rowFilter.bookings.cancelled_reason:
      in: query
      name: cancelled_reason
      required: false
      schema:
        type: string
    rowFilter.bookings.tool_lines:
      in: query
      name: tool_lines
      required: false
      schema:
        type: string
    rowFilter.bookings.asset_lines:
      in: query
      name: asset_lines
      required: false
      schema:
        type: string
    rowFilter.bookings.location_lines:
      in: query
      name: location_lines
      required: false
      schema:
        type: string
    rowFilter.bookings.worker_lines:
      in: query
      name: worker_lines
      required: false
      schema:
        type: string
    rowFilter.bookings.unpriced_charges:
      in: query
      name: unpriced_charges
      required: false
      schema:
        type: string
    rowFilter.bookings.in_progress:
      in: query
      name: in_progress
      required: false
      schema:
        type: string
    rowFilter.bookings.upcoming:
      in: query
      name: upcoming
      required: false
      schema:
        type: string
    rowFilter.bookings.is_overdue:
      in: query
      name: is_overdue
      required: false
      schema:
        type: string
    rowFilter.bookings.custom_fields:
      in: query
      name: custom_fields
      required: false
      schema:
        type: string
    rowFilter.bookings.row_version:
      in: query
      name: row_version
      required: false
      schema:
        type: string
    select:
      description: Filtering Columns
      in: query
      name: select
      required: false
      schema:
        type: string
    order:
      description: Ordering
      in: query
      name: order
      required: false
      schema:
        type: string
    range:
      description: Limiting and Pagination
      in: header
      name: Range
      required: false
      schema:
        type: string
    rangeUnit:
      description: Limiting and Pagination
      in: header
      name: Range-Unit
      required: false
      schema:
        default: items
        type: string
    offset:
      description: Limiting and Pagination
      in: query
      name: offset
      required: false
      schema:
        type: string
    limit:
      description: Limiting and Pagination
      in: query
      name: limit
      required: false
      schema:
        type: string
    preferCount:
      description: Preference
      in: header
      name: Prefer
      required: false
      schema:
        enum:
          - count=none
        type: string
  schemas:
    bookings:
      description: >-
        Reservations with who pays resolved to a name, what is reserved counted,
        and whether anything
             on them could not be priced.
      properties:
        asset_lines:
          format: bigint
          type: integer
        billing_cycle:
          format: character varying
          maxLength: 20
          type: string
        booking_number:
          format: character varying
          maxLength: 60
          type: string
        booking_type:
          format: character varying
          maxLength: 60
          type: string
        booking_type_id:
          description: >-
            Note:

            This is a Foreign Key to `booking_types.id`.<fk
            table='booking_types' column='id'/>
          format: uuid
          type: string
        booking_type_name:
          format: character varying
          maxLength: 200
          type: string
        business_unit_id:
          description: >-
            Note:

            This is a Foreign Key to `business_units.id`.<fk
            table='business_units' column='id'/>
          format: uuid
          type: string
        cancelled_at:
          format: timestamp with time zone
          type: string
        cancelled_reason:
          format: character varying
          maxLength: 250
          type: string
        charge_to:
          format: character varying
          maxLength: 30
          type: string
        charged_to:
          format: character varying
          type: string
        closed_at:
          format: timestamp with time zone
          type: string
        cost_center_id:
          description: >-
            Note:

            This is a Foreign Key to `cost_centre_settings.id`.<fk
            table='cost_centre_settings' column='id'/>
          format: uuid
          type: string
        custom_fields:
          format: jsonb
        customer_id:
          format: uuid
          type: string
        department_id:
          description: >-
            Note:

            This is a Foreign Key to `department_settings.id`.<fk
            table='department_settings' column='id'/>
          format: uuid
          type: string
        deposit_amount:
          format: numeric
          type: number
        deposit_status:
          format: character varying
          type: string
        ends_at:
          format: timestamp with time zone
          type: string
        estimated_cost:
          format: numeric
          type: number
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        in_progress:
          format: boolean
          type: boolean
        is_chargeable:
          format: boolean
          type: boolean
        is_external:
          format: boolean
          type: boolean
        is_overdue:
          format: boolean
          type: boolean
        issued_at:
          format: timestamp with time zone
          type: string
        location_lines:
          format: bigint
          type: integer
        on_behalf_of_worker_id:
          description: >-
            Note:

            This is a Foreign Key to `assignable_workers.id`.<fk
            table='assignable_workers' column='id'/>
          format: uuid
          type: string
        project_id:
          description: >-
            Note:

            This is a Foreign Key to `project_settings.id`.<fk
            table='project_settings' column='id'/>
          format: uuid
          type: string
        purpose:
          format: text
          type: string
        requested_by:
          format: character varying
          maxLength: 200
          type: string
        requested_by_user_id:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        returned_at:
          format: timestamp with time zone
          type: string
        row_version:
          format: bigint
          type: integer
        site_code:
          format: character varying
          maxLength: 50
          type: string
        site_id:
          description: >-
            Note:

            This is a Foreign Key to `entry_currencies.for_site_id`.<fk
            table='entry_currencies' column='for_site_id'/>
          format: uuid
          type: string
        starts_at:
          format: timestamp with time zone
          type: string
        status:
          format: character varying
          maxLength: 30
          type: string
        title:
          format: character varying
          maxLength: 250
          type: string
        tool_lines:
          format: bigint
          type: integer
        total_cost:
          format: numeric
          type: number
        unpriced_charges:
          format: bigint
          type: integer
        upcoming:
          format: boolean
          type: boolean
        work_order_id:
          description: >-
            Note:

            This is a Foreign Key to
            `asset_maintenance_plans.next_work_order_id`.<fk
            table='asset_maintenance_plans' column='next_work_order_id'/>
          format: uuid
          type: string
        worker_lines:
          format: bigint
          type: integer
      type: object

````