Skip to main content

HRMS Mobile API — integration guide

This site documents every HRMS.WebAPI endpoint the HRMS employee mobile app integrates with: what to send, what comes back, which errors to expect, and the business rules around each call.

How this documentation is built​

  • Field names, types, routes, auth rules and error messages are generated from the C# source of HRMS.WebAPI (branch feature/mobile-changes), not typed by hand. npm run extract re-reads the code, so the reference stays exact when the API changes.
  • Example values are illustrations. The JSON shape and field names are exact; the values (Priya Sharma, ₹ 58,240, …) are sample data.
  • The explanations, flows and rules on each page were written after reading the controllers, services and stored procedures behind each endpoint.

Where to start​

  1. Getting started: base URLs, headers, your first call.
  2. Conventions: the response envelope, camelCase JSON, enums, dates, the shared filter object.
  3. Authentication and session: login, token lifetime, forced password change, biometric re-login.
  4. Errors: how to read failures and what to show users.
  5. The API by section menu, which follows the app's tabs:
SectionWhat it coversPlan ref
Account and sessionLogin, change/forgot password, switch company, thought of the day2.1
HomeToday's status, month summary, announcements, holidays, birthdays2.2
AttendanceClock in/out, geofence data, punches, calendar, missed-punch requests2.3
Leave and requestsLeave, work from home, leave balance, holiday list2.4
Other applicationsOvertime, clarification, fuel allowance, compensation, extra pay, resignation2.4
Team approvalsApprover inbox, approve/reject, team today2.8
Pay and documentsSalary overview, payslips, documents, tax investments2.5
ProfileMy details, photo, trainings, assets, family, organisation chart2.6
CommunicationNotifications inbox, instructions, helpdesk, reminders2.7
Lookups and settingsEnum lists, leave types, locations, projects, tenant settings—

Before you integrate​

Read Server rules (who may see, create and approve what) and Known API gaps (things the design needs that the API does not do yet). Plan screens around them.

Priorities​

Each endpoint is tagged P1 (first store release), P2 (second release) or P3 (later), following Plan/Mobile-App-Plan.md section 2.