Update an advance
curl --request PATCH \
--url https://api.nextlevelmca.com/v1/advances/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paid_amount": 1,
"payments_made": 1,
"renewal_threshold_override": 50
}
'import requests
url = "https://api.nextlevelmca.com/v1/advances/{id}"
payload = {
"paid_amount": 1,
"payments_made": 1,
"renewal_threshold_override": 50
}
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({paid_amount: 1, payments_made: 1, renewal_threshold_override: 50})
};
fetch('https://api.nextlevelmca.com/v1/advances/{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/advances/{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([
'paid_amount' => 1,
'payments_made' => 1,
'renewal_threshold_override' => 50
]),
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/advances/{id}"
payload := strings.NewReader("{\n \"paid_amount\": 1,\n \"payments_made\": 1,\n \"renewal_threshold_override\": 50\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/advances/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"paid_amount\": 1,\n \"payments_made\": 1,\n \"renewal_threshold_override\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nextlevelmca.com/v1/advances/{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 \"paid_amount\": 1,\n \"payments_made\": 1,\n \"renewal_threshold_override\": 50\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"deal_id": "<string>",
"business_id": "<string>",
"business_name": "<string>",
"lender_id": "<string>",
"lender_name": "<string>",
"offer_id": "<string>",
"status": "on-track",
"funded_amount": 123,
"factor_rate": 123,
"term": 123,
"payment_frequency": "daily",
"payment_amount": 123,
"payback_amount": 123,
"paid_amount": 123,
"remaining_balance": 123,
"percent_paid": 123,
"payments_made": 123,
"payments_expected": 123,
"position": 123,
"renewal_ready": true,
"renewal_threshold": 123,
"renewal_threshold_override": 123,
"funded_at": "<string>",
"first_payment_date": "<string>",
"expected_payoff_date": "<string>",
"actual_payoff_date": "<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>"
}
}Advances
Update an advance
Sets the repayment status, the total paid so far (paid_amount is absolute, not a delta), payments made, or a per-advance renewal threshold override. The status is not derived automatically: set status: "paid-off" yourself when the balance is cleared. Crossing the renewal threshold emits advance.renewal_ready.
PATCH
/
v1
/
advances
/
{id}
Update an advance
curl --request PATCH \
--url https://api.nextlevelmca.com/v1/advances/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paid_amount": 1,
"payments_made": 1,
"renewal_threshold_override": 50
}
'import requests
url = "https://api.nextlevelmca.com/v1/advances/{id}"
payload = {
"paid_amount": 1,
"payments_made": 1,
"renewal_threshold_override": 50
}
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({paid_amount: 1, payments_made: 1, renewal_threshold_override: 50})
};
fetch('https://api.nextlevelmca.com/v1/advances/{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/advances/{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([
'paid_amount' => 1,
'payments_made' => 1,
'renewal_threshold_override' => 50
]),
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/advances/{id}"
payload := strings.NewReader("{\n \"paid_amount\": 1,\n \"payments_made\": 1,\n \"renewal_threshold_override\": 50\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/advances/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"paid_amount\": 1,\n \"payments_made\": 1,\n \"renewal_threshold_override\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nextlevelmca.com/v1/advances/{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 \"paid_amount\": 1,\n \"payments_made\": 1,\n \"renewal_threshold_override\": 50\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"deal_id": "<string>",
"business_id": "<string>",
"business_name": "<string>",
"lender_id": "<string>",
"lender_name": "<string>",
"offer_id": "<string>",
"status": "on-track",
"funded_amount": 123,
"factor_rate": 123,
"term": 123,
"payment_frequency": "daily",
"payment_amount": 123,
"payback_amount": 123,
"paid_amount": 123,
"remaining_balance": 123,
"percent_paid": 123,
"payments_made": 123,
"payments_expected": 123,
"position": 123,
"renewal_ready": true,
"renewal_threshold": 123,
"renewal_threshold_override": 123,
"funded_at": "<string>",
"first_payment_date": "<string>",
"expected_payoff_date": "<string>",
"actual_payoff_date": "<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
Advance id
Body
application/json
New repayment status.
Available options:
on-track, missed-payments, defaulted, paid-off Total paid so far, USD (absolute value, not a delta).
Required range:
x >= 0Payments made so far.
Required range:
x >= 0Renewal threshold override for this advance (0–100). Send null to fall back to the location default.
Required range:
0 <= x <= 100Was this page helpful?