Skip to main content

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​

FieldTypeRequiredDescription
idlongYesID of the loan request to sync payment history for

Try It Out​

POST/api/bpm/cmdSyncRemitaPaymentHistoryCommand
Request 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"
}