# Search Pre-Authorizations

> Perform Search Pre-Authorizations through Bonafide.

Source: [https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_pre_authorizations](https://genhealth.ai/docs/workflows/integrations/bonafide/bonafide_search_pre_authorizations)

Integration: [Bonafide](https://genhealth.ai/docs/workflows/integrations/bonafide.md)

- Handler: `bonafide_search_pre_authorizations`

- Connection type: `bonafide`

## 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": "Bonafide",
  "params": {
    "scope": "all"
  },
  "handler": "bonafide_search_pre_authorizations"
}

```

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

## Inputs

- `customer_id` — Customer Id (expression)
  Optional literal value or workflow expression.
- `created_by_employee_no` — Created By Employee No (expression)
  Optional literal value or workflow expression.
- `scope` — Scope (select)
  Optional selected identifier or value.
  Default: `"all"`
  Options: All ("all"), Pending only ("pending")
- `order_date_from` — Order Date From (expression)
  Optional literal value or workflow expression.
- `order_date_to` — Order Date To (expression)
  Optional literal value or workflow expression.

## Outputs

- `success` — Success
- `rows` — Rows
- `total_count` — Total Count
- `message` — Message
- `error` — Error
- `error_message` — Error Message

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": {
    "scope": {
      "enum": [
        "all",
        "pending"
      ],
      "type": "string",
      "default": "all",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "customer_id": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "order_date_to": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "order_date_from": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "created_by_employee_no": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "rows": {},
    "error": {},
    "message": {},
    "success": {},
    "total_count": {},
    "error_message": {}
  },
  "additionalProperties": true
}
```
