Skip to content
aYOUne
← Sales API

Tables

Singular: Table — Base URL: https://sale-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

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

SDK

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

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

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

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

See also