aYOUne
← Accounting API

BankAccounts

Singular: BankAccount — Base URL: https://accounting-api.ayoune.app — Access: read-only

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Example response (recorded) sample

A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.

{
  "payload": {
    "currency": "EUR",
    "_id": "65e0afe0121b7d48fe155dc9",
    "type": "bank",
    "active": true,
    "bankUrl": "",
    "currentSaldo": 0,
    "client_id": "",
    "client_secret": "",
    "webhook": "",
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:25:04.923Z",
    "updatedAt": "2024-02-29T16:25:04.923Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://accounting-api.ayoune.app/bankaccounts/65e0afe0121b7d48fe155dc9",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "BankConnections",
        "title": "MODEL_BANKCONNECTION",
        "href": "https://api.ayoune.app/accounting/bankconnections",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "accounting.bankconnections"
      },
      {
        "rel": "LedgerAccounts",
        "title": "MODEL_LEDGERACCOUNT",
        "href": "https://api.ayoune.app/accounting/ledgeraccounts",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "accounting.ledgeraccounts"
      }
    ],
    "debugId": "6a62da4532b48bf3f8122e0d",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_BANKACCOUNT",
        "href": "https://api.ayoune.app/accounting/bankaccounts/65e0afe0121b7d48fe155dc9/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_BANKACCOUNT",
        "href": "https://api.ayoune.app/accounting/bankaccounts/65e0afe0121b7d48fe155dc9/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.22.5",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2494",
      "reset": "1784866900",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 276.32938,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /bankaccounts List with filters/pagination accounting.bankaccounts.view
GET /bankaccounts/:id Single record by ID accounting.bankaccounts.view

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.accounting.bankAccounts.find().limit(10).exec();

// Single record
const one = await ay.accounting.bankAccounts.findById('OBJECT_ID').exec();

See also