# Sync Item Costs

> Perform Sync Item Costs through Brightree.

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

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

- Handler: `brightree_sync_item_costs`

- Connection type: `brightree`

## 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": "Brightree",
  "params": {
    "max_items": 200,
    "continue_on_error": true,
    "reobserve_after_days": 30
  },
  "handler": "brightree_sync_item_costs"
}

```

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

## Inputs

- `max_items` — Max Items (number, required)
  Required numeric value.
  Default: `200`
- `reobserve_after_days` — Reobserve After Days (number, required)
  Required numeric value.
  Default: `30`
- `continue_on_error` — Continue On Error (boolean, required)
  Required true-or-false value.
  Default: `true`

## Outputs

- `success` — Success
- `items_selected` — Items Selected
- `items_with_amount` — Items With Amount
- `items_without_amount` — Items Without Amount
- `items_not_found` — Items Not Found
- `lines_updated` — Lines Updated
- `locations_recorded` — Locations Recorded
- `locations_with_cost` — Locations With Cost
- `item_errors` — Item Errors
- `items_remaining` — Items Remaining
- `error` — Error

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": [
    "max_items",
    "reobserve_after_days",
    "continue_on_error"
  ],
  "properties": {
    "max_items": {
      "type": "number",
      "default": 200,
      "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"
    },
    "reobserve_after_days": {
      "type": "number",
      "default": 30,
      "description": "Required numeric value.",
      "x-workflow-field-type": "number"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "success": {},
    "item_errors": {},
    "lines_updated": {},
    "items_selected": {},
    "items_not_found": {},
    "items_remaining": {},
    "items_with_amount": {},
    "locations_recorded": {},
    "locations_with_cost": {},
    "items_without_amount": {}
  },
  "additionalProperties": true
}
```
