{
  "tool_id": "subscription_price_risk",
  "slug": "subscription-price-hike-risk-calculator",
  "path": "/subscription-price-hike-risk-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/subscription-price-hike-risk-calculator/?<params>",
  "sample_input": {
    "tool": "subscription_price_risk",
    "subscriptions": [
      {
        "name": "Netflix",
        "monthly_price": 22.99,
        "usage_per_month": 9,
        "value_score": 7,
        "price_elasticity": 1.1
      },
      {
        "name": "Design SaaS",
        "monthly_price": 34,
        "usage_per_month": 4,
        "value_score": 6,
        "price_elasticity": 1.2
      }
    ],
    "global_price_hike_percent": 10,
    "target_savings_percent": 15
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "subscriptions": {
        "type": "array",
        "items": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "monthly_price": {
                  "type": "number"
                },
                "usage_per_month": {
                  "type": "integer"
                },
                "value_score": {
                  "type": "integer"
                },
                "price_elasticity": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "monthly_price",
                "usage_per_month",
                "value_score",
                "price_elasticity"
              ]
            },
            {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "monthly_price": {
                  "type": "integer"
                },
                "usage_per_month": {
                  "type": "integer"
                },
                "value_score": {
                  "type": "integer"
                },
                "price_elasticity": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "monthly_price",
                "usage_per_month",
                "value_score",
                "price_elasticity"
              ]
            }
          ]
        }
      },
      "global_price_hike_percent": {
        "type": "integer"
      },
      "target_savings_percent": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "subscriptions",
      "global_price_hike_percent",
      "target_savings_percent"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "annualSpendBaseline": {
        "type": "number"
      },
      "annualSpendAfterHike": {
        "type": "number"
      },
      "riskRankedList": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "baselineAnnualCost": {
              "type": "number"
            },
            "hikedAnnualCost": {
              "type": "number"
            },
            "riskScore": {
              "type": "number"
            },
            "action": {
              "type": "string"
            }
          }
        }
      },
      "savingsScenarios": {
        "type": "object",
        "properties": {
          "cancelHighRiskOnly": {
            "type": "number"
          },
          "cancelHighAndReview": {
            "type": "number"
          },
          "topThreeCuts": {
            "type": "number"
          },
          "targetPlan": {
            "type": "object",
            "properties": {
              "targetSavings": {
                "type": "number"
              },
              "achievedSavings": {
                "type": "number"
              },
              "subscriptionsToCut": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "hikeSensitivity": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "hikePercent": {
              "type": "number"
            },
            "annualSpend": {
              "type": "number"
            },
            "highRiskCount": {
              "type": "number"
            }
          }
        }
      },
      "warnings": {
        "type": "array",
        "items": {}
      },
      "assumptionsEcho": {
        "type": "object",
        "properties": {
          "subscriptionCount": {
            "type": "number"
          },
          "globalPriceHikePercent": {
            "type": "number"
          },
          "targetSavingsPercent": {
            "type": "number"
          }
        }
      }
    }
  }
}
