Zum Inhalt

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[].idstring
items[].namestring
items[].activeboolean
items[].latest_balanceobject | null
items[].latest_balance.datestring
items[].latest_balance.balance_centsnumber
items[].latest_balance.sourcestring
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

idrequiredstringThe account's id or its exact name (list_bank_accounts).

Body (JSON)

daterequiredstringThe day the balance was held.
balance_centsrequiredintegerThe balance in cents; negative for an overdrawn account.
commentstring

Response 200

idstring
bank_accountobject
bank_account.idstring
bank_account.namestring
datestring
balance_centsnumber
commentstring | null
urlstring
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.