Complete inventory of Earned Wage Access — letting employees draw down wages they've already earned before payday, with the advance recovered at payroll.

Source of truth: core-backend-service source plus a live pass (Playwright, "Pade Demo" tenant, 2026-07-20; screenshots) with a network capture establishing the service boundary.

The headline: like Hiring, the EWA product runs in a separate service (ewa-*.paidhr.com). This repo holds an integration client, the enrolment config, a control-panel approval flow, and two sync workers. Read §1 first.


1. The service split

Verified by capturing live traffic while driving every EWA admin screen — every data call went to ewa-dev.paidhr.com:

Observed call Backs
GET /v1/employer/withdrawals/analytics Analytics tiles + chart
GET /v1/employer/withdrawals Withdrawal history
GET /v1/employees EWA employee register
GET /v1/employer/invoices Invoices
GET /v1/group-policies EWA policies
GET /v1/employers/companies Employer record
GET /v1/integration/{host} Integration bootstrap

The same service hosts the ATS (/v1/ats/* — see Hiring RFD-001). ewa-*.paidhr.com is really an "extended platform" service that has accumulated newer modules; the name understates its scope. See RFD-001.

2. What core-backend-service owns

Component Lines Role
EwaService.cs 147 Outbound client to the EWA service
ControlEwaService.cs 297 Internal control-panel: approve/decline/set-up an employer
EwaEmployeeSynchronizationService.cs 118 Background worker — 30s poll, pushes employee enrolments
EwaWithdrawalSynchronizationService.cs 118 Background worker — 30s poll, pulls withdrawals back

Controllers

Controller Endpoints Surface
EwaController 1 Payroll_Status — is payroll clear to run w.r.t. EWA?
Control/EwaController 8 Select, Get_Details, Approve, Decline, SetUp, Initialize, Sync, Update

EwaService methods — all outbound

CreateEmployer · UpdateEmployer · CreateEmployee · CreateBulkEmployees · UpdateBulkEmployees · CreateExternalLoanRequest · PayrollLedgerSync · SettleInvoice · UpdateEwaWithdrawalApproval · Payroll_Status

3. Entities (MembershipDb — org-scoped, not tenant)

Entity Key fields
EwaConfigSetting EwaId (the external id), OrganisationId, CompanyId, EwaConfigSettingStatusId, RegisteredName, RegistrationNumber, TaxIdentificationNumber, Email, Phone, FullAddress, CanEmployeesWithdraw, WithdrawalStopDay, IsApprovalRequired, IsTermsAccepted
EwaConfigSettingStatus Application status lookup
EwaApprover EwaConfigSettingId, FirstName, LastName, Email — who approves withdrawals
EwaInitialization EwaId, UserKey, CompanyKey, Status, IsSynchronized — an employee enrolment awaiting push
EwaWithdrawal ReferenceNumber, UserKey, CompanyKey, Amount, Fee, FeePayer, IsSynchronized, CreatedAt — a withdrawal pulled back

IsSynchronized on the last two is what the workers (§2) drive.

4. The external API contract (EwaApiModel.cs)

CreateEwaEmployerRequest { user, company, employee }: