curl --request PATCH \
--url https://api.nextlevelmca.com/v1/deals/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requested_amount": 1,
"use_of_funds": "<string>",
"annual_revenue": 1,
"desired_term_months": 60.5,
"paper_grade": "<string>",
"originator_id": "<string>",
"closer_id": "<string>",
"lead_source": "<string>",
"state_incorporated": "<string>",
"risk_flags": {},
"form_data": {},
"business_name": "<string>",
"dba": "<string>",
"industry": "<string>",
"entity_type": "<string>",
"business_address": "<string>",
"business_city": "<string>",
"business_state": "<string>",
"business_zip": "<string>",
"business_phone": "<string>",
"business_start_date": "<string>"
}
'import requests
url = "https://api.nextlevelmca.com/v1/deals/{id}"
payload = {
"requested_amount": 1,
"use_of_funds": "<string>",
"annual_revenue": 1,
"desired_term_months": 60.5,
"paper_grade": "<string>",
"originator_id": "<string>",
"closer_id": "<string>",
"lead_source": "<string>",
"state_incorporated": "<string>",
"risk_flags": {},
"form_data": {},
"business_name": "<string>",
"dba": "<string>",
"industry": "<string>",
"entity_type": "<string>",
"business_address": "<string>",
"business_city": "<string>",
"business_state": "<string>",
"business_zip": "<string>",
"business_phone": "<string>",
"business_start_date": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requested_amount: 1,
use_of_funds: '<string>',
annual_revenue: 1,
desired_term_months: 60.5,
paper_grade: '<string>',
originator_id: '<string>',
closer_id: '<string>',
lead_source: '<string>',
state_incorporated: '<string>',
risk_flags: {},
form_data: {},
business_name: '<string>',
dba: '<string>',
industry: '<string>',
entity_type: '<string>',
business_address: '<string>',
business_city: '<string>',
business_state: '<string>',
business_zip: '<string>',
business_phone: '<string>',
business_start_date: '<string>'
})
};
fetch('https://api.nextlevelmca.com/v1/deals/{id}', 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/deals/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'requested_amount' => 1,
'use_of_funds' => '<string>',
'annual_revenue' => 1,
'desired_term_months' => 60.5,
'paper_grade' => '<string>',
'originator_id' => '<string>',
'closer_id' => '<string>',
'lead_source' => '<string>',
'state_incorporated' => '<string>',
'risk_flags' => [
],
'form_data' => [
],
'business_name' => '<string>',
'dba' => '<string>',
'industry' => '<string>',
'entity_type' => '<string>',
'business_address' => '<string>',
'business_city' => '<string>',
'business_state' => '<string>',
'business_zip' => '<string>',
'business_phone' => '<string>',
'business_start_date' => '<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/deals/{id}"
payload := strings.NewReader("{\n \"requested_amount\": 1,\n \"use_of_funds\": \"<string>\",\n \"annual_revenue\": 1,\n \"desired_term_months\": 60.5,\n \"paper_grade\": \"<string>\",\n \"originator_id\": \"<string>\",\n \"closer_id\": \"<string>\",\n \"lead_source\": \"<string>\",\n \"state_incorporated\": \"<string>\",\n \"risk_flags\": {},\n \"form_data\": {},\n \"business_name\": \"<string>\",\n \"dba\": \"<string>\",\n \"industry\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"business_address\": \"<string>\",\n \"business_city\": \"<string>\",\n \"business_state\": \"<string>\",\n \"business_zip\": \"<string>\",\n \"business_phone\": \"<string>\",\n \"business_start_date\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.nextlevelmca.com/v1/deals/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requested_amount\": 1,\n \"use_of_funds\": \"<string>\",\n \"annual_revenue\": 1,\n \"desired_term_months\": 60.5,\n \"paper_grade\": \"<string>\",\n \"originator_id\": \"<string>\",\n \"closer_id\": \"<string>\",\n \"lead_source\": \"<string>\",\n \"state_incorporated\": \"<string>\",\n \"risk_flags\": {},\n \"form_data\": {},\n \"business_name\": \"<string>\",\n \"dba\": \"<string>\",\n \"industry\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"business_address\": \"<string>\",\n \"business_city\": \"<string>\",\n \"business_state\": \"<string>\",\n \"business_zip\": \"<string>\",\n \"business_phone\": \"<string>\",\n \"business_start_date\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nextlevelmca.com/v1/deals/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requested_amount\": 1,\n \"use_of_funds\": \"<string>\",\n \"annual_revenue\": 1,\n \"desired_term_months\": 60.5,\n \"paper_grade\": \"<string>\",\n \"originator_id\": \"<string>\",\n \"closer_id\": \"<string>\",\n \"lead_source\": \"<string>\",\n \"state_incorporated\": \"<string>\",\n \"risk_flags\": {},\n \"form_data\": {},\n \"business_name\": \"<string>\",\n \"dba\": \"<string>\",\n \"industry\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"business_address\": \"<string>\",\n \"business_city\": \"<string>\",\n \"business_state\": \"<string>\",\n \"business_zip\": \"<string>\",\n \"business_phone\": \"<string>\",\n \"business_start_date\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"business_id": "<string>",
"business": {
"id": "<string>",
"legal_name": "<string>",
"dba": "<string>"
},
"business_name": "<string>",
"dba": "<string>",
"entity_type": "<string>",
"industry": "<string>",
"business_address": "<string>",
"business_city": "<string>",
"business_state": "<string>",
"business_zip": "<string>",
"business_phone": "<string>",
"business_start_date": "<string>",
"state_incorporated": "<string>",
"owner": {
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone": "<string>"
},
"requested_amount": 123,
"annual_revenue": 123,
"use_of_funds": "<string>",
"product_type": "mca",
"desired_term_months": 123,
"desired_frequency": "daily",
"paper_grade": "<string>",
"paper_grade_source": "<string>",
"risk_flags": {},
"status": "<string>",
"stage": {
"id": "<string>",
"label": "<string>",
"phase": "preoffer",
"sort_order": 123,
"event": "first_submission_sent"
},
"stage_entered_at": "<string>",
"days_in_stage": 123,
"primary_offer": {
"id": "<string>",
"lender_id": "<string>",
"lender_name": "<string>",
"amount": 123,
"factor_rate": 123,
"status": "<string>"
},
"originator": {
"id": "<string>",
"name": "<string>"
},
"closer": {
"id": "<string>",
"name": "<string>"
},
"source": "<string>",
"lead_source": "<string>",
"form_data": {},
"submissions_count": 123,
"offers_count": 123,
"renewal_of_deal_id": "<string>",
"renewal_of_advance_id": "<string>",
"manually_closed": true,
"closed_at": "<string>",
"closed_reason": "<string>",
"ghl_contact_id": "<string>",
"ghl_opportunity_id": "<string>",
"created_at": "<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>"
}
}Update a deal
Partial update of deal fields. form_data is a JSON merge-patch: nested objects merge, null deletes a key, arrays and scalars replace. Setting paper_grade marks it as a manual override. Stage changes go through POST /v1/deals/{id}/stage.
curl --request PATCH \
--url https://api.nextlevelmca.com/v1/deals/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requested_amount": 1,
"use_of_funds": "<string>",
"annual_revenue": 1,
"desired_term_months": 60.5,
"paper_grade": "<string>",
"originator_id": "<string>",
"closer_id": "<string>",
"lead_source": "<string>",
"state_incorporated": "<string>",
"risk_flags": {},
"form_data": {},
"business_name": "<string>",
"dba": "<string>",
"industry": "<string>",
"entity_type": "<string>",
"business_address": "<string>",
"business_city": "<string>",
"business_state": "<string>",
"business_zip": "<string>",
"business_phone": "<string>",
"business_start_date": "<string>"
}
'import requests
url = "https://api.nextlevelmca.com/v1/deals/{id}"
payload = {
"requested_amount": 1,
"use_of_funds": "<string>",
"annual_revenue": 1,
"desired_term_months": 60.5,
"paper_grade": "<string>",
"originator_id": "<string>",
"closer_id": "<string>",
"lead_source": "<string>",
"state_incorporated": "<string>",
"risk_flags": {},
"form_data": {},
"business_name": "<string>",
"dba": "<string>",
"industry": "<string>",
"entity_type": "<string>",
"business_address": "<string>",
"business_city": "<string>",
"business_state": "<string>",
"business_zip": "<string>",
"business_phone": "<string>",
"business_start_date": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requested_amount: 1,
use_of_funds: '<string>',
annual_revenue: 1,
desired_term_months: 60.5,
paper_grade: '<string>',
originator_id: '<string>',
closer_id: '<string>',
lead_source: '<string>',
state_incorporated: '<string>',
risk_flags: {},
form_data: {},
business_name: '<string>',
dba: '<string>',
industry: '<string>',
entity_type: '<string>',
business_address: '<string>',
business_city: '<string>',
business_state: '<string>',
business_zip: '<string>',
business_phone: '<string>',
business_start_date: '<string>'
})
};
fetch('https://api.nextlevelmca.com/v1/deals/{id}', 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/deals/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'requested_amount' => 1,
'use_of_funds' => '<string>',
'annual_revenue' => 1,
'desired_term_months' => 60.5,
'paper_grade' => '<string>',
'originator_id' => '<string>',
'closer_id' => '<string>',
'lead_source' => '<string>',
'state_incorporated' => '<string>',
'risk_flags' => [
],
'form_data' => [
],
'business_name' => '<string>',
'dba' => '<string>',
'industry' => '<string>',
'entity_type' => '<string>',
'business_address' => '<string>',
'business_city' => '<string>',
'business_state' => '<string>',
'business_zip' => '<string>',
'business_phone' => '<string>',
'business_start_date' => '<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/deals/{id}"
payload := strings.NewReader("{\n \"requested_amount\": 1,\n \"use_of_funds\": \"<string>\",\n \"annual_revenue\": 1,\n \"desired_term_months\": 60.5,\n \"paper_grade\": \"<string>\",\n \"originator_id\": \"<string>\",\n \"closer_id\": \"<string>\",\n \"lead_source\": \"<string>\",\n \"state_incorporated\": \"<string>\",\n \"risk_flags\": {},\n \"form_data\": {},\n \"business_name\": \"<string>\",\n \"dba\": \"<string>\",\n \"industry\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"business_address\": \"<string>\",\n \"business_city\": \"<string>\",\n \"business_state\": \"<string>\",\n \"business_zip\": \"<string>\",\n \"business_phone\": \"<string>\",\n \"business_start_date\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.nextlevelmca.com/v1/deals/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requested_amount\": 1,\n \"use_of_funds\": \"<string>\",\n \"annual_revenue\": 1,\n \"desired_term_months\": 60.5,\n \"paper_grade\": \"<string>\",\n \"originator_id\": \"<string>\",\n \"closer_id\": \"<string>\",\n \"lead_source\": \"<string>\",\n \"state_incorporated\": \"<string>\",\n \"risk_flags\": {},\n \"form_data\": {},\n \"business_name\": \"<string>\",\n \"dba\": \"<string>\",\n \"industry\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"business_address\": \"<string>\",\n \"business_city\": \"<string>\",\n \"business_state\": \"<string>\",\n \"business_zip\": \"<string>\",\n \"business_phone\": \"<string>\",\n \"business_start_date\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nextlevelmca.com/v1/deals/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requested_amount\": 1,\n \"use_of_funds\": \"<string>\",\n \"annual_revenue\": 1,\n \"desired_term_months\": 60.5,\n \"paper_grade\": \"<string>\",\n \"originator_id\": \"<string>\",\n \"closer_id\": \"<string>\",\n \"lead_source\": \"<string>\",\n \"state_incorporated\": \"<string>\",\n \"risk_flags\": {},\n \"form_data\": {},\n \"business_name\": \"<string>\",\n \"dba\": \"<string>\",\n \"industry\": \"<string>\",\n \"entity_type\": \"<string>\",\n \"business_address\": \"<string>\",\n \"business_city\": \"<string>\",\n \"business_state\": \"<string>\",\n \"business_zip\": \"<string>\",\n \"business_phone\": \"<string>\",\n \"business_start_date\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"business_id": "<string>",
"business": {
"id": "<string>",
"legal_name": "<string>",
"dba": "<string>"
},
"business_name": "<string>",
"dba": "<string>",
"entity_type": "<string>",
"industry": "<string>",
"business_address": "<string>",
"business_city": "<string>",
"business_state": "<string>",
"business_zip": "<string>",
"business_phone": "<string>",
"business_start_date": "<string>",
"state_incorporated": "<string>",
"owner": {
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"phone": "<string>"
},
"requested_amount": 123,
"annual_revenue": 123,
"use_of_funds": "<string>",
"product_type": "mca",
"desired_term_months": 123,
"desired_frequency": "daily",
"paper_grade": "<string>",
"paper_grade_source": "<string>",
"risk_flags": {},
"status": "<string>",
"stage": {
"id": "<string>",
"label": "<string>",
"phase": "preoffer",
"sort_order": 123,
"event": "first_submission_sent"
},
"stage_entered_at": "<string>",
"days_in_stage": 123,
"primary_offer": {
"id": "<string>",
"lender_id": "<string>",
"lender_name": "<string>",
"amount": 123,
"factor_rate": 123,
"status": "<string>"
},
"originator": {
"id": "<string>",
"name": "<string>"
},
"closer": {
"id": "<string>",
"name": "<string>"
},
"source": "<string>",
"lead_source": "<string>",
"form_data": {},
"submissions_count": 123,
"offers_count": 123,
"renewal_of_deal_id": "<string>",
"renewal_of_advance_id": "<string>",
"manually_closed": true,
"closed_at": "<string>",
"closed_reason": "<string>",
"ghl_contact_id": "<string>",
"ghl_opportunity_id": "<string>",
"created_at": "<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
Deal id
Body
Requested funding amount in dollars.
x >= 02000Stated annual revenue in dollars.
x >= 0mca, term_loan, loc, equipment, factoring 1 <= x <= 120daily, weekly, bi-weekly, monthly Paper grade override (A–D); marks paper_grade_source as manual.
10Originator (user id).
Closer (user id).
10050Replaces the whole risk_flags object.
JSON merge-patch (RFC 7396) onto the deal’s form_data: nested objects merge key by key, a null value deletes the key, arrays and scalars replace.
Business name as captured on this deal (the linked business record is separate).
25525510050100502050YYYY-MM-DD.
Was this page helpful?