aYOUne
← Accounting API

LedgerAccounts

Singular: LedgerAccount — Base URL: https://accounting-api.ayoune.app — Access: CRUD

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": {
    "_id": "6a62da5732b48bf3f81232ad",
    "name": "COMPREHENSIVE_OLIVE_SEBULBA",
    "active": true,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-07-24T03:21:59.501Z",
    "updatedAt": "2026-07-24T03:21:59.501Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://accounting-api.ayoune.app/ledgeraccounts/6a62da5732b48bf3f81232ad",
        "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": "6a62da5832b48bf3f81232ea",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_LEDGERACCOUNT",
        "href": "https://api.ayoune.app/accounting/ledgeraccounts/6a62da5732b48bf3f81232ad/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_LEDGERACCOUNT",
        "href": "https://api.ayoune.app/accounting/ledgeraccounts/6a62da5732b48bf3f81232ad/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.22.5",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2395",
      "reset": "1784866900",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 106.607758,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
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' });

See also