ordermentum-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • 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 ordermentum-sdk

Weekly Downloads

384

Version

1.1.0

License

MIT

Unpacked Size

26.3 kB

Total Files

12

Last publish

Collaborators

  • johndagostino
  • ordermentumeng