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.

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": "6affcb2da92bf321ad7fcbb2",
    "label": "BROAD_OLIVE_RIC OLIÉ",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-11-20T04:23:09.999Z",
    "updatedAt": "2026-11-20T04:23:09.999Z",
    "scanID": "29TF4AE7"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://sale-api.ayoune.app/tables/6affcb2da92bf321ad7fcbb2",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "CompanyLocations",
        "title": "MODEL_COMPANYLOCATION",
        "href": "https://api.ayoune.app/config/companylocations",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.companylocations"
      },
      {
        "rel": "BuildingSpaces",
        "title": "MODEL_BUILDINGSPACE",
        "href": "https://api.ayoune.app/config/buildingspaces",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.buildingspaces"
      },
      {
        "rel": "FloorPlans",
        "title": "MODEL_FLOORPLAN",
        "href": "https://api.ayoune.app/warehouse/floorplans",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "warehouse.floorplans"
      }
    ],
    "debugId": "6affcb2fa92bf321ad7fcbf1",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_TABLE",
        "href": "https://api.ayoune.app/sale/tables/6affcb2da92bf321ad7fcbb2/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_TABLE",
        "href": "https://api.ayoune.app/sale/tables/6affcb2da92bf321ad7fcbb2",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.61.0",
      "core": "2026.388.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9534",
      "reset": "1795152013",
      "resetDate": "Fri Nov 20 2026"
    },
    "responseTime": 314.000339,
    "code": 200,
    "status": "success",
    "error": false
  }
}

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