Get a tax return
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/tax-returns/{tax_return_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/tax-returns/{tax_return_id}"
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}/tax-returns/{tax_return_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "5e4d3c2b-1a0f-4e9d-8c7b-6a5f4e3d2c1b",
"model": "303",
"period": "2026-Q4",
"status": "filed",
"amount": "2210.40",
"due_date": "2027-01-30",
"version": "9b2f4e6a8c0d1e3f5a7b9c1d3e5f7a9b2c4d6e8f0a1b3c5d7e9f1a2b4c6d8e0f",
"filing": {
"filed_at": "2027-01-19T10:42:11Z",
"reference": "3030000000001",
"csv": "ABCD1234EFGH5678"
}
}{
"error": "The API key is missing, revoked or invalid",
"code": "invalid_api_key",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "invoices is not available in this company",
"code": "tool_unavailable",
"next_action": "check_company_and_access",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "invoice not found",
"code": "not_found",
"next_action": "refresh_record",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "Too many requests: a key makes at most 600 a minute",
"code": "rate_limited",
"request_id": "req_8f14e45fceea167a5a36dedd"
}Tax returns
Get a tax return
Returns one return with its boxes, and its filing evidence once filed.
GET
/
companies
/
{company_id}
/
tax-returns
/
{tax_return_id}
Get a tax return
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/tax-returns/{tax_return_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/tax-returns/{tax_return_id}"
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}/tax-returns/{tax_return_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "5e4d3c2b-1a0f-4e9d-8c7b-6a5f4e3d2c1b",
"model": "303",
"period": "2026-Q4",
"status": "filed",
"amount": "2210.40",
"due_date": "2027-01-30",
"version": "9b2f4e6a8c0d1e3f5a7b9c1d3e5f7a9b2c4d6e8f0a1b3c5d7e9f1a2b4c6d8e0f",
"filing": {
"filed_at": "2027-01-19T10:42:11Z",
"reference": "3030000000001",
"csv": "ABCD1234EFGH5678"
}
}{
"error": "The API key is missing, revoked or invalid",
"code": "invalid_api_key",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "invoices is not available in this company",
"code": "tool_unavailable",
"next_action": "check_company_and_access",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "invoice not found",
"code": "not_found",
"next_action": "refresh_record",
"request_id": "req_8f14e45fceea167a5a36dedd"
}{
"error": "Too many requests: a key makes at most 600 a minute",
"code": "rate_limited",
"request_id": "req_8f14e45fceea167a5a36dedd"
}Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
filing.reference is present.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
Response
The return.