{
 "openapi": "3.1.0",
 "info": {
  "title": "Clock Punches (HRMS)",
  "version": "20261030b",
  "description": "Every clock-in, clock-out, break and status, with the server’s time, where it came from and, where asked for, the position. Never edited: a wrong one is put right by a punch correction."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "time-punches": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "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_id": {
      "type": "string",
      "format": "uuid",
      "description": "Employee id",
      "readOnly": true
     },
     "employee_no": {
      "type": "string",
      "description": "Employee no",
      "readOnly": true
     },
     "employee_name": {
      "type": "string",
      "description": "Employee name",
      "readOnly": true
     },
     "manager_id": {
      "type": "string",
      "format": "uuid",
      "description": "Manager id",
      "readOnly": true
     },
     "punch_type": {
      "type": "string",
      "description": "Punch type",
      "readOnly": true
     },
     "status_code": {
      "type": "string",
      "description": "Status code",
      "readOnly": true
     },
     "punched_at": {
      "type": "string",
      "format": "date-time",
      "description": "Punched at",
      "readOnly": true
     },
     "work_date": {
      "type": "string",
      "format": "date",
      "description": "Work date",
      "readOnly": true
     },
     "local_time": {
      "type": "string",
      "description": "Local time",
      "readOnly": true
     },
     "time_zone": {
      "type": "string",
      "description": "Time zone",
      "readOnly": true
     },
     "source": {
      "type": "string",
      "description": "Source",
      "readOnly": true
     },
     "ip_address": {
      "type": "string",
      "description": "Ip address",
      "readOnly": true
     },
     "latitude": {
      "type": "string",
      "format": "decimal",
      "description": "Latitude",
      "readOnly": true
     },
     "longitude": {
      "type": "string",
      "format": "decimal",
      "description": "Longitude",
      "readOnly": true
     },
     "accuracy_m": {
      "type": "string",
      "format": "decimal",
      "description": "Accuracy m",
      "readOnly": true
     },
     "geo_status": {
      "type": "string",
      "description": "Geo status",
      "readOnly": true
     },
     "location_id": {
      "type": "string",
      "format": "uuid",
      "description": "Location id",
      "readOnly": true
     },
     "location_code": {
      "type": "string",
      "description": "Location code",
      "readOnly": true
     },
     "grant_id": {
      "type": "string",
      "format": "uuid",
      "description": "Grant id",
      "readOnly": true
     },
     "grant_code": {
      "type": "string",
      "description": "Grant code",
      "readOnly": true
     },
     "fund_id": {
      "type": "string",
      "format": "uuid",
      "description": "Fund id",
      "readOnly": true
     },
     "fund_code": {
      "type": "string",
      "description": "Fund code",
      "readOnly": true
     },
     "program_id": {
      "type": "string",
      "format": "uuid",
      "description": "Program id",
      "readOnly": true
     },
     "program_code": {
      "type": "string",
      "description": "Program code",
      "readOnly": true
     },
     "cost_center_id": {
      "type": "string",
      "format": "uuid",
      "description": "Cost center id",
      "readOnly": true
     },
     "cost_center_code": {
      "type": "string",
      "description": "Cost center code",
      "readOnly": true
     },
     "department": {
      "type": "string",
      "description": "Department",
      "readOnly": true
     },
     "is_void": {
      "type": "boolean",
      "description": "Is void",
      "readOnly": true
     },
     "correction_id": {
      "type": "string",
      "format": "uuid",
      "description": "Correction id",
      "readOnly": true
     },
     "voided_by_correction_id": {
      "type": "string",
      "format": "uuid",
      "description": "Voided by correction id",
      "readOnly": true
     },
     "time_entry_id": {
      "type": "string",
      "format": "uuid",
      "description": "Time entry id",
      "readOnly": true
     },
     "notes": {
      "type": "string",
      "description": "Notes",
      "readOnly": true
     },
     "recorded_by": {
      "type": "string",
      "format": "uuid",
      "description": "Recorded by",
      "readOnly": true
     },
     "recorded_by_name": {
      "type": "string",
      "description": "Recorded by name",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "recorded_time_zone": {
      "type": "string",
      "description": "Recorded time zone",
      "readOnly": true
     },
     "recorded_local_time": {
      "type": "string",
      "description": "Recorded local time",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/time-punches": {
   "get": {
    "summary": "list time-punches",
    "operationId": "list_time_punches_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post clock punches",
    "operationId": "action_time_punches_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/time-punches/{id}": {
   "get": {
    "summary": "get time-punches",
    "operationId": "get_time_punches_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put clock punches",
    "operationId": "action_time_punches_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete clock punches",
    "operationId": "action_time_punches_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/time-punches/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_time_punches_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"
     }
    }
   }
  }
 }
}