aYOUne
← Buchhaltung API

PostingRules

Singular: PostingRule — 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": "6a55ccab82b264668af98b09",
    "eventType": "invoice.paid",
    "skrVariant": "SKR03",
    "active": true,
    "createdAt": "2026-07-14T05:44:11.636Z",
    "lines": [
      {
        "side": "soll",
        "account": "1200",
        "amountSource": "gross"
      },
      {
        "side": "haben",
        "account": "1400",
        "amountSource": "gross"
      }
    ],
    "name": "Ausgangsrechnung bezahlt (SKR03)",
    "updatedAt": "2026-07-23T04:51:24.907Z",
    "version": 1
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://accounting-api.ayoune.app/postingrules/6a55ccab82b264668af98b09",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "ApprovalRequests",
        "title": "MODEL_APPROVALREQUEST",
        "href": "https://api.ayoune.app/automation/approvalrequests",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "automation.approvalrequests"
      }
    ],
    "debugId": "6a8e5d0b31bfb0d2118d312d",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_POSTINGRULE",
        "href": "https://api.ayoune.app/accounting/postingrules/6a55ccab82b264668af98b09/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_POSTINGRULE",
        "href": "https://api.ayoune.app/accounting/postingrules/6a55ccab82b264668af98b09/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.30.0",
      "core": "2026.296.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2341",
      "reset": "1787718388",
      "resetDate": "Wed Aug 26 2026"
    },
    "responseTime": 107.269768,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend