Log an offer
curl --request POST \
--url https://api.nextlevelmca.com/v1/deals/{dealId}/offers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lender_id": "<string>",
"amount": 2,
"term": 2,
"submission_id": "<string>",
"term_unit": "months",
"factor_rate": 2,
"buy_rate": 2,
"max_upsell_points": 50,
"payment_amount": 1,
"payback_amount": 1,
"position": 2,
"points": 50,
"notes": "<string>",
"expires_at": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
lender_id: '<string>',
amount: 2,
term: 2,
submission_id: '<string>',
term_unit: 'months',
factor_rate: 2,
buy_rate: 2,
max_upsell_points: 50,
payment_amount: 1,
payback_amount: 1,
position: 2,
points: 50,
notes: '<string>',
expires_at: '<string>'
})
};
fetch('https://api.nextlevelmca.com/v1/deals/{dealId}/offers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.nextlevelmca.com/v1/deals/{dealId}/offers"
payload = {
"lender_id": "<string>",
"amount": 2,
"term": 2,
"submission_id": "<string>",
"term_unit": "months",
"factor_rate": 2,
"buy_rate": 2,
"max_upsell_points": 50,
"payment_amount": 1,
"payback_amount": 1,
"position": 2,
"points": 50,
"notes": "<string>",
"expires_at": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "<string>",
"deal_id": "<string>",
"lender_id": "<string>",
"lender_name": "<string>",
"submission_id": "<string>",
"amount": 123,
"factor_rate": 123,
"buy_rate": 123,
"max_upsell_points": 123,
"term": 123,
"term_unit": "days",
"payment_frequency": "daily",
"payment_amount": 123,
"payback_amount": 123,
"points": 123,
"commission_estimate": 123,
"position": 123,
"status": "<string>",
"status_name": "<string>",
"status_type": "open",
"revision": 123,
"supersedes_offer_id": "<string>",
"superseded_by_offer_id": "<string>",
"superseded_at": "2023-11-07T05:31:56Z",
"is_primary": true,
"is_selected": true,
"notes": "<string>",
"decline_reason": "<string>",
"merchant_response": "<string>",
"expires_at": "<string>",
"received_at": "<string>",
"accepted_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>"
}
}Offers
Log an offer
Records a lender offer manually. Side effects mirror the app: the submission to that lender is marked approved (or created as approved), the deal moves to the offer phase on the first offer (per the location’s event bindings), and payback_amount defaults to amount × factor_rate. The offer is not primary until you call POST /offers/{id}/primary. Send an Idempotency-Key to retry safely.
POST
/
v1
/
deals
/
{dealId}
/
offers
Log an offer
curl --request POST \
--url https://api.nextlevelmca.com/v1/deals/{dealId}/offers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lender_id": "<string>",
"amount": 2,
"term": 2,
"submission_id": "<string>",
"term_unit": "months",
"factor_rate": 2,
"buy_rate": 2,
"max_upsell_points": 50,
"payment_amount": 1,
"payback_amount": 1,
"position": 2,
"points": 50,
"notes": "<string>",
"expires_at": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
lender_id: '<string>',
amount: 2,
term: 2,
submission_id: '<string>',
term_unit: 'months',
factor_rate: 2,
buy_rate: 2,
max_upsell_points: 50,
payment_amount: 1,
payback_amount: 1,
position: 2,
points: 50,
notes: '<string>',
expires_at: '<string>'
})
};
fetch('https://api.nextlevelmca.com/v1/deals/{dealId}/offers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.nextlevelmca.com/v1/deals/{dealId}/offers"
payload = {
"lender_id": "<string>",
"amount": 2,
"term": 2,
"submission_id": "<string>",
"term_unit": "months",
"factor_rate": 2,
"buy_rate": 2,
"max_upsell_points": 50,
"payment_amount": 1,
"payback_amount": 1,
"position": 2,
"points": 50,
"notes": "<string>",
"expires_at": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "<string>",
"deal_id": "<string>",
"lender_id": "<string>",
"lender_name": "<string>",
"submission_id": "<string>",
"amount": 123,
"factor_rate": 123,
"buy_rate": 123,
"max_upsell_points": 123,
"term": 123,
"term_unit": "days",
"payment_frequency": "daily",
"payment_amount": 123,
"payback_amount": 123,
"points": 123,
"commission_estimate": 123,
"position": 123,
"status": "<string>",
"status_name": "<string>",
"status_type": "open",
"revision": 123,
"supersedes_offer_id": "<string>",
"superseded_by_offer_id": "<string>",
"superseded_at": "2023-11-07T05:31:56Z",
"is_primary": true,
"is_selected": true,
"notes": "<string>",
"decline_reason": "<string>",
"merchant_response": "<string>",
"expires_at": "<string>",
"received_at": "<string>",
"accepted_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>"
}
}Body
application/json
Was this page helpful?