← Accounting API
LedgerAccounts
Singular: LedgerAccount — Base URL: https://accounting-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
Try it now
beta
Response (live)
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": {
"_id": "6a9a37f67949f2a4055ed6a2",
"name": "GUILTY_FUCHSIA_KI-ADI-MUNDI",
"active": true,
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-09-04T03:16:06.355Z",
"updatedAt": "2026-09-04T03:16:06.355Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://accounting-api.ayoune.app/ledgeraccounts/6a9a37f67949f2a4055ed6a2",
"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": "6adec2f117544dd20f32eff8",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_LEDGERACCOUNT",
"href": "https://api.ayoune.app/accounting/ledgeraccounts/6a9a37f67949f2a4055ed6a2/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_LEDGERACCOUNT",
"href": "https://api.ayoune.app/accounting/ledgeraccounts/6a9a37f67949f2a4055ed6a2",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.30.0",
"core": "2026.388.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9872",
"reset": "1792987355",
"resetDate": "Mon Oct 26 2026"
},
"responseTime": 18.360599,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /ledgeraccounts |
List with filters/pagination | accounting.ledgeraccounts.view |
| GET | /ledgeraccounts/:id |
Single record | accounting.ledgeraccounts.view |
| POST | /ledgeraccounts |
Create new record | accounting.ledgeraccounts.new |
| PUT | /ledgeraccounts |
Update record | accounting.ledgeraccounts.edit |
| DELETE | /ledgeraccounts/:id |
Delete record | accounting.ledgeraccounts.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.accounting.ledgerAccounts.find().limit(10).exec();
// Single record
const one = await ay.accounting.ledgerAccounts.findById('OBJECT_ID').exec();
// Create
const created = await ay.accounting.ledgerAccounts.create({ name: 'Foo' });