aYOUne
← Purchase API

InventoryLists

Singular: InventoryList — Base URL: https://purchase-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 /inventorylists List with filters/pagination purchase.inventorylists.view
GET /inventorylists/:id Single record purchase.inventorylists.view
POST /inventorylists Create new record purchase.inventorylists.new
PUT /inventorylists Update record purchase.inventorylists.edit
DELETE /inventorylists/:id Delete record purchase.inventorylists.delete

SDK

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

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

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

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

See also