{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orion-advisor-solutions/json-schema/orion-advisor-solutions-oas-web-api-dto-billing-bill-instance-client-dto-schema.json",
  "title": "OAS.WebApi.DTO.Billing.BillInstanceClientDto",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orion-advisor-solutions-billing-billgenerator-api-openapi.yml#/components/schemas/OAS.WebApi.DTO.Billing.BillInstanceClientDto",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "billInstanceId": {
      "type": "integer",
      "format": "int32"
    },
    "billType": {
      "type": "string",
      "enum": [
        "Unknown",
        "Renewal",
        "NewMoney",
        "NewAccount",
        "FinancialPlanningFee",
        "Performance",
        "AdvanceCreditDebit"
      ]
    },
    "clientId": {
      "type": "integer",
      "format": "int32"
    },
    "clientName": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "NotGenerated",
        "Generated",
        "Errored",
        "PendingGeneration",
        "OnHold",
        "Warning",
        "FeeFileError",
        "ReconError"
      ]
    },
    "startDate": {
      "type": "string",
      "format": "date-time"
    },
    "endDate": {
      "type": "string",
      "format": "date-time"
    },
    "initialAmt": {
      "type": "number",
      "format": "double"
    },
    "adjAmt": {
      "type": "number",
      "format": "double"
    },
    "balanceDue": {
      "type": "number",
      "format": "double"
    },
    "marketValue": {
      "type": "number",
      "format": "double"
    },
    "feeAmount": {
      "type": "number",
      "format": "double"
    },
    "feeFileGenerated": {
      "type": "boolean"
    },
    "createdBy": {
      "type": "string"
    },
    "createdDate": {
      "type": "string",
      "format": "date-time"
    },
    "updatedBy": {
      "type": "string"
    },
    "billId": {
      "type": "integer",
      "format": "int32"
    },
    "errorMessage": {
      "type": "string"
    },
    "repName": {
      "type": "string"
    },
    "repID": {
      "type": "integer",
      "format": "int32"
    },
    "repNumber": {
      "type": "string"
    },
    "relatedHouseholds": {
      "readOnly": true,
      "type": "string"
    },
    "isValid": {
      "type": "boolean"
    }
  },
  "type": "object"
}