{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/q2/json-schema/q2-fee-lookup-object200-response-schema.json",
  "title": "FeeLookupObject200Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/q2-fee-api-openapi.yml#/components/schemas/FeeLookupObject200Response",
  "allOf": [
    {
      "$ref": "#/$defs/0"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "properties": {
            "feeToApplyId": {
              "type": "integer",
              "format": "int64",
              "description": "Primary identifier of the fee work item."
            },
            "customerId": {
              "$ref": "#/$defs/HelixId"
            },
            "accountId": {
              "$ref": "#/$defs/HelixId"
            },
            "customerFeeTag": {
              "type": "string",
              "description": "Customer-facing tag used for lookup and correlation."
            },
            "masterId": {
              "type": "integer",
              "format": "int64",
              "description": "Transaction master identifier associated to the fee when available."
            },
            "transactionId": {
              "type": "integer",
              "format": "int64",
              "description": "Identifier of the fee transaction after the fee has posted."
            },
            "refundTransactionId": {
              "type": "integer",
              "format": "int64",
              "description": "Identifier of the refund transaction when a refund has posted."
            },
            "reversalTransactionIds": {
              "type": "array",
              "description": "Reversal transaction identifiers associated to this fee.",
              "items": {
                "type": "integer",
                "format": "int64"
              }
            },
            "reversalToApplyIds": {
              "type": "array",
              "description": "Reversal fee work-item identifiers associated to this fee.",
              "items": {
                "type": "integer",
                "format": "int64"
              }
            },
            "feeAmount": {
              "type": "number",
              "format": "decimal",
              "description": "Fee amount recorded for the fee work item."
            },
            "transactionAmount": {
              "type": "number",
              "format": "decimal",
              "description": "Posted transaction amount when available."
            },
            "feeToApplyState": {
              "type": "integer",
              "format": "int32",
              "description": "Current internal fee state enum value."
            },
            "feeWaiverCode": {
              "type": "string",
              "description": "Waiver reason or waiver code when the fee was waived or partially waived."
            },
            "feeWaiverAmount": {
              "type": "number",
              "format": "decimal",
              "description": "Waived amount for the fee."
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "HelixId": {
      "type": "integer",
      "format": "int32",
      "minimum": 1
    }
  }
}