Skip to content
HALOWERK

Calculators and Rule Checks

rating floor one star headroom

Business rating downside: find how many additional one-star reviews an exact aggregate can absorb at a minimum mean; a one-star floor has unlimited headroom (null). Use it when an agent needs a calculation on supplied business rating totals.

POST https://rechen.halowerk.com/v1/rating-floor-one-star-headroom

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
reviewsintegerYes
star_sumintegerYes
targetnumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "reviews": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000000
    },
    "star_sum": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50000000
    },
    "target": {
      "type": "number",
      "minimum": 1,
      "maximum": 5
    }
  },
  "required": [
    "reviews",
    "star_sum",
    "target"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "reviews": 20,
  "star_sum": 92,
  "target": 4.2
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "allowance": {
          "type": [
            "integer",
            "null"
          ]
        },
        "currently_above": {
          "type": "boolean"
        }
      },
      "required": [
        "allowance",
        "currently_above"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub →