aYOUne
← Sales API

PackLists

Singular: PackList — Base URL: https://sale-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 /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' });

See also