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

# List line items

> Returns a cursor-paginated list of line items (individual shipment charges) extracted from the invoice. Each line item is a single charge — a rate, surcharge, or adjustment — applied to one tracking number.



## OpenAPI

````yaml GET /v1/invoice-audits/{audit_id}/line-items
openapi: 3.1.0
info:
  title: Opereit Invoice Auditing API
  description: >-
    Public API for the Opereit Invoice Auditing product. Upload carrier
    contracts, run audits against incoming carrier invoices, and retrieve line
    items and findings.
  version: 1.0.0
servers:
  - url: https://api.opereit.com
    description: Production
security:
  - apiKey: []
paths:
  /v1/invoice-audits/{audit_id}/line-items:
    get:
      summary: List invoice audit line items
      description: >-
        Returns a cursor-paginated list of line items (individual shipment
        charges) extracted from the invoice. Each line item is a single charge —
        a rate, surcharge, or adjustment — applied to one tracking number.
      operationId: listInvoiceAuditLineItems
      parameters:
        - $ref: '#/components/parameters/AuditId'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
        - name: charge_type
          in: query
          description: Filter by the kind of charge.
          schema:
            type: string
            enum:
              - RATE
              - SURCHARGE
              - ADJUSTMENT
        - name: tracking_number
          in: query
          description: Return only line items associated with this tracking number.
          schema:
            type: string
        - name: has_finding
          in: query
          description: If `true`, return only line items that have at least one finding.
          schema:
            type: boolean
      responses:
        '200':
          description: Cursor-paginated list of line items.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - pagination
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/InvoiceLineItem'
                  pagination:
                    $ref: '#/components/schemas/CursorPagination'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    AuditId:
      name: audit_id
      in: path
      required: true
      description: ID of the invoice audit.
      schema:
        type: string
    Limit:
      name: limit
      in: query
      description: Number of items to return per request.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Cursor:
      name: cursor
      in: query
      description: Opaque cursor from a previous response. Omit on the first request.
      schema:
        type: string
  schemas:
    InvoiceLineItem:
      type: object
      description: >-
        A single charge from the carrier invoice — a rate, surcharge, or
        adjustment applied to one tracking number.
      required:
        - id
        - audit_id
        - tracking_number
        - charge_type
        - amount
        - has_finding
        - created_at
      properties:
        id:
          type: string
        audit_id:
          type: string
        tracking_number:
          type: string
          description: Carrier tracking number for the shipment.
        charge_description:
          type:
            - string
            - 'null'
          description: >-
            Free-text charge description from the invoice (e.g. `"Fuel
            surcharge"`).
        charge_type:
          type: string
          enum:
            - RATE
            - SURCHARGE
            - ADJUSTMENT
          description: |-
            Kind of charge.

            - `RATE`: base shipping rate.
            - `SURCHARGE`: add-on fee.
            - `ADJUSTMENT`: correction or credit.
        service_type:
          type:
            - string
            - 'null'
          description: Carrier service code applied to the shipment.
        amount:
          type: string
          description: Amount billed, as a decimal string.
          example: '12.50'
        weight:
          type:
            - string
            - 'null'
          description: Actual weight in kg, as a decimal string.
        billed_weight:
          type:
            - string
            - 'null'
          description: >-
            Billed (chargeable) weight in kg, as a decimal string. May differ
            from `weight` due to dimensional weight.
        container_type:
          type:
            - string
            - 'null'
          description: Container or packaging for the shipment.
        origin_country:
          type:
            - string
            - 'null'
          description: ISO 3166-1 alpha-2 origin country code.
        destination_country:
          type:
            - string
            - 'null'
          description: ISO 3166-1 alpha-2 destination country code.
        zone:
          type:
            - string
            - 'null'
          description: Carrier zone applied to the shipment, if any.
        has_finding:
          type: boolean
          description: Whether the audit produced at least one finding for this line item.
        created_at:
          type: string
          format: date-time
    CursorPagination:
      type: object
      required:
        - cursor
        - has_more
      properties:
        cursor:
          type:
            - string
            - 'null'
          description: >-
            Opaque cursor to use in the next request to fetch the next page.
            `null` if there are no more items.
        has_more:
          type: boolean
          description: Whether there are more items to fetch beyond the current page.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
  responses:
    Unauthorized:
      description: Authentication is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: http
      scheme: basic
      description: >-
        HTTP Basic Auth using your API key. Send `Authorization: Basic
        base64(key_id:key_secret)`.

````