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:

  1. Make an API call to the Create payment endpoint.
  2. Add the required information to the request payload. The available fields of the payload are:
FieldDescriptionRequiredExample
customer_idIdentifier for the customerYes3fa85f64-5717-4562-b3fc-2c963f66afa6
loan_idIdentifier for the loanYes5e8bbdc5-6c46-4c80-a43d-66fb8a410105
amountLoan amountYes100.00
external_idThe external identifier for the loanNoYOUR_EXTERNAL_SYSTEM_ID
application_modeMode of loan applicationYesinstallment
  1. 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": []
}