aYOUne
← Warehouse API

StockReservations

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

SDK

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

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

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

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

See also