List contribution settlements
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/social-security/settlements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/social-security/settlements"
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}/social-security/settlements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"period": "<string>",
"contribution_account": "<string>",
"status": "requested",
"due_date": "2023-12-25",
"employer_contribution": "121.00",
"employee_contribution": "121.00",
"total": "121.00",
"workers": 123,
"payroll_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discrepancies": [
{
"employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "<string>",
"payroll_value": "121.00",
"tgss_value": "121.00"
}
],
"documents": {
"rnt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"url": "<string>"
},
"rlc": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"url": "<string>"
}
}
}
],
"next_cursor": "<string>"
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Social Security
List contribution settlements
Lists the company’s monthly Social Security contribution settlements, newest period first.
GET
/
companies
/
{company_id}
/
social-security
/
settlements
List contribution settlements
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/social-security/settlements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/social-security/settlements"
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}/social-security/settlements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"period": "<string>",
"contribution_account": "<string>",
"status": "requested",
"due_date": "2023-12-25",
"employer_contribution": "121.00",
"employee_contribution": "121.00",
"total": "121.00",
"workers": 123,
"payroll_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"discrepancies": [
{
"employee_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "<string>",
"payroll_value": "121.00",
"tgss_value": "121.00"
}
],
"documents": {
"rnt": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"url": "<string>"
},
"rlc": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"content_type": "<string>",
"size_bytes": 123,
"url": "<string>"
}
}
}
],
"next_cursor": "<string>"
}{
"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.
Query Parameters
Page size.
Required range:
1 <= x <= 200The next_cursor of the previous page.
A year (2026), a quarter (2026-Q3), a month (2026-09) or an instalment (2026-1P).
Pattern:
^[0-9]{4}(-Q[1-4]|-(0[1-9]|1[0-2])|-[1-3]P)?$Example:
"2026-Q3"