# Correlate And Merge Intake Document

> Perform Correlate And Merge Intake Document through Dynasplint.

Source: [https://genhealth.ai/docs/workflows/integrations/dynasplint/dynasplint_merge_intake_document](https://genhealth.ai/docs/workflows/integrations/dynasplint/dynasplint_merge_intake_document)

Integration: [Dynasplint](https://genhealth.ai/docs/workflows/integrations/dynasplint.md)

- Handler: `dynasplint_merge_intake_document`

## Inputs

- `order_candidate` — Order Candidate (json)
  Optional JSON value.
- `document_id` — Document Id (text, required)
  Required text value.
- `gmail_message_id` — Gmail Message Id (text, required)
  Required text value.
- `attachment_sha256` — Attachment Sha256 (text, required)
  Required text value.
- `external_customer_id` — External Customer Id (text)
  Optional text value.
- `external_order_id` — External Order Id (text)
  Optional text value.
- `external_identity_evidence` — External Identity Evidence (json)
  Optional JSON value.

## Outputs

- `success` — Success
- `status` — Status
- `aggregate_id` — Aggregate Id
- `source_id` — Source Id
- `duplicate` — Duplicate
- `ready_to_verify` — Ready To Verify
- `blockers` — Blockers
- `review_reasons` — Review Reasons
- `aggregate_review_reasons` — Aggregate Review Reasons
- `accepted_field_paths` — Accepted Field Paths
- `conflicting_field_paths` — Conflicting Field Paths
- `external_customer_id` — External Customer Id
- `external_order_id` — External Order Id
- `approved_external_order_id` — Approved External Order Id
- `order_candidate` — Order Candidate

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": [
    "document_id",
    "gmail_message_id",
    "attachment_sha256"
  ],
  "properties": {
    "document_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "order_candidate": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    },
    "gmail_message_id": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "attachment_sha256": {
      "type": "string",
      "description": "Required text value.",
      "x-workflow-field-type": "text"
    },
    "external_order_id": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "external_customer_id": {
      "type": "string",
      "description": "Optional text value.",
      "x-workflow-field-type": "text"
    },
    "external_identity_evidence": {
      "description": "Optional JSON value.",
      "x-workflow-field-type": "json"
    }
  },
  "additionalProperties": false
}
```

### Output schema

```json
{
  "type": "object",
  "properties": {
    "status": {},
    "success": {},
    "blockers": {},
    "duplicate": {},
    "source_id": {},
    "aggregate_id": {},
    "review_reasons": {},
    "order_candidate": {},
    "ready_to_verify": {},
    "external_order_id": {},
    "accepted_field_paths": {},
    "external_customer_id": {},
    "conflicting_field_paths": {},
    "aggregate_review_reasons": {},
    "approved_external_order_id": {}
  },
  "additionalProperties": true
}
```
