← Accounting API
AccountingMappings
Singular: AccountingMapping — Base URL: https://accounting-api.ayoune.app — Access: CRUD
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.
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /accountingmappings |
List with filters/pagination | accounting.mappings.view |
| GET | /accountingmappings/:id |
Single record | accounting.mappings.view |
| POST | /accountingmappings |
Create new record | accounting.mappings.new |
| PUT | /accountingmappings |
Update record | accounting.mappings.edit |
| DELETE | /accountingmappings/:id |
Delete record | accounting.mappings.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.accounting.accountingMappings.find().limit(10).exec();
// Single record
const one = await ay.accounting.accountingMappings.findById('OBJECT_ID').exec();
// Create
const created = await ay.accounting.accountingMappings.create({ name: 'Foo' });