API Documentation
PayGuard REST API

Base URL: https://payguard.prinsoft.cloud

Authentication

All API calls require session authentication. Login first via POST /auth/login.

Government Payroll
MethodEndpointDescription
POST/gov-payroll/processSubmit payroll data (JSON). Returns net pay + MFI settlements.
POST/gov-payroll/uploadUpload payroll CSV file.
GET/gov-payroll/download/net-pay/<batch_id>Download net pay schedule CSV.
GET/gov-payroll/download/mfi-settlement/<batch_id>Download MFI settlement CSV.
GET/gov-payroll/templateDownload CSV template.
Mifos X Integration
MethodEndpointDescription
POST/mifos/test-connectionTest Mifos instance connectivity.
POST/mifos/verify-loanVerify loan exists. Body: {"loan_id": 1, "mfi_id": "..."}
POST/mifos/post-repaymentPost loan repayment. Body: {"loan_id": 1, "amount": 150}
POST/mifos/sync-batch/<batch_id>Push all batch transactions to Mifos.
GET/mifos/portfolioGet Mifos portfolio overview.
Reconciliation
MethodEndpointDescription
POST/reconciliation/uploadUpload remittance CSV. Form: mfi_id, payroll_period, file.
GET/reconciliation/disputes/<batch_id>Get unmatched items.
GET/reconciliation/download-disputes/<batch_id>Download dispute CSV.
Statistics
MethodEndpointDescription
GET/api/statsPlatform statistics (employees, deductions, MFIs, volume).
GET/healthHealth check (public).
Gov Payroll JSON Example
{
  "payroll_period": "2026-06",
  "employees": [
    {"employee_number": "EMP001", "name": "John Moyo", "gross_salary": 450.00},
    {"employee_number": "EMP002", "name": "Jane Dube", "gross_salary": 380.00}
  ]
}