aYOUne
← E-Commerce API

ShippingMethods

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

SDK

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

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

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

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

See also