# Search Receipt Invoices

> Perform Search Receipt Invoices through Brightree.

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

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

- Handler: `brightree_search_receipt_invoices`

- Connection type: `brightree`

## Inputs

- `deposit_key` — Deposit Key (expression)
  Optional literal value or workflow expression.
- `receipt_key` — Receipt Key (expression)
  Optional literal value or workflow expression.
- `search_criteria` — Search Criteria (expression)
  Optional literal value or workflow expression.
- `exclude_zero_balances` — Exclude Zero Balances (boolean)
  Optional true-or-false value.
  Default: `true`
- `include_patient` — Include Patient (boolean)
  Optional true-or-false value.
  Default: `true`
- `include_insurance` — Include Insurance (boolean)
  Optional true-or-false value.
  Default: `true`
- `include_facility` — Include Facility (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `deposit_key` — Deposit Key
- `receipt_key` — Receipt Key
- `invoices` — Invoices
- `count` — Count
- `message` — Message
- `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",
  "properties": {
    "deposit_key": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "receipt_key": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "include_patient": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "search_criteria": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "include_facility": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "include_insurance": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "exclude_zero_balances": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "count": {},
    "error": {},
    "message": {},
    "invoices": {},
    "deposit_key": {},
    "receipt_key": {}
  },
  "additionalProperties": true
}
```
