# Log Prior Authorization

> Perform Log Prior Authorization through Brightree.

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

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

- Handler: `brightree_log_prior_authorization`

- 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": {
    "dry_run": false,
    "log_par": true
  },
  "handler": "brightree_log_prior_authorization"
}

```

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

## Inputs

- `sales_order_key` — Sales Order Key (expression, required)
  Required literal value or workflow expression.
- `sales_order_detail_keys` — Sales Order Detail Keys (expression, required)
  Required literal value or workflow expression.
- `par_number` — Par Number (expression, required)
  Required literal value or workflow expression.
- `initial_date` — Initial Date (expression)
  Optional literal value or workflow expression.
- `expiration_date` — Expiration Date (expression)
  Optional literal value or workflow expression.
- `log_par` — Log Par (boolean)
  Optional true-or-false value.
  Default: `true`
- `dry_run` — Dry Run (boolean)
  Optional true-or-false value.
  Default: `false`

## Outputs

- `success` — Success
- `dry_run` — Dry Run
- `sales_order_key` — Sales Order Key
- `par_number` — Par Number
- `initial_date` — Initial Date
- `expiration_date` — Expiration Date
- `items_requested` — Items Requested
- `items_logged` — Items Logged
- `items` — Items
- `message` — Message
- `error` — Error

Output schema completeness: `best_effort_declared`

## Safety

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

## Schemas

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

### Input schema

```json
{
  "type": "object",
  "required": [
    "sales_order_key",
    "sales_order_detail_keys",
    "par_number"
  ],
  "properties": {
    "dry_run": {
      "type": "boolean",
      "default": false,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "log_par": {
      "type": "boolean",
      "default": true,
      "description": "Optional true-or-false value.",
      "x-workflow-field-type": "boolean"
    },
    "par_number": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "initial_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "expiration_date": {
      "description": "Optional literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "sales_order_key": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    },
    "sales_order_detail_keys": {
      "description": "Required literal value or workflow expression.",
      "x-workflow-field-type": "expression"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "items": {},
    "dry_run": {},
    "message": {},
    "success": {},
    "par_number": {},
    "initial_date": {},
    "items_logged": {},
    "expiration_date": {},
    "items_requested": {},
    "sales_order_key": {}
  },
  "additionalProperties": true
}
```
