ordermentum-sdk
v1.1.0
Published
Node.js SDK for the Ordermentum
Downloads
1,252
Readme
Ordermentum Node.js SDK
Node.js SDK for the Ordermentum
Getting started
curl \
-X POST \
-d [email protected] \
-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, {
});