Skip to content
aYOUne
← PIM API

ProductPassports

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

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

SDK

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

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

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

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

See also