• Log in
  • Sign up
  • Contact Us

Get in touch  

JavaScript eCommerce platform

A suite of simple eCommerce APIs to power modern JavaScript applications.

Create a store Learn more

Surprisingly small, incredibly powerful

Install in seconds - it’s as easy as copying and pasting a code snippet, clocking in at just 2.1kb (minified, compressed and served over .gzip)

npm install --save @moltin/sdk

A rich feature set at your fingertips

Power your inventory, carts, categorization, search, checkout and more.

// Add a product to a cart
      async function addToCart() {
        try {
          // Get all products in your store
          const products = await Moltin.Products.All();
          const product = products.data[0];
          // Add the first product to the cart
          return Moltin.Cart().AddProduct(product.id);
        } catch (e) {
          e.errors.forEach(err => {
            throw new Error(err.detail);
// Checkout the cart and pay for the order
      async function checkoutCart() {
        const address = {
          first_name: 'Jon',
          last_name: 'Doe',
          line_1: '123 Sunny Street',
          postcode: 'CA94040',
          county: 'California',
          country: 'US'
        const customer = {
          email: 'john@doe.co',
          name: 'John Doe'
        try {
          // Checkout the cart and create an order
          const order = await Moltin.Cart().Checkout(customer, address);
          // Pay for the order using Stripe
          return Moltin.Orders.Payment(order.data.id, {
            gateway: 'stripe',
            method: 'purchase',
            first_name: 'John',
            last_name: 'Doe',
            number: '4242424242424242',
            month: '02',
            year: '2020',
            verification_value: '123'
        } catch (e) {
          e.errors.forEach(err => {
            throw new Error(err.detail);
Any framework
No external libraries required. Works seamlessly with all modern JS frameworks.
Lightning fast
Remove the middleman servers and connect clients directly to our backend.
Payment ready
Choose and implement your preferred provider from the most popular payment gateways.
Our implicit grant type ensures clients can not make destructive actions.

Any language, any device, anywhere

With an SDK optimized for JavaScript, Node, Angular and ReactJS, use the framework you prefer.

Let's build something amazing with Moltin

It always starts with a conversation.

Get in touch