Creating payments
It's essential to record your customer's loan payments in MO so that the system can accurately track loan repayment progress. This process is done by informing the details of each payment, by following these steps:
- Make an API call to the Create payment endpoint.
- Add the required information to the request payload. The available fields of the payload are:
Field | Description | Required | Example |
---|---|---|---|
customer_id | Identifier for the customer | Yes | 3fa85f64-5717-4562-b3fc-2c963f66afa6 |
loan_id | Identifier for the loan | Yes | 5e8bbdc5-6c46-4c80-a43d-66fb8a410105 |
amount | Loan amount | Yes | 100.00 |
external_id | The external identifier for the loan | No | YOUR_EXTERNAL_SYSTEM_ID |
application_mode | Mode of loan application | Yes | installment |
- Send the request.
The response JSON will present you with details about every payment from the respective loan, including this one. Below is an example of the returned JSON:
{
"data": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"loan_payments": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amount": 100,
"loan": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reference": "string",
"external_id": "string"
}
},
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amount": 100,
"loan": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reference": "string",
"external_id": "string"
}
}
]
},
"metadata": {
"timestamp": "2023-08-30T16:30:00Z",
"version": "2"
},
"errors": []
}
Updated 5 days ago