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

# Outstanding order lines, one per line, for chasing a supplier about a specific part.



## OpenAPI

````yaml /api-reference/openapi.json get /open_purchase_orders
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes (ADR-014). 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: Routing
  - 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: Self verification
  - name: Setup
  - name: Tools on a job, and who has them out
  - name: Vendors and contracts
  - name: Work order execution
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /open_purchase_orders:
    get:
      tags:
        - Procurement
      summary: >-
        Outstanding order lines, one per line, for chasing a supplier about a
        specific part.
      parameters:
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.purchase_order_item_id
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.purchase_order_id
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.purchase_order_number
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.status'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.status_label'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.vendor_id'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.vendor_name'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.site_id'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.site_name'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.part_id'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.part_number'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.part_name'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.description'
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.quantity_ordered
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.quantity_received
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.quantity_outstanding
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.unit_of_measure
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.unit_price'
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.unit_price_currency_id
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.warehouse_id'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.due_on'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.promised_date'
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.overdue'
        - $ref: >-
            #/components/parameters/rowFilter.open_purchase_orders.days_until_due
        - $ref: '#/components/parameters/rowFilter.open_purchase_orders.acknowledged'
        - $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/open_purchase_orders'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/open_purchase_orders'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/open_purchase_orders'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/open_purchase_orders'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.open_purchase_orders.purchase_order_item_id:
      in: query
      name: purchase_order_item_id
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.purchase_order_id:
      in: query
      name: purchase_order_id
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.purchase_order_number:
      in: query
      name: purchase_order_number
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.status_label:
      in: query
      name: status_label
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.vendor_id:
      in: query
      name: vendor_id
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.vendor_name:
      in: query
      name: vendor_name
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.part_id:
      in: query
      name: part_id
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.part_number:
      in: query
      name: part_number
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.part_name:
      in: query
      name: part_name
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.description:
      in: query
      name: description
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.quantity_ordered:
      in: query
      name: quantity_ordered
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.quantity_received:
      in: query
      name: quantity_received
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.quantity_outstanding:
      in: query
      name: quantity_outstanding
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.unit_of_measure:
      in: query
      name: unit_of_measure
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.unit_price:
      in: query
      name: unit_price
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.unit_price_currency_id:
      in: query
      name: unit_price_currency_id
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.warehouse_id:
      in: query
      name: warehouse_id
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.due_on:
      in: query
      name: due_on
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.promised_date:
      in: query
      name: promised_date
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.overdue:
      in: query
      name: overdue
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.days_until_due:
      in: query
      name: days_until_due
      required: false
      schema:
        type: string
    rowFilter.open_purchase_orders.acknowledged:
      in: query
      name: acknowledged
      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:
    open_purchase_orders:
      description: >-
        Outstanding order lines, one per line, for chasing a supplier about a
        specific part.
      properties:
        acknowledged:
          format: boolean
          type: boolean
        days_until_due:
          format: integer
          type: integer
        description:
          format: character varying
          maxLength: 500
          type: string
        due_on:
          format: date
          type: string
        overdue:
          format: boolean
          type: boolean
        part_id:
          description: >-
            Note:

            This is a Foreign Key to `inventory_available.part_id`.<fk
            table='inventory_available' column='part_id'/>
          format: uuid
          type: string
        part_name:
          format: character varying
          maxLength: 250
          type: string
        part_number:
          format: character varying
          maxLength: 80
          type: string
        promised_date:
          format: date
          type: string
        purchase_order_id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        purchase_order_item_id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        purchase_order_number:
          format: character varying
          maxLength: 60
          type: string
        quantity_ordered:
          format: numeric
          type: number
        quantity_outstanding:
          format: numeric
          type: number
        quantity_received:
          format: numeric
          type: number
        site_id:
          description: >-
            Note:

            This is a Foreign Key to `site_settings.id`.<fk
            table='site_settings' column='id'/>
          format: uuid
          type: string
        site_name:
          format: character varying
          maxLength: 200
          type: string
        status:
          format: character varying
          maxLength: 60
          type: string
        status_label:
          format: character varying
          maxLength: 150
          type: string
        unit_of_measure:
          format: character varying
          maxLength: 30
          type: string
        unit_price:
          format: numeric
          type: number
        unit_price_currency_id:
          format: uuid
          type: string
        vendor_id:
          description: >-
            Note:

            This is a Foreign Key to `vendor_directory.vendor_id`.<fk
            table='vendor_directory' column='vendor_id'/>
          format: uuid
          type: string
        vendor_name:
          format: character varying
          maxLength: 200
          type: string
        warehouse_id:
          format: uuid
          type: string
      type: object

````

## Related topics

- [Purchase orders](/commercial/purchase-orders.md)
- [Inventory settings](/config/inventory.md)
- [Rules](/config/rules.md)
- [Custom fields](/config/custom-fields.md)
- [Sensors and condition alerts](/assets/sensors.md)
