Read a VAT book file
curl --request POST \
--url https://api.melso.ai/v1/companies/{company_id}/vat-book-imports/read \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-fileimport requests
url = "https://api.melso.ai/v1/companies/{company_id}/vat-book-imports/read"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.melso.ai/v1/companies/{company_id}/vat-book-imports/read', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"filename": "<string>",
"format": "<string>",
"first_date": "2023-12-25",
"last_date": "2023-12-25",
"problems": [
"<string>"
],
"can_save": true
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>"
}Accounting
Read a VAT book file
Reads a VAT book without saving it, with its totals by VAT rate, the invoices already recorded and what to review.
POST
/
companies
/
{company_id}
/
vat-book-imports
/
read
Read a VAT book file
curl --request POST \
--url https://api.melso.ai/v1/companies/{company_id}/vat-book-imports/read \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-fileimport requests
url = "https://api.melso.ai/v1/companies/{company_id}/vat-book-imports/read"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.melso.ai/v1/companies/{company_id}/vat-book-imports/read', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"filename": "<string>",
"format": "<string>",
"first_date": "2023-12-25",
"last_date": "2023-12-25",
"problems": [
"<string>"
],
"can_save": true
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>"
}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.
Body
multipart/form-data