Skip to content
HALOWERK

Calculators and Rule Checks

rating next batch requirement

Business rating forecast: find the minimum total stars the next fixed-size review batch must contribute to reach a target. Use it when an agent needs a calculation on supplied business rating totals.

POST https://rechen.halowerk.com/v1/rating-next-batch-requirement

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
reviewsintegerYes
star_sumintegerYes
targetnumberYes
nextintegerYes
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
    },
    "next": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000000
    }
  },
  "required": [
    "reviews",
    "star_sum",
    "target",
    "next"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "reviews": 20,
  "star_sum": 92,
  "target": 4.8,
  "next": 8
}

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": {
        "needed_points": {
          "type": "integer"
        },
        "needed_average": {
          "type": "number"
        },
        "feasible": {
          "type": "boolean"
        }
      },
      "required": [
        "needed_points",
        "needed_average",
        "feasible"
      ]
    },
    "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 →