Along with the Stockly API, SDKs are provided to facilitate your integrations. If you wish to integrate without using the SDKs, use https://engine--prod.stockly.tech/api as the base path to our API in all your cUrl requests. All the endpoints used in this guide are explicited but the examples only show how to call them using the SDKs.
Install the SDK
The SDKs are available in Node.js or PHP. For each, use a package manager to install it.
npm install @stockly/engine-sdk
composer install stockly/sdk
Check the API reference to know all about the models and methods.
Before you start using the SDK, you must have a retailer account created on Stockly. Use your access token to initialize the SDK.
// set the STOCKLY_API_TOKEN env var
process.env.STOCKLY_API_TOKEN = 'YOUR_ACCESS_TOKEN'
const stockly = require('@stockly/engine-sdk')
$config = array(
'AccessToken' => 'YOUR_ACCESS_TOKEN'
$Stockly = new Stockly\SDK($config);
If you don't have a retailer account and wish to join Stockly's network, give us a shout through our contact form!