List journal imports
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/journal-imports \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/journal-imports"
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}/journal-imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"format": "csv",
"first_date": "2023-12-25",
"last_date": "2023-12-25",
"entries": 123,
"lines": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}Accounting
List journal imports
Lists the journals imported from earlier books.
GET
/
companies
/
{company_id}
/
journal-imports
List journal imports
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/journal-imports \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/journal-imports"
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}/journal-imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"format": "csv",
"first_date": "2023-12-25",
"last_date": "2023-12-25",
"entries": 123,
"lines": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}Live capability. Melso runs this in production today. Partner keys reach it once your partner account is enabled. 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.
Response
Imports.
Show child attributes
Show child attributes