Creating a customer

In MO, every customer will start as a pre-customer. After they meet the business rules to become a customer, for example, completing the onboarding process or accepting the terms and conditions, upgrade them to a customer.

Creating a pre-customer

To create a pre-customer, follow these steps:

  1. Make an API call to the Create pre-customer endpoint.
  2. Add the needed information to the request payload. The available fields of the payload are:
FieldDescriptionRequiredExample
external_idExternal identifier for the pre-customer.NoYOUR_EXTERNAL_SYSTEM_ID
first_nameFirst name of the pre-customer.YesJohn
last_nameLast name of the pre-customer.YesDoe
document_typeType of document.NoPassport
document_numberDocument number.NoC03004783
phonePhone number of the pre-customer.No+1 555-123-4567
emailEmail address of the pre-customer.Yes[email protected]
addressAddress of the pre-customer.No123 Main St, Cityville, State, 12345
  1. Send the request.

In the JSON response, you will receive the unique identifier of the created pre-customer. You can find it by accessing the data.id property.

Upgrading to customer

After the customer above completes the onboarding process, accepting the terms and conditions, they are ready to be upgraded to customer. To do so, follow these steps:

  1. Make an API call to the Create customer endpoint.
  2. Add the needed information to the request payload, sending the precustomer_id. The available fields of the payload are:
FieldDescriptionRequiredExample
precustomer_idIdentifier for the pre-existing customer.Yes3fa85f64-5717-4562-b3fc-2c963f66afa6
external_idExternal identifier for the customer.NoYOUR_EXTERNAL_SYSTEM_ID
first_nameFirst name of the customer.YesJohn
last_nameLast name of the customer.YesDoe
document_typeType of document.NoPassport
document_numberDocument number.NoC03004783
phonePhone number of the customer.No+1 555-123-4567
emailEmail address of the customer.Yes[email protected]
addressAddress of the customer.No123 Main St, Cityville, State, 12345
personal_accepted_atTimestamp when personal agreement was accepted.No2023-01-15T12:30:00Z
commercial_accepted_atTimestamp when commercial agreement was accepted.No2023-01-15T13:00:00Z
  1. Send the request.

The response JSON, similarly to the previous request, will return you the unique identifier of the created customer, which can be found inside the data.id property.

As the customer is ready and created, they can apply for a credit loan.

Definition of customer status

  • Unregistered: First automatic user status. In this status the user has not yet completed the registration process.
    Actions allowed: complete the registration process through the platform.
  • Enabled: Proactive status that only applies when the user is eligible to apply for a loan. For example, they have no overdue or canceled loans, and have not committed any violations of business rules.
    Actions allowed: make payments (automatic and voluntary) and requests for new loans through the platform.
  • Disabled: Automatic status in which the user is disabled to make new loan requests, may have a loan in default or may have committed violations of business rules..
    Actions allowed: make payments (automatic and voluntary) through the platform.
  • Deleted: Proactive status where user information is permanently hidden from the platform. Hidden information: Names and Surnames, Phone Number, E-mail, Address, National ID..
    Actions allowed: not applicable.
  • Blocked: Automatic status where the user is not allowed to submit new loan requests within the platform. The user's information remains stored in the platform and available for reference..
    Actions allowed: payments outside the platform.