curl --request POST \
--url https://api.nextlevelmca.com/v1/deals/{dealId}/document-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"label": "<string>"
}
],
"person_id": "<string>",
"message": "<string>",
"expires_in_days": 45.5
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [{label: '<string>'}],
person_id: '<string>',
message: '<string>',
expires_in_days: 45.5
})
};
fetch('https://api.nextlevelmca.com/v1/deals/{dealId}/document-requests', 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}/document-requests"
payload = {
"items": [{ "label": "<string>" }],
"person_id": "<string>",
"message": "<string>",
"expires_in_days": 45.5
}
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>",
"status": "pending",
"channel": "email",
"delivery": "email",
"sent": true,
"sent_to": "<string>",
"upload_url": "<string>",
"expires_at": "<string>",
"items": [
{
"id": "<string>",
"type": "<string>",
"label": "<string>",
"status": "pending",
"received_document_id": "<string>",
"received_at": "<string>"
}
],
"created_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>"
}
}Request documents from the merchant
Creates a document request (tracked in the app) and a merchant-portal upload link. channel: "email" emails it through the location’s connected mailbox (409 no_email_sender when none is connected); "sms" texts it through the CRM conversation when the contact is linked to the CRM — otherwise the link is returned with sent: false and meta.warning; "link_only" never sends. Uploads through the link are matched to the requested items automatically. Send an Idempotency-Key to avoid duplicate requests on retry.
curl --request POST \
--url https://api.nextlevelmca.com/v1/deals/{dealId}/document-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"label": "<string>"
}
],
"person_id": "<string>",
"message": "<string>",
"expires_in_days": 45.5
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [{label: '<string>'}],
person_id: '<string>',
message: '<string>',
expires_in_days: 45.5
})
};
fetch('https://api.nextlevelmca.com/v1/deals/{dealId}/document-requests', 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}/document-requests"
payload = {
"items": [{ "label": "<string>" }],
"person_id": "<string>",
"message": "<string>",
"expires_in_days": 45.5
}
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>",
"status": "pending",
"channel": "email",
"delivery": "email",
"sent": true,
"sent_to": "<string>",
"upload_url": "<string>",
"expires_at": "<string>",
"items": [
{
"id": "<string>",
"type": "<string>",
"label": "<string>",
"status": "pending",
"received_document_id": "<string>",
"received_at": "<string>"
}
],
"created_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
email sends through the location’s connected mailbox (409 no_email_sender if none is connected); sms texts the upload link through the CRM conversation when the contact is linked to the CRM, otherwise the link is returned unsent; link_only never sends — you deliver the link yourself.
email, sms, link_only Was this page helpful?