cart-javascript-sdk

0.0.1-beta • Public • Published

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

});

Readme

Keywords

none

Package Sidebar

Install

npm i cart-javascript-sdk

Weekly Downloads

2

Version

0.0.1-beta

License

MIT

Unpacked Size

21.7 kB

Total Files

19

Last publish

Collaborators

  • ordermentumeng