{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-api-response-client-order-status-response-schema.json",
  "title": "ApiResponseClientOrderStatusResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-order-management-api-openapi.yml#/components/schemas/ApiResponseClientOrderStatusResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "integer",
      "format": "int32"
    },
    "statusMessage": {
      "type": "string"
    },
    "error": {
      "$ref": "#/$defs/ApiErrorResponse"
    },
    "result": {
      "$ref": "#/$defs/ClientOrderStatusResponse"
    }
  },
  "$defs": {
    "ApiErrorResponse": {
      "type": "object",
      "properties": {
        "status": {
          "type": "integer",
          "format": "int32"
        },
        "statusMessage": {
          "type": "string"
        },
        "error": {
          "$ref": "#/$defs/Error"
        }
      }
    },
    "ClientOrderStatusResponse": {
      "type": "object",
      "properties": {
        "clientOrderId": {
          "type": "integer",
          "format": "int64"
        },
        "clientOrderStatus": {
          "type": "string"
        },
        "clientOrderStatusDetail": {
          "type": "string"
        }
      }
    },
    "Error": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "detail": {
          "$ref": "#/$defs/ErrorDetail"
        }
      }
    },
    "ErrorDetail": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}