Create an onboarding link
curl --request POST \
--url https://api.melso.ai/v1/companies/{company_id}/onboarding-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"return_url": "<string>",
"steps": [],
"locale": "es"
}
'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/onboarding-links"
payload = {
"return_url": "<string>",
"steps": [],
"locale": "es"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({return_url: '<string>', steps: [], locale: 'es'})
};
fetch('https://api.melso.ai/v1/companies/{company_id}/onboarding-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Companies
Create an onboarding link
Returns a single-use link to Melso’s hosted onboarding, with your brand, where the company’s owner completes the fiscal profile, signs the mandates and authorizes invoice registration.
POST
/
companies
/
{company_id}
/
onboarding-links
Create an onboarding link
curl --request POST \
--url https://api.melso.ai/v1/companies/{company_id}/onboarding-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"return_url": "<string>",
"steps": [],
"locale": "es"
}
'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/onboarding-links"
payload = {
"return_url": "<string>",
"steps": [],
"locale": "es"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({return_url: '<string>', steps: [], locale: 'es'})
};
fetch('https://api.melso.ai/v1/companies/{company_id}/onboarding-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"url": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Preview. A contract we are building with design partners. It is not callable yet, and fields can still change. See Availability.
Authorizations
Your partner secret key, mk_live_… for real companies or mk_test_…
for test companies. Keep it on your servers. See
Authentication.
Path Parameters
The company's ID. Every company-scoped call works in exactly this company.
Body
application/json