{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/check-hq/main/json-schema/check-hq-earning-rate-schema.json",
  "title": "EarningRate",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/check-hq-api-openapi.yml#/components/schemas/EarningRate",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "amount": {
      "type": "string"
    },
    "period": {
      "type": "string",
      "description": "May be `hourly`, `annually`, or `piece`"
    },
    "employee": {
      "type": "string"
    },
    "company": {
      "type": "string",
      "description": "ID of the company that this earning rate relates to (via the employee).",
      "readOnly": true
    },
    "name": {
      "type": "string"
    },
    "workweek_hours": {
      "type": "number",
      "format": "float"
    },
    "active": {
      "type": "boolean"
    },
    "metadata": {
      "type": "object"
    }
  }
}