{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peoplehr/main/json-schema/peoplehr-post-salary-request-schema.json",
  "title": "PostSalaryRequest",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/peoplehr-openapi-generated.yml#/components/schemas/PostSalaryRequest",
  "type": "object",
  "properties": {
    "APIKey": {
      "type": "string",
      "description": "API key for authentication (schema: SALARY)."
    },
    "Action": {
      "type": "string",
      "description": "One of GetSalaryDetail, GetAllSalaryDetails, CreateNewSalary, DeleteSalary."
    },
    "EmployeeId": {
      "type": "string",
      "description": "Employee identifier (required for GetSalaryDetail, CreateNewSalary, DeleteSalary)."
    },
    "IsIncludeHistory": {
      "type": "string",
      "description": "Include history flag (required for GetSalaryDetail, GetAllSalaryDetails)."
    },
    "EffectiveFrom": {
      "type": "string",
      "description": "Effective date of the salary record (required for CreateNewSalary, DeleteSalary)."
    },
    "SalaryType": {
      "type": "string",
      "description": "Type of salary (required for CreateNewSalary)."
    },
    "PaymentFrequency": {
      "type": "string",
      "description": "Payment frequency (required for CreateNewSalary)."
    },
    "SalaryAmount": {
      "type": "string",
      "description": "Salary amount (required for CreateNewSalary)."
    },
    "CurrencyCode": {
      "type": "string",
      "description": "Currency code (required for CreateNewSalary)."
    },
    "ChangeReason": {
      "type": "string",
      "description": "Reason for change (required for CreateNewSalary)."
    },
    "Comments": {
      "type": "string",
      "description": "Optional comments."
    },
    "Deductions": {
      "type": "array",
      "description": "Array of deduction objects (optional for CreateNewSalary)."
    },
    "Entitlements": {
      "type": "array",
      "description": "Array of entitlement objects (optional for CreateNewSalary)."
    }
  },
  "required": [
    "APIKey",
    "Action"
  ]
}