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