← E-Commerce API
ShippingMethods
Singular: ShippingMethod — 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 | /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' });