← Warehouse API
ReplenishmentOrders
Singular: ReplenishmentOrder — Base URL: https://warehouse-api.ayoune.app — Access: CRUD
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.
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /replenishmentorders |
List with filters/pagination | warehouse.replenishmentorders.view |
| GET | /replenishmentorders/:id |
Single record | warehouse.replenishmentorders.view |
| POST | /replenishmentorders |
Create new record | warehouse.replenishmentorders.new |
| PUT | /replenishmentorders |
Update record | warehouse.replenishmentorders.edit |
| DELETE | /replenishmentorders/:id |
Delete record | warehouse.replenishmentorders.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.warehouse.replenishmentOrders.find().limit(10).exec();
// Single record
const one = await ay.warehouse.replenishmentOrders.findById('OBJECT_ID').exec();
// Create
const created = await ay.warehouse.replenishmentOrders.create({ name: 'Foo' });