{
 "openapi": "3.1.0",
 "info": {
  "title": "Pay Position (HRMS)",
  "version": "20261030b",
  "description": "Where everybody sits in their range. A compa-ratio of 1.00 is the midpoint. Pay and range are compared per year and in the pay’s currency: a monthly range is annualised and a range set in another currency is converted at today’s rate."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "pay-position": {
    "type": "object",
    "required": [],
    "properties": {
     "employee_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "employee_no": {
      "type": "string",
      "description": "Employee no",
      "readOnly": true
     },
     "employee_name": {
      "type": "string",
      "description": "Employee name",
      "readOnly": true
     },
     "position_title": {
      "type": "string",
      "description": "Position title",
      "readOnly": true
     },
     "department": {
      "type": "string",
      "description": "Department",
      "readOnly": true
     },
     "base_pay": {
      "type": "string",
      "format": "decimal",
      "description": "Base pay",
      "readOnly": true
     },
     "currency": {
      "type": "string",
      "description": "Currency",
      "readOnly": true
     },
     "pay_type": {
      "type": "string",
      "description": "Pay type",
      "readOnly": true
     },
     "fte": {
      "type": "string",
      "format": "decimal",
      "description": "Fte",
      "readOnly": true
     },
     "hire_date": {
      "type": "string",
      "format": "date",
      "description": "Hire date",
      "readOnly": true
     },
     "grade_code": {
      "type": "string",
      "description": "Grade code",
      "readOnly": true
     },
     "grade_name": {
      "type": "string",
      "description": "Grade name",
      "readOnly": true
     },
     "grade_level": {
      "type": "integer",
      "description": "Grade level",
      "readOnly": true
     },
     "range_min": {
      "type": "string",
      "format": "decimal",
      "description": "Range min",
      "readOnly": true
     },
     "range_mid": {
      "type": "string",
      "format": "decimal",
      "description": "Range mid",
      "readOnly": true
     },
     "range_max": {
      "type": "string",
      "format": "decimal",
      "description": "Range max",
      "readOnly": true
     },
     "market_reference": {
      "type": "string",
      "format": "decimal",
      "description": "Market reference",
      "readOnly": true
     },
     "bonus_target_percent": {
      "type": "string",
      "format": "decimal",
      "description": "Bonus target percent",
      "readOnly": true
     },
     "annualised_pay": {
      "type": "string",
      "format": "decimal",
      "description": "Annualised pay",
      "readOnly": true
     },
     "compa_ratio": {
      "type": "string",
      "format": "decimal",
      "description": "Compa ratio",
      "readOnly": true
     },
     "range_penetration": {
      "type": "string",
      "format": "decimal",
      "description": "Range penetration",
      "readOnly": true
     },
     "quartile": {
      "type": "integer",
      "description": "Quartile",
      "readOnly": true
     },
     "standing": {
      "type": "string",
      "description": "Standing",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/pay-position": {
   "get": {
    "summary": "list pay-position",
    "operationId": "list_pay_position_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post pay position",
    "operationId": "action_pay_position_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/pay-position/{employee_id}": {
   "get": {
    "summary": "get pay-position",
    "operationId": "get_pay_position_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/pay-position/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_pay_position_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/pay-position/{id}": {
   "put": {
    "summary": "Put pay position",
    "operationId": "action_pay_position_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete pay position",
    "operationId": "action_pay_position_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}