Get the tax calendar
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/tax-calendar \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/tax-calendar"
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-calendar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"today": "2023-12-25",
"obligations": [
{
"obligation_id": "<string>",
"model": "<string>",
"name": "<string>",
"administration": "aeat",
"periodicity": "monthly",
"period": "2026-Q3",
"opens": "2023-12-25",
"deadline": "2023-12-25",
"melso": "calculates",
"direct_debit_deadline": "2023-12-25",
"sources": [
"<string>"
],
"filing_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filing_status": "draft"
}
]
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Tax calendar
Get the tax calendar
Returns the forms the company must file, from about six months back to about thirteen months ahead, ordered by deadline.
GET
/
companies
/
{company_id}
/
tax-calendar
Get the tax calendar
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/tax-calendar \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/tax-calendar"
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-calendar', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"today": "2023-12-25",
"obligations": [
{
"obligation_id": "<string>",
"model": "<string>",
"name": "<string>",
"administration": "aeat",
"periodicity": "monthly",
"period": "2026-Q3",
"opens": "2023-12-25",
"deadline": "2023-12-25",
"melso": "calculates",
"direct_debit_deadline": "2023-12-25",
"sources": [
"<string>"
],
"filing_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filing_status": "draft"
}
]
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Live capability. Melso runs this in production today. Partner keys reach it once your partner account is enabled. See Availability.
melso calculates) links to its return once one exists; a form Melso
only reminds of (reminds) links to the official instructions.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.