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

# Find purchase order items

> Paginated purchase order items of the workspace with their received / accepted / matched quantities, optionally narrowed to `project_ids`. Used by the baseline screen to show which PO items procure the selected rows.



## OpenAPI

````yaml /openapi.yaml post /purchase_order_items/find_items
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /purchase_order_items/find_items:
    post:
      tags:
        - PurchaseOrderItem
      summary: Find purchase order items
      description: >-
        Paginated purchase order items of the workspace with their received /
        accepted / matched quantities, optionally narrowed to `project_ids`.
        Used by the baseline screen to show which PO items procure the selected
        rows.
      operationId: purchase_order_items#find_items
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyPurchaseOrderItemFindItems'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/purchase_order_item'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyPurchaseOrderItemFindItems:
      type: object
      properties:
        filter:
          type: object
          properties:
            project_ids:
              type: array
              description: Items of any of these projects.
              items:
                type: integer
            package_ids:
              type: array
              items:
                type: integer
            package_baseline_item_ids:
              type: array
              items:
                type: integer
            purchase_order_ids:
              type: array
              items:
                type: integer
            supplier_company_name:
              type: array
              items:
                type: string
            match_type:
              type: array
              items:
                type: string
                enum:
                  - two_way
                  - three_way
                  - four_way
            purchase_order_status:
              type: array
              description: >-
                Items of voided purchase orders are left out unless this
                includes `voided`.
              items:
                type: string
                enum:
                  - draft
                  - open
                  - closed
                  - cancelled
                  - voided
    purchase_order_item:
      type: object
      properties:
        id:
          type: integer
        project_id:
          type: integer
          description: >-
            The project this line procures for — the baseline row's project for
            linked items, the picked section's project for manual ones.
            Receipts, inspections, matches and invoice lines of the item carry
            it.
        purchase_order:
          type: object
          properties:
            id:
              type: integer
            label:
              type: string
            status:
              type: string
        baseline_item:
          type: object
          nullable: true
          description: >-
            The baseline row this item was created from (or re-linked to); null
            for manual items.
          properties:
            id:
              type: integer
            identifier:
              type: string
            name:
              type: string
              nullable: true
            package_id:
              type: integer
        package_id:
          type: integer
          description: >-
            The package the item counts for in Budget Analysis — the baseline
            row's, or the picked section's for a manual item.
        package_section_id:
          type: integer
          description: >-
            The section the item counts for in Budget Analysis — the baseline
            row's, or the picked one for a manual item.
        match_type:
          type: string
          enum:
            - two_way
            - three_way
            - four_way
        description:
          type: string
          nullable: true
        category_id:
          type: integer
          nullable: true
          description: >-
            The category the item was picked with (the row's for linked items).
            May no longer exist.
        category:
          type: string
          nullable: true
          description: >-
            Frozen category text — the row's for linked items; for a manual item
            the name its package committed for `category_id`, else the path at
            that time.
        unit_type:
          type: string
          nullable: true
        quantity:
          type: string
          example: '1000.00'
        unit_price:
          type: string
          example: '10.00'
        price_variance_percent:
          type: string
          nullable: true
          example: '2.0000'
          description: >-
            Max over-price in % of the PO unit price; null = not checked. With
            both price tolerances null, no over-price is allowed.
        quantity_variance_percent:
          type: string
          example: '0.0000'
        amount_variance_absolute:
          type: string
          nullable: true
          example: '50.00'
          description: Max over-price × quantity per invoice item; null = not checked.
        received_quantity:
          type: string
          description: Σ goods receipt quantity.
        accepted_quantity:
          type: string
          description: Σ accepted quantity of inspections.
        matched_quantity:
          type: string
          description: Σ matched invoice quantity.
        invoiced_quantity:
          type: string
          description: >-
            Σ quantity of the item's lines on non-cancelled invoices, matched or
            not. Above 0, match type and tolerances are frozen.
        position:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - project_id
        - purchase_order
        - package_id
        - package_section_id
        - category_id
        - match_type
        - quantity
        - unit_price
        - received_quantity
        - accepted_quantity
        - matched_quantity
        - invoiced_quantity
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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