Shiptec API wrapper
This repo is available to be included as a submodule. Future versions will be on NPM.
Install
git submodule add https://github.com/brickpop/shiptec.git lib/shiptec
Usage
import { init, postOrder, getOrderStatus, postProduct, getProductStocks } from "lib/shiptec"
await init({
token: "1234",
user: "user",
pass: "pwd"
})
await postOrder(order)
await getOrderStatus(id).then(console.log)
await postProduct(product)
await getProductStocks().then(console.log)
Types
import {StockabeeAuth, SbOrderPostPayload, SbOrderPostResponse, SbOrderStatus, SbProductPayload, SbProductPostResponse, SbStockStatus} from "lib/shiptec"