aYOUne
← PIM API

Products

Singular: Product — Base URL: https://pim-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

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 /products List with filters/pagination pim.products.view
GET /products/:id Single record pim.products.view
POST /products Create new record pim.products.new
PUT /products Update record pim.products.edit
DELETE /products/:id Delete record pim.products.delete

SDK

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

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

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

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

See also