Download a payroll file
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/payroll/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/payroll/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/companies/{company_id}/payroll/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Payslips
Download a payroll file
Returns one of the official payroll files, such as the payslips as PDF, the SEPA transfer or a Social Security file.
GET
/
companies
/
{company_id}
/
payroll
/
files
Download a payroll file
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/payroll/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/payroll/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/companies/{company_id}/payroll/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
scope picks what the file is about and kind the file. Several PDFs come as a zip.Authorizations
companyApiKeypartnerApiKey
A company API key, mk_live_…, that the company's owner creates in the
Melso app under Settings, Connect your AI, API keys. It works in that
one company with the owner's authority. Test keys (mk_test_…) are not
issued. Keep the key on your servers. See
Authentication.
Path Parameters
Query Parameters
Response
The file.
The response is of type file.