Sync Remita Payment History
Overview​
Syncs repayment data from the Remita platform to the local database. This command fetches the latest payment records from Remita and updates the local repayment tracking records, ensuring the system stays in sync with actual salary deductions.
Command Details​
- Command:
SyncRemitaPaymentHistoryCommand - Type: Command
API Endpoint​
POST /api/bpm/cmd
Request Structure​
| Field | Type | Required | Description |
|---|---|---|---|
id | long | Yes | ID of the loan request to sync payment history for |
Try It Out​
POST
/api/bpm/cmdSyncRemitaPaymentHistoryCommandRequest Body
Response Structure​
{
"success": true,
"data": {
"id": 5001,
"newPaymentsAdded": 1,
"totalPaymentsSynced": 3,
"totalRepaid": 1500000.00,
"outstandingBalance": 3500000.00,
"lastSyncedAt": "2026-03-09T16:00:00Z"
},
"message": "Payment history synced successfully"
}
Related Operations​
- Get Payment History — View repayment history from Remita
- Retrieve Loan by ID — View loan request details
- Retrieve Loans — List all loan requests