{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/argyle9a25/json-schema/argyle9a25-rating-schema.json",
  "title": "Rating",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/argyle9a25-ratings-api-openapi.yml#/components/schemas/Rating",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique ID of the rating object."
    },
    "account": {
      "type": "string",
      "format": "uuid",
      "description": "ID of the account associated with the rating object."
    },
    "rating": {
      "type": "string",
      "description": "A normalized average of the user's ratings between 0 and 5. Overall average, as payroll system do not typically provide ratings information for individual events. Returned as a decimal string with exactly two decimal places.",
      "x-argyle-decimal-places": 2,
      "x-argyle-decimal-mode": "fixed"
    },
    "acceptance_rate": {
      "type": "string",
      "description": "Percent of the time the user accepts a task. Decimal between 0 and 1. Returned as a decimal string with exactly two decimal places.",
      "x-argyle-decimal-places": 2,
      "x-argyle-decimal-mode": "fixed"
    },
    "ontime_rate": {
      "type": "string",
      "description": "Percent of the time the user completes a task on time. Decimal between 0 and 1. Returned as a decimal string with exactly two decimal places.",
      "x-argyle-decimal-places": 2,
      "x-argyle-decimal-mode": "fixed"
    },
    "achievements": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "Individual ratings or achievement information, sorted into relevant key:value pairs. Varies by gig platform."
    },
    "rewards": {
      "type": "array",
      "description": "Rewards program information.",
      "items": {
        "type": "object",
        "properties": {
          "program_name": {
            "type": "string",
            "description": "Name of the rewards program."
          },
          "tier": {
            "type": "string",
            "description": "Current rewards program tier or status."
          },
          "valid_through": {
            "type": "string",
            "description": "Date until the current tier or status is valid."
          },
          "points": {
            "type": "string",
            "description": "Points earned in the current rewards period."
          }
        }
      }
    },
    "employer": {
      "type": "string",
      "description": "Name of the user's employer."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)) when the rating object was created."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp ([ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)) when a property value of the rating object most recently changed."
    },
    "metadata": {
      "type": "object",
      "description": "Additional, non-categorized information."
    }
  }
}