← Sales API
PackLists
Singular: PackList — Base URL: https://sale-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 | /packlists |
List with filters/pagination | sale.packlists.view |
| GET | /packlists/:id |
Single record | sale.packlists.view |
| POST | /packlists |
Create new record | sale.packlists.new |
| PUT | /packlists |
Update record | sale.packlists.edit |
| DELETE | /packlists/:id |
Delete record | sale.packlists.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.sale.packLists.find().limit(10).exec();
// Single record
const one = await ay.sale.packLists.findById('OBJECT_ID').exec();
// Create
const created = await ay.sale.packLists.create({ name: 'Foo' });