Create an application and get a decision

Submit an applicant and get a credit decision back in one call, without setting up a Flow Builder flow.

The body takes the same fields as Create application, with first_name, last_name and email required, plus a required decision_tree_id. The call creates the application, runs the decision tree (including the data sources it calls), then runs the pricing engines linked in Product Studio to the resulting outcome and product.

Response. The new application's id, app_number and customer_id, plus:

  • decision: approve, decline or review.
  • reason: why.
  • result: the matching offers, in the same row format as Run Pricing Engine; [] when none matched.
  • pricing_status: completed (offers returned), no_match (pricing ran but no offer matched the applicant, or no engine is linked to the outcome and product), failed (an engine errored and no offer came back; the decision still stands) or not_run (no outcome).

If the decision can't be completed after the application is created, you still get the application back with decision: "review", and it is queued for manual review.

Good to know.

  • The call is synchronous: data sources, pricing and the decision run while you wait. Set your client timeout to at least 90 seconds.
  • Every call creates a new application. There is no idempotency key; with multiple applications per email turned off, a repeat with the same email returns Email already in use - try another.
  • New-application notifications are off unless you set send_notifications: true.
  • Sandbox keys (test_) create the application and run the tree in Sandbox.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
uuid
required

Required. The session UUID of an active, published decision tree in your account. Live keys (live_) use Live trees and sandbox keys (test_) use Sandbox trees; the UUIDs differ between environments.

string
required

First name

string
required

Last name

string

Address line 1. address1 is also accepted as an alias.

string

Optional second line of the address

string
string

state, for example NY, CA

string

5 digit zipcode. zipcode is also accepted as an alias.

string
required
string

Mobile number, for example 9490001234

string
string

birth date in format MM/DD/YYYY

data
object

LendAPI variable key/value pairs as a JSON object, for values your decision tree or pricing needs that are not fields above, for example {"requested_loan_amount": 15000, "loan_term": 36}.

int32

Optional. Without it, the application uses the decision tree's product, or your only active product if you have exactly one. When the tree has a product, a different product_id is rejected with 400.

string

This is the UUID of the tenant, such as 550e8400-e29b-41d4-a716-446655440000

string

Middle name

string

An identifier to associate this application with a lead

tag_names
array of strings

Up to 3 tag names to apply to the application. Names past the third are dropped, not rejected. Each name is cut at 30 characters.

tag_names
boolean

Recalculate this tenant's derived variables for the application after creation

string

Code of a branch on the sub-tenant given by tenant_id. Applied only when that sub-tenant exists, has branches enabled, and the code matches one of its active branches. Any other value is ignored and the request still succeeds.

boolean

Set to true to send the new-application notifications and product emails. Off when omitted.

Responses

401

The API key is not valid.

403

No Authorization header was sent.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json