Create or send a merchant portal link
curl --request POST \
--url https://api.nextlevelmca.com/v1/deals/{dealId}/portal-link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"person_id": "<string>",
"send_via": "none",
"message": "<string>",
"expires_in_days": 15.5
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
person_id: '<string>',
send_via: 'none',
message: '<string>',
expires_in_days: 15.5
})
};
fetch('https://api.nextlevelmca.com/v1/deals/{dealId}/portal-link', 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}/portal-link"
payload = {
"person_id": "<string>",
"send_via": "none",
"message": "<string>",
"expires_in_days": 15.5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"url": "<string>",
"expires_at": "<string>",
"sent": true,
"sent_via": "email",
"sent_to": "<string>",
"person_id": "<string>",
"business_id": "<string>",
"deal_id": "<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>"
}
}Merchant portal
Create or send a merchant portal link
Issues the deal’s merchant-portal magic link (scoped to the business, so it covers all of its deals) and optionally sends it. Links last 24 hours — expires_in_days is accepted but ignored in v1; the portal lets the merchant request a fresh link, and calling this again before expiry returns the same link. send_via: "sms" needs a contact linked to the CRM; "email" falls back to the location’s connected mailbox. When the send step fails the link is still returned with sent: false and meta.warning. Anyone holding the link can view shared offers and upload documents, so treat it like a credential.
POST
/
v1
/
deals
/
{dealId}
/
portal-link
Create or send a merchant portal link
curl --request POST \
--url https://api.nextlevelmca.com/v1/deals/{dealId}/portal-link \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"person_id": "<string>",
"send_via": "none",
"message": "<string>",
"expires_in_days": 15.5
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
person_id: '<string>',
send_via: 'none',
message: '<string>',
expires_in_days: 15.5
})
};
fetch('https://api.nextlevelmca.com/v1/deals/{dealId}/portal-link', 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}/portal-link"
payload = {
"person_id": "<string>",
"send_via": "none",
"message": "<string>",
"expires_in_days": 15.5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"url": "<string>",
"expires_at": "<string>",
"sent": true,
"sent_via": "email",
"sent_to": "<string>",
"person_id": "<string>",
"business_id": "<string>",
"deal_id": "<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?