A library of function's for interacting with Shopify. Based on the shopify-node-api package.
npm install shopify-api-library
const shopifyApi = require("shopify-api-library");
param {string} store - name of the store to authenticate to
param {string} apiKey - store API key
param {string} token - store access token
POST
param {object} ordersObj - Object containing the order details to create in Shopify
PUT
param {string} orderNote - The note to add to the order
param {*} orderId - ID of the order
GET
param {string} email - email of the customer to search for
returns {Promise} returns a Promise of the macthed customers data
POST
param {object} giftCardObj - object containg gift card details
returns {Promise} returns a Promise representing the gift card response data
GET
param {number} customerId - Id of the customer to search for orders
returns {object} data - returns customer orders data
GET
param {number} pageNo - The smart collection page number
returns {array} - returns a list of smart collections
PUT param {array} productsArray - Array containing the variant ids in the position order required param {number} collectionId - ID of the collection returns {object} data - object contains the data of the updated collection
GET
param {number} orderId - The ID of the order to check its fulfillment
returns {object} - returns the fulfilled order object
GET
returns {array} - returns an array of objects containing collections data
POST
param {object} collection - The data of the collection to be created in Shopify
returns {object} - returns an object of the created collection data
GET
returns {Promise} Promise object represents the total number of products in the store