Use three separate contracts: local MembershipDb configuration/mirrors, core-backend integration endpoints and the external EWA product API. A route observed for a read does not establish its matching write route.
| Entity | Role and documented fields |
|---|---|
| EwaConfigSetting | Employer application/rules: EwaId, OrganisationId, CompanyId, EwaConfigSettingStatusId, RegisteredName, RegistrationNumber, TaxIdentificationNumber, Email, Phone, FullAddress, CanEmployeesWithdraw, WithdrawalStopDay, IsApprovalRequired, IsTermsAccepted. |
| EwaConfigSettingStatus | Application lookup: EwaConfigSettingStatusId, Description. Numeric status mapping is not supplied. |
| EwaApprover | Named approver associated by EwaConfigSettingId; FirstName, LastName, Email. This is not itself proof of a current identity/grant. |
| EwaInitialization | Enrolment synchronisation: EwaId, UserKey, CompanyKey, Status, IsSynchronized. |
| EwaWithdrawal | Mirrored withdrawal: ReferenceNumber, UserKey, CompanyKey, Amount, Fee, FeePayer, IsSynchronized, CreatedAt. |
These are organisation-scoped MembershipDb entities. CompanyId is present; UserKey/CompanyKey correlate to external people/companies rather than acting as cross-database foreign-key IDs. Verify mapping and company permissions before joining/exporting. The source does not supply complete precision/nullability/indexes, uniqueness or deletion rules; do not invent them.
CreateEwaEmployerRequest groups:
user: firstName, lastName, email, gender, phoneNumber, padeUserId.company: name, address, withdrawalPercent, rcNumber, tinNumber, employeesCanWithdraw, phoneNumber, payrollDayOfMonth, stopWithdrawalDayOfMonth, withdrawalFeePayer, approvalRequired, padeCompanyId, padeParentCompanyId.employee: enrolling employee object; its complete shape is not specified in the copied map.CreateEwaEmployerResponse exposes success, code, message and data. Requiredness, types, provider IDs returned, error mapping and idempotency are not fully documented. An incomplete field catalogue must not be turned into a fabricated executable payload.
| Method | Exact mapped route | Purpose |
|---|---|---|
| GET | Ewa/Payroll_Status | Returns EwaPayrollCheckResponseModel: provider readiness for payroll. Full response fields and fail-open/fail-closed semantics need implementation evidence. |
| GET | Control/Ewa/Select | Internal application list. |
| GET | Control/Ewa/Get_Details | Internal application detail. |
| POST | Control/Ewa/Approve | Commercial underwriting approval. |
| POST | Control/Ewa/Decline | Commercial decline. |
| POST | Control/Ewa/SetUp | Provider setup. |
| POST | Control/Ewa/Initialize | Employer/employee initialisation. |
| POST | Control/Ewa/Sync | Privileged forced synchronisation. |
| POST | Control/Ewa/Update | Configuration amendment. |
The Control routes are internal PaidHR staff tooling, not customer-admin APIs. Approve here is not the employee withdrawal decision. Exact request bodies, pagination, company grants, bulk/partial errors and repeat-call behaviour are not provided by the route list.
The July 20, 2026 network capture observed these GET routes on ewa-dev.paidhr.com; use approved environment configuration rather than hard-coding a demo host.
| Route | Read surface |
|---|---|
| /v1/employer/withdrawals/analytics | Analytics totals/trend. |
| /v1/employer/withdrawals | Withdrawal history. |
| /v1/employees | Employee register. |
| /v1/employer/invoices | Employer invoices. |
| /v1/group-policies | General/custom policies. |
| /v1/employers/companies | Employer company record. |
| /v1/integration/{host} | Integration bootstrap; placeholder is the source's route parameter, not an invented host value. |
Withdrawal creation, PIN setup/authorisation, fee-increase acceptance, group-policy mutations and settlement HTTP signatures are not established by this read capture. Frontend paths under /dashboard/ewa/* and employee wallet paths are navigation, not API routes.
EwaService methods CreateEmployer/UpdateEmployer, CreateEmployee/CreateBulkEmployees/UpdateBulkEmployees, CreateExternalLoanRequest, UpdateEwaWithdrawalApproval, PayrollLedgerSync, SettleInvoice and Payroll_Status call the external service. They are not additional callable core endpoints merely because they are public C# methods.
| State family | What the source establishes |
|---|---|
| Application | Separate configuration status lookup; no reliable numeric enum given. |
| Employee | Registered YES/NO and status such as Active. Separate from IsSynchronized. |
| Withdrawal | pending and declined observed; approved/paid described happy path. Not a complete tested transition enum. |
| Invoice | Pending/Paid observed. Separate from withdrawal and payroll state. |
| Sync | IsSynchronized on local mirrors indicates integration progress, not payout receipt or invoice settlement. |