Get a bank movement
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/bank-movements/{bank_movement_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/bank-movements/{bank_movement_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}/bank-movements/{bank_movement_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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"
]
}
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Banking
Get a bank movement
Returns one movement with its reconciliation or Melso’s proposal.
GET
/
companies
/
{company_id}
/
bank-movements
/
{bank_movement_id}
Get a bank movement
curl --request GET \
--url https://api.melso.ai/v1/companies/{company_id}/bank-movements/{bank_movement_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/companies/{company_id}/bank-movements/{bank_movement_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}/bank-movements/{bank_movement_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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"
]
}
}{
"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.
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
The movement.
Available options:
statement, connection An amount in euros as a decimal string with two decimals, such as "121.00".
Pattern:
^-?[0-9]+\.[0-9]{2}$Example:
"121.00"
Show child attributes
Show child attributes
Melso's proposed match, for a movement not reconciled yet. It needs the exact outstanding amount.
Show child attributes
Show child attributes