aYOUne
← Buchhaltung API

LedgerAccounts

Singular: LedgerAccount — Base-URL: https://accounting-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "_id": "6a8e5d0131bfb0d2118d2e1b",
    "name": "AGGRESSIVE_BEIGE_WEDGE ANTILLES",
    "active": true,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-08-26T03:26:57.134Z",
    "updatedAt": "2026-08-26T03:26:57.134Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://accounting-api.ayoune.app/ledgeraccounts/6a8e5d0131bfb0d2118d2e1b",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "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": "6a8e5d0231bfb0d2118d2e72",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_LEDGERACCOUNT",
        "href": "https://api.ayoune.app/accounting/ledgeraccounts/6a8e5d0131bfb0d2118d2e1b/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_LEDGERACCOUNT",
        "href": "https://api.ayoune.app/accounting/ledgeraccounts/6a8e5d0131bfb0d2118d2e1b/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.30.0",
      "core": "2026.296.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2388",
      "reset": "1787718388",
      "resetDate": "Wed Aug 26 2026"
    },
    "responseTime": 104.614228,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /ledgeraccounts Liste mit Filtern/Paginierung accounting.ledgeraccounts.view
GET /ledgeraccounts/:id Einzelner Datensatz accounting.ledgeraccounts.view
POST /ledgeraccounts Neuen Datensatz erstellen accounting.ledgeraccounts.new
PUT /ledgeraccounts Datensatz aktualisieren accounting.ledgeraccounts.edit
DELETE /ledgeraccounts/:id Datensatz löschen accounting.ledgeraccounts.delete

SDK

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

// Alle abrufen
const list = await ay.accounting.ledgerAccounts.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.accounting.ledgerAccounts.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.accounting.ledgerAccounts.create({ name: 'Foo' });

Weiterführend