0.0.1-beta • Published 3 years ago

cart-javascript-sdk v0.0.1-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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, {

});