# Prepare Authorization or Check Saved Draft

> Perform Prepare Authorization or Check Saved Draft through Carelon Post Acute.

Source: [https://genhealth.ai/docs/workflows/integrations/carelon-post-acute/carelon_post_acute_prepare_authorization](https://genhealth.ai/docs/workflows/integrations/carelon-post-acute/carelon_post_acute_prepare_authorization)

Integration: [Carelon Post Acute](https://genhealth.ai/docs/workflows/integrations/carelon-post-acute.md)

- Handler: `carelon_post_acute_prepare_authorization`

- Connection type: `carelon_post_acute`

## Inputs

- `order_id` — Order Id (text, required)
  Required text value.
- `insurance_id` — Insurance Id (text, required)
  Required text value.
- `configuration` — Configuration (json, required)
  Required JSON value.
- `mode` — Mode (select)
  Optional selected identifier or value.
  Default: `"draft_only"`
  Options: Draft only ("draft_only"), Submit when ready ("submit_when_ready")

## Outputs

- `success` — Success
- `outcome` — Outcome
- `authorization_id` — Authorization Id
- `observed_status` — Observed Status
- `missing_document_reasons` — Missing Document Reasons
- `authorization_verified` — Authorization Verified
- `attachments_verified` — Attachments Verified
- `attachments_retained` — Attachments Retained
- `reason_code` — Reason Code
- `error` — Error
- `outcome_category` — Outcome Category

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": [
    "order_id",
    "insurance_id",
    "configuration"
  ],
  "properties": {
    "mode": {
      "enum": [
        "draft_only",
        "submit_when_ready"
      ],
      "type": "string",
      "default": "draft_only",
      "description": "Optional selected identifier or value.",
      "x-workflow-field-type": "select"
    },
    "order_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "insurance_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "configuration": {
      "description": "Required JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "error": {},
    "outcome": {},
    "success": {},
    "reason_code": {},
    "observed_status": {},
    "authorization_id": {},
    "outcome_category": {},
    "attachments_retained": {},
    "attachments_verified": {},
    "authorization_verified": {},
    "missing_document_reasons": {}
  },
  "additionalProperties": true
}
```
