aYOUne
← PIM API

ProductLists

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

SDK

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

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

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

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

See also