# Resolve Historical Order Costs

> Perform Resolve Historical Order Costs through Brightree.

Source: [https://genhealth.ai/docs/workflows/integrations/brightree/brightree_resolve_historical_order_costs](https://genhealth.ai/docs/workflows/integrations/brightree/brightree_resolve_historical_order_costs)

Integration: [Brightree](https://genhealth.ai/docs/workflows/integrations/brightree.md)

- Handler: `brightree_resolve_historical_order_costs`

- Connection type: `brightree`

## Inputs

- `max_orders` — Max Orders (number, required)
  Required numeric value.
  Default: `25`
- `continue_on_error` — Continue On Error (boolean, required)
  Required true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `candidates_selected` — Candidates Selected
- `candidates_remaining` — Candidates Remaining
- `cost_written` — Cost Written
- `no_received_po` — No Received Po
- `no_usable_810` — No Usable 810
- `shared_po_skipped` — Shared Po Skipped
- `order_errors` — Order Errors
- `shared_purchase_orders` — Shared Purchase Orders
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "max_orders",
    "continue_on_error"
  ],
  "properties": {
    "max_orders": {
      "type": "number",
      "default": 25,
      "description": "Required numeric value.",
      "x-workflow-field-type": "number"
    },
    "continue_on_error": {
      "type": "boolean",
      "default": true,
      "description": "Required true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "cost_written": {},
    "order_errors": {},
    "no_usable_810": {},
    "no_received_po": {},
    "shared_po_skipped": {},
    "candidates_selected": {},
    "candidates_remaining": {},
    "shared_purchase_orders": {}
  },
  "additionalProperties": true
}
```
