{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/xero/main/json-schema/xero-salary-and-wage-schema.json",
  "title": "SalaryAndWage",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xero-payrolluk-api-openapi.yml#/components/schemas/SalaryAndWage",
  "type": "object",
  "required": [
    "earningsRateID",
    "numberOfUnitsPerWeek",
    "effectiveFrom",
    "annualSalary",
    "status",
    "paymentType"
  ],
  "properties": {
    "salaryAndWagesID": {
      "description": "Xero unique identifier for a salary and wages record",
      "type": "string",
      "format": "uuid"
    },
    "earningsRateID": {
      "description": "Xero unique identifier for an earnings rate",
      "type": "string",
      "format": "uuid"
    },
    "numberOfUnitsPerWeek": {
      "description": "The Number of Units per week for the corresponding salary and wages",
      "type": "number",
      "format": "double"
    },
    "ratePerUnit": {
      "description": "The rate of each unit for the corresponding salary and wages",
      "type": "number",
      "format": "double"
    },
    "numberOfUnitsPerDay": {
      "description": "The Number of Units per day for the corresponding salary and wages",
      "type": "number",
      "format": "double"
    },
    "effectiveFrom": {
      "description": "The effective date of the corresponding salary and wages",
      "type": "string",
      "format": "date",
      "x-is-date": true
    },
    "annualSalary": {
      "description": "The annual salary",
      "type": "number",
      "format": "double"
    },
    "status": {
      "description": "The current status of the corresponding salary and wages",
      "type": "string",
      "enum": [
        "Active",
        "Pending",
        "History"
      ]
    },
    "paymentType": {
      "description": "The type of the payment of the corresponding salary and wages",
      "type": "string",
      "enum": [
        "Salary",
        "Hourly"
      ]
    }
  }
}