Ordermentum Node.js SDK
Node.js SDK for the Ordermentum
Getting started
curl \
-X POST \
-d username=example@example.com \
-d password=secret \
-d grant_type=password \
"https://app.ordermentum.com/v1/auth"
import createClient from 'ordermentum-sdk';
const client = createClient({
token: '[TOKEN]',
});
Products
const products = client.products.findAll({ supplierId: '' });
const response = client.products.create({
});
Orders
const orders = client.orders.findAll({ supplierId: '' });
const response = client.orders.update(id, {
});
Invoices
const invoices = client.invoices.findAll({ supplierId: '' });
const response = client.invoices.update(id, {
});