JSPM

@robinpath/shopify

0.3.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 99
    • Score
      100M100P100Q32221F
    • License MIT

    Shopify Admin REST API — products, orders, customers, inventory, collections, and webhooks. Uses the encrypted credential vault for the per-store access token.

    Package Exports

    • @robinpath/shopify

    Readme

    @robinpath/shopify

    Shopify module for RobinPath.

    Category Functions Auth License

    Why use this module?

    The shopify module lets you:

    • List products in the store.
    • Get a product by ID.
    • Create a new product.
    • Update an existing product.
    • List orders with optional filters.

    All functions are callable directly from RobinPath scripts with a simple, consistent API.

    Installation

    robinpath add @robinpath/shopify

    Quick Start

    1. Set up credentials

    shopify.setCredentials "my-store" "shpat_xxx"

    2. List products in the store.

    shopify.listProducts {"limit":10}

    Available Functions

    Function Description
    shopify.setCredentials Set Shopify store credentials.
    shopify.listProducts List products in the store.
    shopify.getProduct Get a product by ID.
    shopify.createProduct Create a new product.
    shopify.updateProduct Update an existing product.
    shopify.listOrders List orders with optional filters.
    shopify.getOrder Get an order by ID.
    shopify.listCustomers List customers.
    shopify.getCustomer Get a customer by ID.
    shopify.getInventory Get inventory levels for an item.
    shopify.countProducts Get total product count.
    shopify.countOrders Get total order count with optional status filter.

    Examples

    List products in the store.

    shopify.listProducts {"limit":10}

    Get a product by ID.

    shopify.getProduct "123456789"

    Create a new product.

    shopify.createProduct {"title":"New Product","body_html":"<p>Description</p>","vendor":"My Brand"}

    Integration with RobinPath

    import { RobinPath } from "@wiredwp/robinpath";
    import Module from "@robinpath/shopify";
    
    const rp = new RobinPath();
    rp.registerModule(Module.name, Module.functions);
    rp.registerModuleMeta(Module.name, Module.functionMetadata);
    
    const result = await rp.executeScript(`
      shopify.setCredentials "my-store" "shpat_xxx"
      shopify.listProducts {"limit":10}
    `);

    Full API Reference

    See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

    License

    MIT