This module contains helper functions for more easily accessing the Inventory Source Retailer API.
Installation
npm install retailer-api-helper --save
Boilerplate
;var retailerAPI = client_id // Replace with your Client ID client_secret // Replace with your Client Secret refresh_token // Replace with your refresh token;
Example Replacements
In example/src/store/reatiler/index.js
Note: This API will handle all refresh token calls if the current access token expires.
Usage
Get Products
Returns all products since the last product id pulled:since_id
.
// Pagination ApproachretailerAPI;
Response: Products
Get Channels
Returns all channels that are connected to this retailer through api.
retailerAPI;
Response: Channels
Get Catalogs
Returns all catalogs the retailer has.
retailAPI;
Response: Catalogs
Get Shipments
Returns only shipped order details.
retailAPI;
Response: Shipments
Create Order
Creates a new order.
retailerAPI ;
Request/Response: Order
For more information on the retailer api, visit: https://isretailerapiv1.docs.apiary.io/