# Assess Order Audit

> Perform Assess Order Audit through NikoHealth.

Source: [https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_assess_order_audit](https://genhealth.ai/docs/workflows/integrations/nikohealth/nikohealth_assess_order_audit)

Integration: [NikoHealth](https://genhealth.ai/docs/workflows/integrations/nikohealth.md)

- Handler: `nikohealth_assess_order_audit`

- Connection type: `nikohealth`

## Use in a workflow

Copy this discovered node config, fill params from the input contract, and validate the complete graph. Integration results are available as {{node_id.default.field}}. Check business success before dependent writes; completion alone does not prove business success.

```json

{
  "_group": "NikoHealth",
  "params": {
    "max_pages": 20,
    "page_size": 100,
    "expected_current_status": "Completed",
    "expected_previous_status": "Ready to Fulfill"
  },
  "handler": "nikohealth_assess_order_audit"
}

```

[Action contracts](https://genhealth.ai/docs/workflows/action-contracts.md) · [Run recovery](https://genhealth.ai/docs/workflows/operations.md)

## Inputs

- `order_id` — Order Id (expression, required)
  Required literal value or workflow expression.
- `order_status` — Order Status (expression, required)
  Required literal value or workflow expression.
- `order_tag_names` — Order Tag Names (json, required)
  Required JSON value.
- `pending_setup_tag_name` — Pending Setup Tag Name (text, required)
  Required text value.
- `external_actor_names` — External Actor Names (json)
  Optional JSON value.
- `audit_status_aliases` — Audit Status Aliases (json)
  Optional JSON value.
- `expected_previous_status` — Expected Previous Status (text)
  Optional text value.
  Default: `"Ready to Fulfill"`
- `expected_current_status` — Expected Current Status (text)
  Optional text value.
  Default: `"Completed"`
- `page_size` — Page Size (number)
  Optional numeric value.
  Default: `100`
- `max_pages` — Max Pages (number)
  Optional numeric value.
  Default: `20`

## Outputs

- `success` — Success
- `error` — Error
- `failure_category` — Failure Category
- `status` — Status
- `reason_codes` — Reason Codes
- `confirmed` — Confirmed
- `occurred` — Occurred
- `match_count` — Match Count
- `pages_fetched` — Pages Fetched

Output schema completeness: `best_effort_declared`

## Safety

- External effect: `write`
- Confirmation recommended: no
- Retry safe: no
- Dry run supported: no

## Schemas

These schemas are first-pass authoring guidance. Runtime validation remains authoritative.

### Input schema

```json
{
  "type": "object",
  "required": [
    "order_id",
    "order_status",
    "order_tag_names",
    "pending_setup_tag_name"
  ],
  "properties": {
    "order_id": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "max_pages": {
      "type": "number",
      "default": 20,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "page_size": {
      "type": "number",
      "default": 100,
      "description": "Optional numeric value.",
      "x-workflow-field-type": "number"
    },
    "order_status": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "order_tag_names": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    },
    "audit_status_aliases": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "external_actor_names": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "pending_setup_tag_name": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "expected_current_status": {
      "type": "string",
      "default": "Completed",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "expected_previous_status": {
      "type": "string",
      "default": "Ready to Fulfill",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "status": {},
    "success": {},
    "occurred": {},
    "confirmed": {},
    "match_count": {},
    "reason_codes": {},
    "pages_fetched": {},
    "failure_category": {}
  },
  "additionalProperties": true
}
```
