API Specifications

Post Request

This section covers how user information is sent via requests to Engine by MoneyLion's API.

Post Request Endpoints

Engine has two endpoints available to receive requests with user.

(Recommended) Asynchronous Flow

Endpoint: https://api.evenfinancial.com/leads/rateTables Partners building a Native API integration posting user information to this endpoint will need to make a separate request to retrieve offers. This is the more frequently utilized endpoint given the partner’s flexibility to retrieve offers from a separate endpoint.

Synchronous Flow

Endpoint: https://integrations.evenfinancial.com/blocking/leads/rateTables Partners building a Native API integration will receive offers back from Engine’s API after posting user information to this endpoint. Engine’s API will only respond when all financial institution responses have been resolved and as a result, the latency will be higher than the Asynchronous Flow endpoint.

Post Request Authorization

Engine will provide testing and production API access tokens. All requests to the Engine API must be authenticated using a bearer token specified in the Authorization header.

The header value is prefixed with the string “Bearer “, so a properly-authenticated request will look similar to the one here:

Authorization: Bearer 0a930e7f-4a96-4388-8c12-c901a161084e_409cc5f2-4008-11aa-84a4-0b68f163f437

Post Request Body - Object Structure

The required format of the body (JSON) in the request to Engine by MoneyLion's API is as follows:

{
  "productTypes": ["loan"],
  "personalInformation": {
    "firstName": "John",
    "lastName": "Doe",
    "email": "[email protected]",
    "city": "New York",
    "state": "NY",
    "primaryPhone": "2125556789",
    "address1": "175 5th Ave",
    "address2": "Apartment 5",
    "zipcode": "10010",
    "dateOfBirth": "1993-10-09",
    "ssn": "111-22-3333"
  },
  "loanInformation": {
    "purpose": "debt_consolidation",
    "loanAmount": 10000
  },
  "mortgageInformation": {
    "propertyStatus": "own_with_mortgage"
  },
  "creditInformation": {
    "providedCreditRating": "good"
  },
  "financialInformation": {
    "employmentStatus": "employed",
    "employmentPayFrequency": "biweekly",
    "annualIncome": 80000
  },
  "educationInformation": {
    "educationLevel": "bachelors"
  },
  "legalInformation": {
    "consentsToFcra": true,
    "consentsToTcpa": true
  },
  "sessionInformation": {
    "ipAddress": "x.x.x.x"
  }
}

More information about key/value pair formatting and acceptable fields can be found in Engine by Moneylions API Reference (schemas).

productTypes array: "loan" and "other"

In the productTypes array, you may pass ["loan"] (to receive First Look / Personal Loan offers only), ["other"] (to receive Second Look Marketplace offers only), or ["loan", "other"] if you want your leads to eligible for First Look offers when eligible, or else Second Look offers (if no First Look offers are received).

See 2nd Look Marketplace (Channel Partners) for more info.

Response

This section covers how partners building a Native API integration retrieve offers from Engine by MoneyLion's API.

Asynchronous & Synchronous Flow Responses

The method to retrieve offers from Engine by MoneyLion's API and response latency differ depending on which Post Request Endpoint was utilized.

Asynchronous Flow

Partners building a Native API integration will receive a response from Engine’s API almost instantaneously. This response does not contain complete offer information and contains two key fields to retrieve offer information:

  • “uuid”: Engine’s Rate Table UUID which will be used to retrieve offer information

  • “leadUuid”: Engine’s Lead UUID which partners building a Native API integration should store for internal records

Here is an example of the API response for the Asynchronous flow endpoint. Note that “pendingResponses” contains information about the Financial Services partners to whom Engine is sending user information.

In the Asynchronous Flow, partners building a Native API integration must make a secondary request to Even’s API to retrieve offer information. Below are instructions for this secondary request:

  • Capture the “uuid” returned in the initial API response

  • Execute a GET request to Engine’s Offers Endpoint – Link

  • Poll the endpoint once every second up to 15 seconds or until “pendingResponses” is empty

Below is a mock of the API response for Even’s Offers endpoint. Note that “pendingResponses” is empty as Even has already received offers back for the user from all Financial Services partners.

Synchronous Flow

Partners building a Native API integration will receive a response from Engine’s API with more latency than the Asynchronous flow, however the response will contain complete offer information.

Below is a mock of the API response for the Synchronous flow endpoint. Note that “pendingResponses” is empty as Engine has already received offers back for the user from all Financial Services partners.

Response Parsing

Below is the mapping of the required fields for the offer display page to the fields present in the “loanOffers” section of the API response:

For the additional fields required for Secured Loans or Line of Credit products:

Errors

Response types are mapped to HTTP status codes. In particular:

  • 200 OK: when data is successfully returned for a GET request

  • 201 Created: when new data is submitted to via a POST

  • 400 Bad Request: the submitted data is malformed

  • 401 Unauthorized: when the Authorization header is missing, if the value is invalid, or if the corresponding access token lacks the required scopes to complete the request

  • 404 Not Found: the URL is invalid, or the resource ID reference in the URL does not exist

  • 422 Unprocessable Entity: the submitted data is properly formatted, but invalid according to business logic (some legacy endpoints use 409 Conflict in this case)

  • 5xx: server error

Minor version changes to the API are guaranteed to be backwards compatible. Major version changes may break the API, but legacy versions are supported indefinitely.

Last updated