{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-transaction-schema.json",
  "title": "Transaction",
  "description": "The base object model for the `/transactions` endpoints and the canonical model for Enhanced Eligibility",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-eligibility-transactions-api-openapi.yml#/components/schemas/Transaction",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique ID of the transaction"
    },
    "sourceId": {
      "type": "string",
      "description": "The id of the transaction that spawned this record. If empty, this transaction has no parent."
    },
    "sourceType": {
      "type": "string",
      "enum": [
        "new",
        "historical",
        "duplicate",
        "autosubmit"
      ],
      "description": "How the transaction was created. `new` means the transaction was submitted through the Real-Time Eligibility flow. `duplicate` means customer-configured deduplication found a prior matching request, skipped clearinghouse submission, and returned the previous response. `autosubmit` means the transaction was generated by Coverage Discovery path execution. `historical` means the record originated from historical retrieval rather than a newly created request."
    },
    "correlationId": {
      "type": "string",
      "description": "An ID provided by the consumer at the time of transaction processing"
    },
    "processedDate": {
      "type": "string",
      "description": "The time the transaction was processed by the system"
    },
    "status": {
      "type": "object",
      "description": "The outcome of the transaction",
      "properties": {
        "value": {
          "type": "string",
          "enum": [
            "eligible",
            "ineligible",
            "payer_unavailable",
            "payer_not_in_system",
            "processing_error",
            "patient_unknown"
          ]
        },
        "description": {
          "type": "string",
          "description": "A human readable representation of the 'value' field."
        }
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of errors that occurred during process"
    },
    "benefits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "service": {
            "type": "string",
            "description": "Text description of service type code"
          },
          "networkClass": {
            "type": "string",
            "enum": [
              "inNetwork",
              "outNetwork"
            ],
            "description": "Whether the benefit conditions apply to 'in' or 'out' of network"
          },
          "benefitType": {
            "type": "string",
            "enum": [
              "individual",
              "family"
            ],
            "description": "Benefit type maps to either individual or family"
          },
          "name": {
            "type": "string",
            "description": "Benefit field name"
          },
          "value": {
            "type": "string",
            "description": "Benefit field value"
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "date",
              "number",
              "percent",
              "monetary",
              "phone"
            ],
            "description": "Benefit field data type"
          },
          "scope": {
            "type": "string",
            "enum": [
              "common",
              "service"
            ],
            "description": "Benefit field relates either to a service type or is common (not related to a service type)"
          },
          "insuranceType": {
            "type": "string",
            "enum": [
              "AllPayers",
              "Medicaid",
              "Medicare"
            ],
            "description": "Insurance classification: Medicare, Medicaid, or AllPayers"
          },
          "benefitQualifier": {
            "type": "string",
            "description": "Benefit field code identifying type or source"
          }
        }
      },
      "description": "Detailed benefit information for each service returned by the payer"
    },
    "patient": {
      "type": "object",
      "properties": {
        "dateOfBirth": {
          "type": "string",
          "format": "date"
        },
        "dateOfDeath": {
          "type": "string",
          "format": "date"
        },
        "eligibilityCategory": {
          "type": "string",
          "description": "Expresses the eligibility category of the member to properly administer health benefits and coverage (from Department of Defense)"
        },
        "firstName": {
          "type": "string"
        },
        "gender": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "memberId": {
          "type": "string"
        },
        "middleName": {
          "type": "string"
        },
        "militaryPersonnel": {
          "type": "boolean"
        },
        "mrn": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "relationship": {
          "type": "string"
        },
        "ssn": {
          "type": "string"
        },
        "suffix": {
          "type": "string"
        },
        "agencyClaimNumber": {
          "type": "string"
        },
        "address": {
          "type": "object",
          "properties": {
            "lines": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "city": {
              "type": "string"
            },
            "county": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "subdivisionCode": {
              "type": "string"
            },
            "zip": {
              "type": "string"
            }
          }
        }
      },
      "description": "The patient details captured on the eligibility response"
    },
    "payer": {
      "type": "object",
      "properties": {
        "aaaSource": {
          "type": "string"
        },
        "certificationNumber": {
          "type": "string",
          "description": "10 digits"
        },
        "contactExtension": {
          "type": "string"
        },
        "contactName": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "fax": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "phone": {
          "type": "string"
        },
        "thirdPartyAdminstrator": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "phone": {
              "type": "string"
            }
          }
        },
        "url": {
          "type": "string"
        },
        "address": {
          "type": "object",
          "properties": {
            "lines": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "city": {
              "type": "string"
            },
            "county": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "subdivisionCode": {
              "type": "string"
            },
            "zip": {
              "type": "string"
            }
          }
        },
        "chcId": {
          "type": "string"
        }
      },
      "description": "Represents data about the payer that is on record for the eligibility request"
    },
    "plan": {
      "type": "object",
      "description": "Detailed information about the Subscriber’s plan, group, and policy",
      "properties": {
        "beginDate": {
          "type": "string",
          "format": "date"
        },
        "dateOfDecision": {
          "type": "string",
          "format": "date"
        },
        "endDate": {
          "type": "string",
          "format": "date"
        },
        "benefitFirstBilledDate": {
          "type": "string",
          "format": "date"
        },
        "groupOrPolicyNumber": {
          "type": "string"
        },
        "insuranceType": {
          "type": "string"
        },
        "lastBilledDate": {
          "type": "string",
          "format": "date"
        },
        "medicalAssistanceCategory": {
          "type": "string"
        },
        "otherAdditionalCoverageQualifier": {
          "type": "string"
        },
        "otherCoverage": {
          "type": "string"
        },
        "otherProductDescription": {
          "type": "string"
        },
        "planBeginDate": {
          "type": "string",
          "format": "date"
        },
        "planCoverageDescription": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "number": {
          "type": "string"
        },
        "ppo": {
          "type": "string",
          "description": "Preferred provider organization"
        },
        "productDescription": {
          "type": "string"
        },
        "dependentMemberID": {
          "type": "string"
        },
        "familyUnitNumber": {
          "type": "string"
        },
        "identificationCardSerialNumber": {
          "type": "string"
        },
        "insurancePolicyNumber": {
          "type": "string"
        },
        "subscriberPremiumPaidEndDate": {
          "type": "string",
          "format": "date"
        },
        "aca": {
          "type": "object",
          "properties": {
            "hixMessage": {
              "type": "string"
            },
            "periodStart": {
              "type": "string",
              "format": "date"
            },
            "periodEnd": {
              "type": "string",
              "format": "date"
            }
          }
        },
        "case": {
          "type": "object",
          "description": "Used to clarify plan level details",
          "properties": {
            "type": {
              "type": "string",
              "description": "Reference Information as defined for a Reference Identification Qualifier"
            },
            "description": {
              "type": "string"
            }
          }
        },
        "gatewayProvider": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "address": {
              "type": "object",
              "properties": {
                "lines": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "city": {
                  "type": "string"
                },
                "county": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "subdivisionCode": {
                  "type": "string"
                },
                "zip": {
                  "type": "string"
                }
              }
            }
          }
        },
        "group": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "number": {
              "type": "string"
            },
            "policyName": {
              "type": "string"
            }
          }
        },
        "hmo": {
          "type": "object",
          "description": "Health maintenance organization details",
          "properties": {
            "name": {
              "type": "string"
            },
            "planNumber": {
              "type": "string"
            }
          }
        },
        "hra": {
          "type": "object",
          "description": "Health reimbursement arrangement details",
          "properties": {
            "balance": {
              "type": "string"
            },
            "employerPledge": {
              "type": "string"
            },
            "paid": {
              "type": "string"
            },
            "priorCarryover": {
              "type": "string"
            }
          }
        },
        "hsa": {
          "type": "object",
          "description": "Health savings account details",
          "properties": {
            "balance": {
              "type": "string"
            },
            "employerPledge": {
              "type": "string"
            },
            "paid": {
              "type": "string"
            },
            "priorCarryover": {
              "type": "string"
            }
          }
        },
        "ipa": {
          "type": "object",
          "description": "Individual practice association details",
          "properties": {
            "name": {
              "type": "string"
            },
            "contactName": {
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "phone": {
              "type": "string"
            },
            "address": {
              "type": "object",
              "properties": {
                "lines": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "city": {
                  "type": "string"
                },
                "county": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "subdivisionCode": {
                  "type": "string"
                },
                "zip": {
                  "type": "string"
                }
              }
            }
          }
        },
        "otherPayer": {
          "type": "object",
          "description": "Additional Payer Associated with Patient",
          "properties": {
            "groupNumber": {
              "type": "string"
            },
            "policyNumber": {
              "type": "string"
            }
          }
        },
        "planNetworkIdentification": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string"
            },
            "number": {
              "type": "string"
            }
          }
        },
        "policy": {
          "type": "object",
          "description": "Information about the plan policy",
          "properties": {
            "name": {
              "type": "string",
              "description": "Plan description from the payer"
            },
            "number": {
              "type": "string",
              "description": "Group or policy number associated with the plan mapping to the policy reference identifier from the payer"
            }
          }
        },
        "preferredProviderOrg": {
          "type": "object",
          "description": "Details about the preferred provider organization",
          "properties": {
            "name": {
              "type": "string"
            },
            "contactName": {
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "phone": {
              "type": "string"
            },
            "address": {
              "type": "object",
              "properties": {
                "lines": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "city": {
                  "type": "string"
                },
                "county": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "subdivisionCode": {
                  "type": "string"
                },
                "zip": {
                  "type": "string"
                }
              }
            }
          }
        },
        "primaryCareProvider": {
          "type": "object",
          "properties": {
            "providerName": {
              "type": "string"
            },
            "physician": {
              "type": "string"
            },
            "npi": {
              "type": "string"
            },
            "phoneNumber": {
              "type": "string"
            },
            "dateRange": {
              "type": "string"
            },
            "address": {
              "type": "object",
              "properties": {
                "lines": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "city": {
                  "type": "string"
                },
                "county": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "subdivisionCode": {
                  "type": "string"
                },
                "zip": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "subscriber": {
      "type": "object",
      "properties": {
        "agencyNumber": {
          "type": "string"
        },
        "anniversaryDate": {
          "type": "string",
          "format": "date"
        },
        "dateOfBirth": {
          "type": "string",
          "format": "date"
        },
        "employer": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "gender": {
          "type": "string"
        },
        "idCardNumber": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "memberId": {
          "type": "string"
        },
        "middleName": {
          "type": "string"
        },
        "militaryPersonnel": {
          "type": "boolean"
        },
        "mrn": {
          "type": "string"
        },
        "priorIdNumber": {
          "type": "string",
          "description": "The prior identification number (memberId)"
        },
        "ssn": {
          "type": "string"
        },
        "suffix": {
          "type": "string"
        },
        "premiumPaidEndDate": {
          "type": "string",
          "format": "date"
        },
        "address": {
          "type": "object",
          "properties": {
            "lines": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "city": {
              "type": "string"
            },
            "county": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "subdivisionCode": {
              "type": "string"
            },
            "zip": {
              "type": "string"
            }
          }
        }
      },
      "description": "Subscriber data that originated from the Payer"
    },
    "x12-271": {
      "type": "string",
      "description": "Raw X12 271 eligibility response payload returned for the transaction."
    }
  }
}