Grouped by which service serves it. Core-backend routes verified from controllers; EWA-service routes verified by network capture from the live web-app (2026-07-20).


A. core-backend-service (this repo)

EwaController — [Ewa]

Method Route Purpose
GET Ewa/Payroll_Status Is payroll clear to run w.r.t. EWA? Returns EwaPayrollCheckResponseModel. The only tenant-facing EWA endpoint here.

Control/EwaController — [Control/Ewa] (internal PaidHR staff)

Method Route Purpose
GET Control/Ewa/Select List EWA applications.
GET Control/Ewa/Get_Details One application's detail.
POST Control/Ewa/Approve Approve the application — the underwriting gate.
POST Control/Ewa/Decline Decline it.
POST Control/Ewa/SetUp Set the company up with the provider.
POST Control/Ewa/Initialize Initialise employer + seed employees.
POST Control/Ewa/Sync Force a resync.
POST Control/Ewa/Update Amend configuration.

Control-tier only. Approve/Decline are commercial decisions with money consequences — treat as high-privilege.

EwaService — outbound calls (not HTTP endpoints of this service)

Method Calls the provider to…
CreateEmployer / UpdateEmployer Register / update the company
CreateEmployee / CreateBulkEmployees / UpdateBulkEmployees Enrol employees
CreateExternalLoanRequest Raise an advance
PayrollLedgerSync Reconcile the payroll ledger
SettleInvoice Settle an employer invoice
UpdateEwaWithdrawalApproval Push an approve/decline decision
Payroll_Status Check payroll readiness

Request contract: CreateEwaEmployerRequest { user, company, employee } — see glossary. Note padeUserId / padeCompanyId / padeParentCompanyId carry PaidHR's identifiers to the provider.


B. EWA service (ewa-*.paidhr.com) — the product

Not in this repo. Observed live while driving the admin screens:

Method Route Backs
GET /v1/employer/withdrawals/analytics Analytics tiles + trend chart
GET /v1/employer/withdrawals Withdrawal history
GET /v1/employees EWA employee register
GET /v1/employer/invoices Employer invoices
GET /v1/group-policies EWA policies (General + custom)
GET /v1/employers/companies Employer record
GET /v1/integration/{host} Integration bootstrap

The same host also serves /v1/ats/* (Hiring). It is an "extended platform" service, not EWA-only.


Auth & tenancy