Update a lender
curl --request PATCH \
--url https://api.nextlevelmca.com/v1/lenders/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"status": "active",
"paper_grades": [],
"tags": [
"<string>"
],
"products": {
"mca": true,
"term_loan": true,
"loc": true,
"equipment": true,
"factoring": true,
"reverse_consolidation": true
},
"use_api": true,
"contact_name": "<string>",
"email": "<string>",
"phone": "<string>",
"submissions_emails": [
"<string>"
],
"payment_terms": "<string>",
"clawback_period": 1,
"default_commission": 50,
"notes": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
status: 'active',
paper_grades: [],
tags: ['<string>'],
products: {
mca: true,
term_loan: true,
loc: true,
equipment: true,
factoring: true,
reverse_consolidation: true
},
use_api: true,
contact_name: '<string>',
email: '<string>',
phone: '<string>',
submissions_emails: ['<string>'],
payment_terms: '<string>',
clawback_period: 1,
default_commission: 50,
notes: '<string>'
})
};
fetch('https://api.nextlevelmca.com/v1/lenders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.nextlevelmca.com/v1/lenders/{id}"
payload = {
"name": "<string>",
"status": "active",
"paper_grades": [],
"tags": ["<string>"],
"products": {
"mca": True,
"term_loan": True,
"loc": True,
"equipment": True,
"factoring": True,
"reverse_consolidation": True
},
"use_api": True,
"contact_name": "<string>",
"email": "<string>",
"phone": "<string>",
"submissions_emails": ["<string>"],
"payment_terms": "<string>",
"clawback_period": 1,
"default_commission": 50,
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "<string>",
"name": "<string>",
"status": "active",
"paper_grades": [
"A"
],
"tags": [
"<string>"
],
"products": {
"mca": true,
"term_loan": true,
"loc": true,
"equipment": true,
"factoring": true,
"reverse_consolidation": true
},
"use_api": true,
"submission_method": "email",
"catalog_slug": "<string>",
"funder_api_spec_id": "<string>",
"api_environment": "development",
"contact_name": "<string>",
"email": "<string>",
"phone": "<string>",
"submissions_emails": [
"<string>"
],
"payment_terms": "<string>",
"clawback_period": 123,
"clawback_unit": "days",
"default_commission": 123,
"notes": "<string>",
"criteria_count": 123,
"criteria_updated_at": "<string>",
"kpis": {
"submissions_count": 123,
"decided_count": 123,
"approved_count": 123,
"approval_rate": 123,
"avg_deal_size": 123,
"total_funded": 123,
"total_advances": 123,
"last_submission_at": "<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>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}Lenders
Update a lender
Partial update: only the fields you send change. Criteria are managed through PUT /lenders/{id}/criteria.
PATCH
/
v1
/
lenders
/
{id}
Update a lender
curl --request PATCH \
--url https://api.nextlevelmca.com/v1/lenders/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"status": "active",
"paper_grades": [],
"tags": [
"<string>"
],
"products": {
"mca": true,
"term_loan": true,
"loc": true,
"equipment": true,
"factoring": true,
"reverse_consolidation": true
},
"use_api": true,
"contact_name": "<string>",
"email": "<string>",
"phone": "<string>",
"submissions_emails": [
"<string>"
],
"payment_terms": "<string>",
"clawback_period": 1,
"default_commission": 50,
"notes": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
status: 'active',
paper_grades: [],
tags: ['<string>'],
products: {
mca: true,
term_loan: true,
loc: true,
equipment: true,
factoring: true,
reverse_consolidation: true
},
use_api: true,
contact_name: '<string>',
email: '<string>',
phone: '<string>',
submissions_emails: ['<string>'],
payment_terms: '<string>',
clawback_period: 1,
default_commission: 50,
notes: '<string>'
})
};
fetch('https://api.nextlevelmca.com/v1/lenders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.nextlevelmca.com/v1/lenders/{id}"
payload = {
"name": "<string>",
"status": "active",
"paper_grades": [],
"tags": ["<string>"],
"products": {
"mca": True,
"term_loan": True,
"loc": True,
"equipment": True,
"factoring": True,
"reverse_consolidation": True
},
"use_api": True,
"contact_name": "<string>",
"email": "<string>",
"phone": "<string>",
"submissions_emails": ["<string>"],
"payment_terms": "<string>",
"clawback_period": 1,
"default_commission": 50,
"notes": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "<string>",
"name": "<string>",
"status": "active",
"paper_grades": [
"A"
],
"tags": [
"<string>"
],
"products": {
"mca": true,
"term_loan": true,
"loc": true,
"equipment": true,
"factoring": true,
"reverse_consolidation": true
},
"use_api": true,
"submission_method": "email",
"catalog_slug": "<string>",
"funder_api_spec_id": "<string>",
"api_environment": "development",
"contact_name": "<string>",
"email": "<string>",
"phone": "<string>",
"submissions_emails": [
"<string>"
],
"payment_terms": "<string>",
"clawback_period": 123,
"clawback_unit": "days",
"default_commission": 123,
"notes": "<string>",
"criteria_count": 123,
"criteria_updated_at": "<string>",
"kpis": {
"submissions_count": 123,
"decided_count": 123,
"approved_count": 123,
"approval_rate": 123,
"avg_deal_size": 123,
"total_funded": 123,
"total_advances": 123,
"last_submission_at": "<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>"
}
}{
"error": {
"type": "validation_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>"
}
}Body
application/json
Was this page helpful?