List bank movements
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/bank-movements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/bank-movements"
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}/bank-movements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "statement",
"booked_on": "2023-12-25",
"amount": "121.00",
"currency": "<string>",
"concept": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"statement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"value_on": "2023-12-25",
"balance_after": "<string>",
"counterparty_name": "<string>",
"counterparty_iban": "<string>",
"reference": "<string>",
"reconciliation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"documents": [
{
"type": "expense",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "121.00"
}
]
},
"proposal": {
"document_type": "expense",
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "121.00",
"party": "<string>",
"number": "<string>",
"reasons": [
"amount"
]
}
}
],
"next_cursor": "<string>"
}{
"error": "lines[0].vat_rate must be 21, 10, 4 or 0",
"code": "invalid_invoice",
"request_id": "req_01JAB3K9X2"
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "Review and approve in the authenticated web application",
"code": "person_required",
"request_id": "req_01JAB3K9X2"
}Banking
List bank movements
Lists movements, newest booking date first, each with its reconciliation or Melso’s proposal.
GET
/
companies
/
{company_id}
/
bank-movements
List bank movements
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/bank-movements \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/bank-movements"
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}/bank-movements', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bank_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "statement",
"booked_on": "2023-12-25",
"amount": "121.00",
"currency": "<string>",
"concept": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"statement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"value_on": "2023-12-25",
"balance_after": "<string>",
"counterparty_name": "<string>",
"counterparty_iban": "<string>",
"reference": "<string>",
"reconciliation": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"documents": [
{
"type": "expense",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "121.00"
}
]
},
"proposal": {
"document_type": "expense",
"document_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "121.00",
"party": "<string>",
"number": "<string>",
"reasons": [
"amount"
]
}
}
],
"next_cursor": "<string>"
}{
"error": "lines[0].vat_rate must be 21, 10, 4 or 0",
"code": "invalid_invoice",
"request_id": "req_01JAB3K9X2"
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "Review and approve in the authenticated web application",
"code": "person_required",
"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.
Query Parameters
Page size.
Required range:
1 <= x <= 200The next_cursor of the previous page.
From this date, inclusive.
Up to this date, inclusive.
to_review returns only the movements not reconciled.
Available options:
all, to_review