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

# List goods receipt items

> Paginated goods receipts of the workspace, newest delivery first, each with its inspection.



## OpenAPI

````yaml /openapi.yaml get /goods_receipt_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:
  /goods_receipt_items:
    get:
      tags:
        - GoodsReceiptItem
      summary: List goods receipt items
      description: >-
        Paginated goods receipts of the workspace, newest delivery first, each
        with its inspection.
      operationId: goods_receipt_items#index
      parameters:
        - name: project_ids[]
          in: query
          required: false
          schema:
            type: array
            items:
              type: integer
        - name: purchase_order_item_ids[]
          in: query
          required: false
          schema:
            type: array
            items:
              type: integer
        - name: purchase_order_ids[]
          in: query
          required: false
          schema:
            type: array
            items:
              type: integer
        - name: received_from
          in: query
          required: false
          schema:
            type: string
            format: date
        - name: received_to
          in: query
          required: false
          schema:
            type: string
            format: date
        - name: page
          in: query
          required: false
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/goods_receipt_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:
    goods_receipt_item:
      type: object
      properties:
        id:
          type: integer
        project_id:
          type: integer
          description: The project of the receipt's purchase order item.
        purchase_order_item:
          type: object
          properties:
            id:
              type: integer
            description:
              type: string
              nullable: true
            match_type:
              type: string
              enum:
                - two_way
                - three_way
                - four_way
            purchase_order:
              type: object
              properties:
                id:
                  type: integer
                label:
                  type: string
        received_quantity:
          type: string
          example: '400.00'
        received_at:
          type: string
          format: date
        notes:
          type: string
          nullable: true
        attachments:
          type: array
          description: Delivery note, progress certificate, timesheet, ... Newest first.
          items:
            $ref: '#/components/schemas/attachment'
        inspection:
          type: object
          nullable: true
          properties:
            id:
              type: integer
            accepted_quantity:
              type: string
            rejected_quantity:
              type: string
            inspected_at:
              type: string
              format: date
            notes:
              type: string
              nullable: true
            attachments:
              type: array
              description: Newest first.
              items:
                $ref: '#/components/schemas/attachment'
        created_by_id:
          type: integer
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - project_id
        - purchase_order_item
        - received_quantity
        - received_at
        - attachments
    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
    attachment:
      type: object
      description: >-
        A file attached to a procurement document (purchase order, supplier
        invoice, goods receipt or inspection), a project or a baseline row.
      properties:
        id:
          type: integer
        filename:
          type: string
          description: The name the file was uploaded with.
        content_type:
          type: string
          example: application/pdf
        byte_size:
          type: integer
        url:
          type: string
          description: >-
            Download URL. On private storage a signed URL that serves the file
            inline under its filename.
        created_by_id:
          type: integer
          nullable: true
        created_at:
          type: string
          format: date-time
        deleted_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            When it was removed from its document. Documents list only files
            that are not removed; a purchase order revision lists the files it
            had, removed ones included (their `url` still works).
      required:
        - id
        - filename
        - content_type
        - byte_size
        - url
        - created_at
  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.