aYOUne
← Accounting API

CostRates

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

SDK

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

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

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

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

See also