Replace lender criteria
curl --request PUT \
--url https://api.nextlevelmca.com/v1/lenders/{id}/criteria \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"criteria": {
"min_tib": 123,
"min_monthly_revenue": 123,
"min_deposits": 123,
"min_avg_balance": 123,
"industries": [
"<string>"
],
"prohibited_industries": [
"<string>"
],
"prohibited_states": [
"<string>"
],
"min_credit_score": 123,
"min_positions": 123,
"max_positions": 123,
"max_nsf_days": 123,
"max_negative_days": 123,
"funds_defaults": true,
"funds_reversals": true,
"no_recovery_activity": true,
"min_funding_amount": 123,
"max_funding_amount": 123,
"term": 123,
"lowest_days": 123,
"highest_days": 123,
"pay_daily": true,
"pay_weekly": true,
"pay_biweekly": true,
"pay_monthly": true
},
"products": {
"mca": true,
"term_loan": true,
"loc": true,
"equipment": true,
"factoring": true
},
"extra_rules": [
{
"field": "<string>",
"value": "<string>",
"display_label": "<string>"
}
]
}
'import requests
url = "https://api.nextlevelmca.com/v1/lenders/{id}/criteria"
payload = {
"criteria": {
"min_tib": 123,
"min_monthly_revenue": 123,
"min_deposits": 123,
"min_avg_balance": 123,
"industries": ["<string>"],
"prohibited_industries": ["<string>"],
"prohibited_states": ["<string>"],
"min_credit_score": 123,
"min_positions": 123,
"max_positions": 123,
"max_nsf_days": 123,
"max_negative_days": 123,
"funds_defaults": True,
"funds_reversals": True,
"no_recovery_activity": True,
"min_funding_amount": 123,
"max_funding_amount": 123,
"term": 123,
"lowest_days": 123,
"highest_days": 123,
"pay_daily": True,
"pay_weekly": True,
"pay_biweekly": True,
"pay_monthly": True
},
"products": {
"mca": True,
"term_loan": True,
"loc": True,
"equipment": True,
"factoring": True
},
"extra_rules": [
{
"field": "<string>",
"value": "<string>",
"display_label": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
criteria: {
min_tib: 123,
min_monthly_revenue: 123,
min_deposits: 123,
min_avg_balance: 123,
industries: ['<string>'],
prohibited_industries: ['<string>'],
prohibited_states: ['<string>'],
min_credit_score: 123,
min_positions: 123,
max_positions: 123,
max_nsf_days: 123,
max_negative_days: 123,
funds_defaults: true,
funds_reversals: true,
no_recovery_activity: true,
min_funding_amount: 123,
max_funding_amount: 123,
term: 123,
lowest_days: 123,
highest_days: 123,
pay_daily: true,
pay_weekly: true,
pay_biweekly: true,
pay_monthly: true
},
products: {mca: true, term_loan: true, loc: true, equipment: true, factoring: true},
extra_rules: [{field: '<string>', value: '<string>', display_label: '<string>'}]
})
};
fetch('https://api.nextlevelmca.com/v1/lenders/{id}/criteria', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nextlevelmca.com/v1/lenders/{id}/criteria",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'criteria' => [
'min_tib' => 123,
'min_monthly_revenue' => 123,
'min_deposits' => 123,
'min_avg_balance' => 123,
'industries' => [
'<string>'
],
'prohibited_industries' => [
'<string>'
],
'prohibited_states' => [
'<string>'
],
'min_credit_score' => 123,
'min_positions' => 123,
'max_positions' => 123,
'max_nsf_days' => 123,
'max_negative_days' => 123,
'funds_defaults' => true,
'funds_reversals' => true,
'no_recovery_activity' => true,
'min_funding_amount' => 123,
'max_funding_amount' => 123,
'term' => 123,
'lowest_days' => 123,
'highest_days' => 123,
'pay_daily' => true,
'pay_weekly' => true,
'pay_biweekly' => true,
'pay_monthly' => true
],
'products' => [
'mca' => true,
'term_loan' => true,
'loc' => true,
'equipment' => true,
'factoring' => true
],
'extra_rules' => [
[
'field' => '<string>',
'value' => '<string>',
'display_label' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nextlevelmca.com/v1/lenders/{id}/criteria"
payload := strings.NewReader("{\n \"criteria\": {\n \"min_tib\": 123,\n \"min_monthly_revenue\": 123,\n \"min_deposits\": 123,\n \"min_avg_balance\": 123,\n \"industries\": [\n \"<string>\"\n ],\n \"prohibited_industries\": [\n \"<string>\"\n ],\n \"prohibited_states\": [\n \"<string>\"\n ],\n \"min_credit_score\": 123,\n \"min_positions\": 123,\n \"max_positions\": 123,\n \"max_nsf_days\": 123,\n \"max_negative_days\": 123,\n \"funds_defaults\": true,\n \"funds_reversals\": true,\n \"no_recovery_activity\": true,\n \"min_funding_amount\": 123,\n \"max_funding_amount\": 123,\n \"term\": 123,\n \"lowest_days\": 123,\n \"highest_days\": 123,\n \"pay_daily\": true,\n \"pay_weekly\": true,\n \"pay_biweekly\": true,\n \"pay_monthly\": true\n },\n \"products\": {\n \"mca\": true,\n \"term_loan\": true,\n \"loc\": true,\n \"equipment\": true,\n \"factoring\": true\n },\n \"extra_rules\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\",\n \"display_label\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.nextlevelmca.com/v1/lenders/{id}/criteria")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"criteria\": {\n \"min_tib\": 123,\n \"min_monthly_revenue\": 123,\n \"min_deposits\": 123,\n \"min_avg_balance\": 123,\n \"industries\": [\n \"<string>\"\n ],\n \"prohibited_industries\": [\n \"<string>\"\n ],\n \"prohibited_states\": [\n \"<string>\"\n ],\n \"min_credit_score\": 123,\n \"min_positions\": 123,\n \"max_positions\": 123,\n \"max_nsf_days\": 123,\n \"max_negative_days\": 123,\n \"funds_defaults\": true,\n \"funds_reversals\": true,\n \"no_recovery_activity\": true,\n \"min_funding_amount\": 123,\n \"max_funding_amount\": 123,\n \"term\": 123,\n \"lowest_days\": 123,\n \"highest_days\": 123,\n \"pay_daily\": true,\n \"pay_weekly\": true,\n \"pay_biweekly\": true,\n \"pay_monthly\": true\n },\n \"products\": {\n \"mca\": true,\n \"term_loan\": true,\n \"loc\": true,\n \"equipment\": true,\n \"factoring\": true\n },\n \"extra_rules\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\",\n \"display_label\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nextlevelmca.com/v1/lenders/{id}/criteria")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"criteria\": {\n \"min_tib\": 123,\n \"min_monthly_revenue\": 123,\n \"min_deposits\": 123,\n \"min_avg_balance\": 123,\n \"industries\": [\n \"<string>\"\n ],\n \"prohibited_industries\": [\n \"<string>\"\n ],\n \"prohibited_states\": [\n \"<string>\"\n ],\n \"min_credit_score\": 123,\n \"min_positions\": 123,\n \"max_positions\": 123,\n \"max_nsf_days\": 123,\n \"max_negative_days\": 123,\n \"funds_defaults\": true,\n \"funds_reversals\": true,\n \"no_recovery_activity\": true,\n \"min_funding_amount\": 123,\n \"max_funding_amount\": 123,\n \"term\": 123,\n \"lowest_days\": 123,\n \"highest_days\": 123,\n \"pay_daily\": true,\n \"pay_weekly\": true,\n \"pay_biweekly\": true,\n \"pay_monthly\": true\n },\n \"products\": {\n \"mca\": true,\n \"term_loan\": true,\n \"loc\": true,\n \"equipment\": true,\n \"factoring\": true\n },\n \"extra_rules\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\",\n \"display_label\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"criteria": {
"min_tib": 123,
"min_monthly_revenue": 123,
"min_deposits": 123,
"min_avg_balance": 123,
"industries": [
"<string>"
],
"prohibited_industries": [
"<string>"
],
"prohibited_states": [
"<string>"
],
"min_credit_score": 123,
"credit_score_range": "any",
"min_positions": 123,
"max_positions": 123,
"max_nsf_days": 123,
"max_negative_days": 123,
"funds_defaults": true,
"funds_reversals": true,
"no_recovery_activity": true,
"min_funding_amount": 123,
"max_funding_amount": 123,
"term": 123,
"lowest_days": 123,
"highest_days": 123,
"pay_daily": true,
"pay_weekly": true,
"pay_biweekly": true,
"pay_monthly": true
},
"products": {
"mca": true,
"term_loan": true,
"loc": true,
"equipment": true,
"factoring": true
},
"extra_rules": [
{
"field": "<string>",
"operator": "gte",
"value": "<string>",
"display_label": "<string>"
}
],
"updated_at": "<string>"
},
"meta": {}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}Lenders
Replace lender criteria
Full replace. criteria overwrites every structured key (omitted keys are cleared; blank and false values are dropped); extra_rules replaces all extra rules (omit or send [] to clear); products only changes when sent. Read the current block first if you want to change one key. The change is written to the lender’s activity log.
PUT
/
v1
/
lenders
/
{id}
/
criteria
Replace lender criteria
curl --request PUT \
--url https://api.nextlevelmca.com/v1/lenders/{id}/criteria \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"criteria": {
"min_tib": 123,
"min_monthly_revenue": 123,
"min_deposits": 123,
"min_avg_balance": 123,
"industries": [
"<string>"
],
"prohibited_industries": [
"<string>"
],
"prohibited_states": [
"<string>"
],
"min_credit_score": 123,
"min_positions": 123,
"max_positions": 123,
"max_nsf_days": 123,
"max_negative_days": 123,
"funds_defaults": true,
"funds_reversals": true,
"no_recovery_activity": true,
"min_funding_amount": 123,
"max_funding_amount": 123,
"term": 123,
"lowest_days": 123,
"highest_days": 123,
"pay_daily": true,
"pay_weekly": true,
"pay_biweekly": true,
"pay_monthly": true
},
"products": {
"mca": true,
"term_loan": true,
"loc": true,
"equipment": true,
"factoring": true
},
"extra_rules": [
{
"field": "<string>",
"value": "<string>",
"display_label": "<string>"
}
]
}
'import requests
url = "https://api.nextlevelmca.com/v1/lenders/{id}/criteria"
payload = {
"criteria": {
"min_tib": 123,
"min_monthly_revenue": 123,
"min_deposits": 123,
"min_avg_balance": 123,
"industries": ["<string>"],
"prohibited_industries": ["<string>"],
"prohibited_states": ["<string>"],
"min_credit_score": 123,
"min_positions": 123,
"max_positions": 123,
"max_nsf_days": 123,
"max_negative_days": 123,
"funds_defaults": True,
"funds_reversals": True,
"no_recovery_activity": True,
"min_funding_amount": 123,
"max_funding_amount": 123,
"term": 123,
"lowest_days": 123,
"highest_days": 123,
"pay_daily": True,
"pay_weekly": True,
"pay_biweekly": True,
"pay_monthly": True
},
"products": {
"mca": True,
"term_loan": True,
"loc": True,
"equipment": True,
"factoring": True
},
"extra_rules": [
{
"field": "<string>",
"value": "<string>",
"display_label": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
criteria: {
min_tib: 123,
min_monthly_revenue: 123,
min_deposits: 123,
min_avg_balance: 123,
industries: ['<string>'],
prohibited_industries: ['<string>'],
prohibited_states: ['<string>'],
min_credit_score: 123,
min_positions: 123,
max_positions: 123,
max_nsf_days: 123,
max_negative_days: 123,
funds_defaults: true,
funds_reversals: true,
no_recovery_activity: true,
min_funding_amount: 123,
max_funding_amount: 123,
term: 123,
lowest_days: 123,
highest_days: 123,
pay_daily: true,
pay_weekly: true,
pay_biweekly: true,
pay_monthly: true
},
products: {mca: true, term_loan: true, loc: true, equipment: true, factoring: true},
extra_rules: [{field: '<string>', value: '<string>', display_label: '<string>'}]
})
};
fetch('https://api.nextlevelmca.com/v1/lenders/{id}/criteria', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nextlevelmca.com/v1/lenders/{id}/criteria",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'criteria' => [
'min_tib' => 123,
'min_monthly_revenue' => 123,
'min_deposits' => 123,
'min_avg_balance' => 123,
'industries' => [
'<string>'
],
'prohibited_industries' => [
'<string>'
],
'prohibited_states' => [
'<string>'
],
'min_credit_score' => 123,
'min_positions' => 123,
'max_positions' => 123,
'max_nsf_days' => 123,
'max_negative_days' => 123,
'funds_defaults' => true,
'funds_reversals' => true,
'no_recovery_activity' => true,
'min_funding_amount' => 123,
'max_funding_amount' => 123,
'term' => 123,
'lowest_days' => 123,
'highest_days' => 123,
'pay_daily' => true,
'pay_weekly' => true,
'pay_biweekly' => true,
'pay_monthly' => true
],
'products' => [
'mca' => true,
'term_loan' => true,
'loc' => true,
'equipment' => true,
'factoring' => true
],
'extra_rules' => [
[
'field' => '<string>',
'value' => '<string>',
'display_label' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.nextlevelmca.com/v1/lenders/{id}/criteria"
payload := strings.NewReader("{\n \"criteria\": {\n \"min_tib\": 123,\n \"min_monthly_revenue\": 123,\n \"min_deposits\": 123,\n \"min_avg_balance\": 123,\n \"industries\": [\n \"<string>\"\n ],\n \"prohibited_industries\": [\n \"<string>\"\n ],\n \"prohibited_states\": [\n \"<string>\"\n ],\n \"min_credit_score\": 123,\n \"min_positions\": 123,\n \"max_positions\": 123,\n \"max_nsf_days\": 123,\n \"max_negative_days\": 123,\n \"funds_defaults\": true,\n \"funds_reversals\": true,\n \"no_recovery_activity\": true,\n \"min_funding_amount\": 123,\n \"max_funding_amount\": 123,\n \"term\": 123,\n \"lowest_days\": 123,\n \"highest_days\": 123,\n \"pay_daily\": true,\n \"pay_weekly\": true,\n \"pay_biweekly\": true,\n \"pay_monthly\": true\n },\n \"products\": {\n \"mca\": true,\n \"term_loan\": true,\n \"loc\": true,\n \"equipment\": true,\n \"factoring\": true\n },\n \"extra_rules\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\",\n \"display_label\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.nextlevelmca.com/v1/lenders/{id}/criteria")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"criteria\": {\n \"min_tib\": 123,\n \"min_monthly_revenue\": 123,\n \"min_deposits\": 123,\n \"min_avg_balance\": 123,\n \"industries\": [\n \"<string>\"\n ],\n \"prohibited_industries\": [\n \"<string>\"\n ],\n \"prohibited_states\": [\n \"<string>\"\n ],\n \"min_credit_score\": 123,\n \"min_positions\": 123,\n \"max_positions\": 123,\n \"max_nsf_days\": 123,\n \"max_negative_days\": 123,\n \"funds_defaults\": true,\n \"funds_reversals\": true,\n \"no_recovery_activity\": true,\n \"min_funding_amount\": 123,\n \"max_funding_amount\": 123,\n \"term\": 123,\n \"lowest_days\": 123,\n \"highest_days\": 123,\n \"pay_daily\": true,\n \"pay_weekly\": true,\n \"pay_biweekly\": true,\n \"pay_monthly\": true\n },\n \"products\": {\n \"mca\": true,\n \"term_loan\": true,\n \"loc\": true,\n \"equipment\": true,\n \"factoring\": true\n },\n \"extra_rules\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\",\n \"display_label\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nextlevelmca.com/v1/lenders/{id}/criteria")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"criteria\": {\n \"min_tib\": 123,\n \"min_monthly_revenue\": 123,\n \"min_deposits\": 123,\n \"min_avg_balance\": 123,\n \"industries\": [\n \"<string>\"\n ],\n \"prohibited_industries\": [\n \"<string>\"\n ],\n \"prohibited_states\": [\n \"<string>\"\n ],\n \"min_credit_score\": 123,\n \"min_positions\": 123,\n \"max_positions\": 123,\n \"max_nsf_days\": 123,\n \"max_negative_days\": 123,\n \"funds_defaults\": true,\n \"funds_reversals\": true,\n \"no_recovery_activity\": true,\n \"min_funding_amount\": 123,\n \"max_funding_amount\": 123,\n \"term\": 123,\n \"lowest_days\": 123,\n \"highest_days\": 123,\n \"pay_daily\": true,\n \"pay_weekly\": true,\n \"pay_biweekly\": true,\n \"pay_monthly\": true\n },\n \"products\": {\n \"mca\": true,\n \"term_loan\": true,\n \"loc\": true,\n \"equipment\": true,\n \"factoring\": true\n },\n \"extra_rules\": [\n {\n \"field\": \"<string>\",\n \"value\": \"<string>\",\n \"display_label\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"criteria": {
"min_tib": 123,
"min_monthly_revenue": 123,
"min_deposits": 123,
"min_avg_balance": 123,
"industries": [
"<string>"
],
"prohibited_industries": [
"<string>"
],
"prohibited_states": [
"<string>"
],
"min_credit_score": 123,
"credit_score_range": "any",
"min_positions": 123,
"max_positions": 123,
"max_nsf_days": 123,
"max_negative_days": 123,
"funds_defaults": true,
"funds_reversals": true,
"no_recovery_activity": true,
"min_funding_amount": 123,
"max_funding_amount": 123,
"term": 123,
"lowest_days": 123,
"highest_days": 123,
"pay_daily": true,
"pay_weekly": true,
"pay_biweekly": true,
"pay_monthly": true
},
"products": {
"mca": true,
"term_loan": true,
"loc": true,
"equipment": true,
"factoring": true
},
"extra_rules": [
{
"field": "<string>",
"operator": "gte",
"value": "<string>",
"display_label": "<string>"
}
],
"updated_at": "<string>"
},
"meta": {}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}Authorizations
API key (nlmca_live_…) or OAuth access token
Path Parameters
Lender id
Body
application/json
Full replacement of the structured criteria. Keys you omit are cleared. Send {} to clear everything.
Show child attributes
Show child attributes
Products the lender writes. Unchanged when omitted.
Show child attributes
Show child attributes
Full replacement of the extra rules. Omit or send [] to remove them all.
Show child attributes
Show child attributes
Was this page helpful?