aYOUne
← Accounting API

PostingRules

Singular: PostingRule — 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 /postingrules List with filters/pagination accounting.postingrules.view
GET /postingrules/:id Single record accounting.postingrules.view
POST /postingrules Create new record accounting.postingrules.new
PUT /postingrules Update record accounting.postingrules.edit
DELETE /postingrules/:id Delete record accounting.postingrules.delete

SDK

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

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

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

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

See also