Bulk Loan Repayment API
Loan Repayment API - POST REQUEST
Test API Endpoint
POST http://apitest.fedacash.com/api/salaryadvance/loan-repayment/bulk
Live API Endpoint
POST http://api.fedacash.com/api/salaryadvance/loan-repayment/bulk
Request Headers
Authorization: Bearer your_secret_keyContent-Type: application/json
Sample Curl -Request Body
curl -X POST "http://apitest.fedacash.com/api/salaryadvance/loan-repayment/bulk" \-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \-d '{ "amount": 50000, "reference": "abc123def456", "company_name": "ABC Corp" }'Success Response
{ "success": true, "message": "Repayment was successful!", "data": { "reference": "abc123def456", "user_profile_id": "user_profile_id", "loan_token": "loan_token", "payment_date": "2024-06-30T12:34:56Z", "amount": 50000, "account_name": "John Doe", "bank_name": "Bank Name", "customer_transaction_type": "debit", "payment_method": "paystack", "transaction_title": "Loan Repayment", "fedacash_transaction_type": "credit", "status": "success", "customer_fullname": "John Doe", "transaction_token": "transaction_token" }}Error Response
{ "errors": { "amount": ["The amount field is required."], "reference": ["The reference field is required."], "company_name": ["The company name field is required."] }}{ "error": "Transaction verification failed"}{ "error": "A system error occurred. Kindly contact the Administrator", "message": "Detailed error message"}