Reference
Bank accounts
GET/api/v1/bank-accountsList bank accounts
The bank accounts a balance can be recorded for (record_bank_balance), with whether each is in use and its latest balance in cents. Only an active account takes a new balance.scope finance:read
Response 200
| items[] | object[] |
| items[].id | string |
| items[].name | string |
| items[].active | boolean |
| items[].latest_balance | object | null |
| items[].latest_balance.date | string |
| items[].latest_balance.balance_cents | number |
| items[].latest_balance.source | string |
Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"active": {
"type": "boolean"
},
"latest_balance": {
"anyOf": [
{
"type": "object",
"properties": {
"date": {
"type": "string"
},
"balance_cents": {
"type": "number"
},
"source": {
"type": "string"
}
},
"required": [
"date",
"balance_cents",
"source"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"active",
"latest_balance"
],
"additionalProperties": false
}
}
},
"required": [
"items"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.
POST/api/v1/bank-accounts/{id}/balancesRecord bank balance
Records a bank account's balance on a day, as the manual entry on /finanzen/liquiditaet does; the liquidity forecast starts from the latest one. The day is never in the future; the balance may be negative. finance.manage only.scope finance:write
Path
| idrequired | stringThe account's id or its exact name (list_bank_accounts). |
Body (JSON)
| daterequired | stringThe day the balance was held. |
| balance_centsrequired | integerThe balance in cents; negative for an overdrawn account. |
| comment | string |
Response 200
| id | string |
| bank_account | object |
| bank_account.id | string |
| bank_account.name | string |
| date | string |
| balance_cents | number |
| comment | string | null |
| url | string |
Schema
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"bank_account": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"date": {
"type": "string"
},
"balance_cents": {
"type": "number"
},
"comment": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"required": [
"id",
"bank_account",
"date",
"balance_cents",
"comment",
"url"
],
"additionalProperties": false
}Refusals are problems with a code — see Errors.