aYOUne
← Accounting API

AccountingEventSubscriptions

Singular: AccountingEventSubscription — 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.

Endpoints

MethodPathDescriptionRight
GET /accountingeventsubscriptions List with filters/pagination accounting.eventsubscriptions.view
GET /accountingeventsubscriptions/:id Single record accounting.eventsubscriptions.view
POST /accountingeventsubscriptions Create new record accounting.eventsubscriptions.new
PUT /accountingeventsubscriptions Update record accounting.eventsubscriptions.edit
DELETE /accountingeventsubscriptions/:id Delete record accounting.eventsubscriptions.delete

SDK

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

// List all
const list = await ay.accounting.accountingEventSubscriptions.find().limit(10).exec();

// Single record
const one = await ay.accounting.accountingEventSubscriptions.findById('OBJECT_ID').exec();

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

See also