> ## 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.

# The journals waiting to go to the ledger, and the ones already handed over.



## OpenAPI

````yaml /api-reference/openapi.json get /journal_batches
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:
  /journal_batches:
    get:
      tags:
        - Finance
      summary: >-
        The journals waiting to go to the ledger, and the ones already handed
        over.
      parameters:
        - $ref: '#/components/parameters/rowFilter.journal_batches.id'
        - $ref: >-
            #/components/parameters/rowFilter.journal_batches.depreciation_run_id
        - $ref: '#/components/parameters/rowFilter.journal_batches.disposal_id'
        - $ref: '#/components/parameters/rowFilter.journal_batches.book_id'
        - $ref: '#/components/parameters/rowFilter.journal_batches.book_code'
        - $ref: '#/components/parameters/rowFilter.journal_batches.book_name'
        - $ref: '#/components/parameters/rowFilter.journal_batches.company_id'
        - $ref: '#/components/parameters/rowFilter.journal_batches.company_code'
        - $ref: '#/components/parameters/rowFilter.journal_batches.reference'
        - $ref: '#/components/parameters/rowFilter.journal_batches.posted_on'
        - $ref: '#/components/parameters/rowFilter.journal_batches.status'
        - $ref: '#/components/parameters/rowFilter.journal_batches.line_count'
        - $ref: '#/components/parameters/rowFilter.journal_batches.total_debit'
        - $ref: '#/components/parameters/rowFilter.journal_batches.total_credit'
        - $ref: '#/components/parameters/rowFilter.journal_batches.exported_at'
        - $ref: '#/components/parameters/rowFilter.journal_batches.exported_by'
        - $ref: '#/components/parameters/rowFilter.journal_batches.exported_by_name'
        - $ref: '#/components/parameters/rowFilter.journal_batches.period_label'
        - $ref: '#/components/parameters/rowFilter.journal_batches.run_kind'
        - $ref: '#/components/parameters/rowFilter.journal_batches.disposed_asset_id'
        - $ref: >-
            #/components/parameters/rowFilter.journal_batches.disposed_asset_number
        - $ref: '#/components/parameters/rowFilter.journal_batches.disposal_date'
        - $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/journal_batches'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/journal_batches'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/journal_batches'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/journal_batches'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.journal_batches.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.journal_batches.depreciation_run_id:
      in: query
      name: depreciation_run_id
      required: false
      schema:
        type: string
    rowFilter.journal_batches.disposal_id:
      in: query
      name: disposal_id
      required: false
      schema:
        type: string
    rowFilter.journal_batches.book_id:
      in: query
      name: book_id
      required: false
      schema:
        type: string
    rowFilter.journal_batches.book_code:
      in: query
      name: book_code
      required: false
      schema:
        type: string
    rowFilter.journal_batches.book_name:
      in: query
      name: book_name
      required: false
      schema:
        type: string
    rowFilter.journal_batches.company_id:
      in: query
      name: company_id
      required: false
      schema:
        type: string
    rowFilter.journal_batches.company_code:
      in: query
      name: company_code
      required: false
      schema:
        type: string
    rowFilter.journal_batches.reference:
      in: query
      name: reference
      required: false
      schema:
        type: string
    rowFilter.journal_batches.posted_on:
      in: query
      name: posted_on
      required: false
      schema:
        type: string
    rowFilter.journal_batches.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.journal_batches.line_count:
      in: query
      name: line_count
      required: false
      schema:
        type: string
    rowFilter.journal_batches.total_debit:
      in: query
      name: total_debit
      required: false
      schema:
        type: string
    rowFilter.journal_batches.total_credit:
      in: query
      name: total_credit
      required: false
      schema:
        type: string
    rowFilter.journal_batches.exported_at:
      in: query
      name: exported_at
      required: false
      schema:
        type: string
    rowFilter.journal_batches.exported_by:
      in: query
      name: exported_by
      required: false
      schema:
        type: string
    rowFilter.journal_batches.exported_by_name:
      in: query
      name: exported_by_name
      required: false
      schema:
        type: string
    rowFilter.journal_batches.period_label:
      in: query
      name: period_label
      required: false
      schema:
        type: string
    rowFilter.journal_batches.run_kind:
      in: query
      name: run_kind
      required: false
      schema:
        type: string
    rowFilter.journal_batches.disposed_asset_id:
      in: query
      name: disposed_asset_id
      required: false
      schema:
        type: string
    rowFilter.journal_batches.disposed_asset_number:
      in: query
      name: disposed_asset_number
      required: false
      schema:
        type: string
    rowFilter.journal_batches.disposal_date:
      in: query
      name: disposal_date
      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:
    journal_batches:
      description: >-
        The journals waiting to go to the ledger, and the ones already handed
        over.
      properties:
        book_code:
          format: character varying
          maxLength: 40
          type: string
        book_id:
          description: >-
            Note:

            This is a Foreign Key to `depreciation_books.id`.<fk
            table='depreciation_books' column='id'/>
          format: uuid
          type: string
        book_name:
          format: character varying
          maxLength: 150
          type: string
        company_code:
          format: character varying
          maxLength: 50
          type: string
        company_id:
          description: >-
            Note:

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

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

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

            This is a Foreign Key to `asset_contracts.asset_id`.<fk
            table='asset_contracts' column='asset_id'/>
          format: uuid
          type: string
        disposed_asset_number:
          format: character varying
          maxLength: 80
          type: string
        exported_at:
          format: timestamp with time zone
          type: string
        exported_by:
          description: >-
            Note:

            This is a Foreign Key to `capex_invite_candidates.id`.<fk
            table='capex_invite_candidates' column='id'/>
          format: uuid
          type: string
        exported_by_name:
          format: character varying
          maxLength: 200
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        line_count:
          format: integer
          type: integer
        period_label:
          format: character varying
          maxLength: 30
          type: string
        posted_on:
          format: date
          type: string
        reference:
          format: character varying
          maxLength: 60
          type: string
        run_kind:
          format: character varying
          maxLength: 16
          type: string
        status:
          format: character varying
          maxLength: 14
          type: string
        total_credit:
          format: numeric
          type: number
        total_debit:
          format: numeric
          type: number
      type: object

````