Interacting with Shopify

Shypyard offers convenient ways to interact with Shopify API either through the REST API or GraphQL.

Once a Shopify integration is added, you can immediately use the node library to get or update Shopify resources.

For example, if you want to get the order data, you can do something like this:

const { libs } = require('platform');
​
module.exports = async (event) => {
const shopify = libs.shopify.get();
await shopify.order.get(order_id);
}

​