← Buchhaltung API
Assets
Singular: Asset — Base-URL: https://accounting-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
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": "6a9792a83ff8d2950e6ccc25",
"name": "UNAWARE_CORAL_HAN SOLO",
"depreciation_interval": "Jährliche Abschreibung",
"depreciation_typ": "Linear",
"active": true,
"isDraft": true,
"createdBy": "6045f4d25704710012485569",
"shortID": "TixIICIkrXBr",
"value_development": [],
"createdAt": "2026-09-02T03:06:16.424Z",
"updatedAt": "2026-09-02T03:06:16.424Z",
"scanID": "J97CM473",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://accounting-api.ayoune.app/assets/6a9792a83ff8d2950e6ccc25",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6aa37085e79e7fc42ceacb41",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_ASSET",
"href": "https://api.ayoune.app/accounting/assets/6a9792a83ff8d2950e6ccc25/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_ASSET",
"href": "https://api.ayoune.app/accounting/assets/6a9792a83ff8d2950e6ccc25",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.30.0",
"core": "2026.334.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2488",
"reset": "1789099665",
"resetDate": "Fri Sep 11 2026"
},
"responseTime": 46.502399,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /assets |
Liste mit Filtern/Paginierung | accounting.assets.view |
| GET | /assets/:id |
Einzelner Datensatz | accounting.assets.view |
| POST | /assets |
Neuen Datensatz erstellen | accounting.assets.new |
| PUT | /assets |
Datensatz aktualisieren | accounting.assets.edit |
| DELETE | /assets/:id |
Datensatz löschen | accounting.assets.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.accounting.assets.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.accounting.assets.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.accounting.assets.create({ name: 'Foo' });