---
title: "Analyze Results Endpoint"
method: POST
path: "/api/v1/analyze_results"
---

# Analyze Results Endpoint

`POST /api/v1/analyze_results`

## Request body

- AnalyzeResultsRequest
  - `line_items` LineItemInput[], required
    - `id` integer, nullable
    - `cancellation` boolean, nullable
    - `claim_type` string, required
    - `description` string, required
    - `early_childhood` boolean, nullable
    - `line_total` number, required
    - `quantity` number, required
    - `service_date_from` string, nullable
    - `service_date_to` string, nullable
    - `service_item_number` string, nullable
    - `service_type` string, nullable
    - `time_from` integer, nullable
    - `time_to` integer, nullable
    - `unit_price` number, nullable
    - `line_tax` number, nullable
    - `method` string, nullable
    - `line_total_valid` boolean, nullable
    - `gst_code` string, nullable
    - `fallback_data` object[], nullable
    - `has_business_violations` boolean, nullable
    - `business_violation_messages` string[], nullable
    - `business_violation_types` string[], nullable
    - `page_number` integer, nullable
    - `coordinates` object, nullable
  - `header` AnlalyzeResultsHeader, required
    - `NDIS_Participant_Number` union
      - string
      - integer
    - `invoice_data` InvoiceDataResults, required
      - `AMOUNT_DUE` number, nullable
      - `INVOICE_DUE_DATE` string, nullable
      - `INVOICE_RECEIPT_DATE` string, nullable
      - `INVOICE_RECEIPT_ID` string, nullable
      - `SUBTOTAL` number, nullable
      - `TAX` number, nullable
      - `TOTAL` number, nullable
      - `VENDOR_ABN_NUMBER` string, nullable
      - `total_valid` boolean, nullable
      - `BSB` string, nullable
      - `ACCOUNT_NUMBER` string, nullable
      - `VENDOR_NAME` string, nullable
    - `participant_id` string, nullable
    - `provider_id` string, nullable
    - `pm_provider_id` string, nullable
  - `langchain_run_id` string, required
  - `validate_business_rules` boolean, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/caresquare/apis/fastapi.md) · [All operations](https://skmtc.dev/caresquare/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/caresquare/fastapi/revisions/c9df874d8d59/schema)
