← Accounting API
PostingRules
Singular: PostingRule — Base URL: https://accounting-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)
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.
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": "6a55ccab82b264668af98b09",
"eventType": "invoice.paid",
"skrVariant": "SKR03",
"active": true,
"createdAt": "2026-07-14T05:44:11.636Z",
"lines": [
{
"side": "soll",
"account": "1200",
"amountSource": "gross"
},
{
"side": "haben",
"account": "1400",
"amountSource": "gross"
}
],
"name": "Ausgangsrechnung bezahlt (SKR03)",
"updatedAt": "2026-07-23T04:51:24.907Z",
"version": 1,
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://accounting-api.ayoune.app/postingrules/6a55ccab82b264668af98b09",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "ApprovalRequests",
"title": "MODEL_APPROVALREQUEST",
"href": "https://api.ayoune.app/automation/approvalrequests",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "automation.approvalrequests"
}
],
"debugId": "6aa370c7e79e7fc42cead5c8",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_POSTINGRULE",
"href": "https://api.ayoune.app/accounting/postingrules/6a55ccab82b264668af98b09/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_POSTINGRULE",
"href": "https://api.ayoune.app/accounting/postingrules/6a55ccab82b264668af98b09",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.30.0",
"core": "2026.334.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2318",
"reset": "1789099665",
"resetDate": "Fri Sep 11 2026"
},
"responseTime": 346.800312,
"code": 200,
"status": "success",
"error": false
}
}
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| 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' });