How Moltin works

With our powerful APIs, bespoke eCommerce experiences just got a whole lot easier to design, build and integrate.

Connect your app to the cloud

Experience true freedom

Moltin is the complete omni-channel eCommerce platform. Simply connect your app to Moltin with one of our SDKs and just a few lines of code.

import { gateway as MoltinGateway } from '@moltin/sdk';
      
      const moltin = MoltinGateway({
        client_id: 'XXXX'
      });
require 'vendor/autoload.php';
      $moltin = Moltin\Client([
        'client_id'     => 'api_client_id',
        'client_secret' => 'api_client_secret'
      ]);
curl -X "POST" "https://api.moltin.com/oauth/access_token" \
        -d "client_id=" \
        -d "client_secret=" \
        -d "grant_type=client_credentials"

Sava data with ease

Managing your data has never been easier

Create, update, get and delete data within Moltin for a variety of resources including inventory and customer data to orders and discounts. You can even store your own custom datasets or extend pre-existing ones with “Flows”.

// Get product by ID
      const product = Moltin.Products.Get(id);
      // Add this product to cart
      Moltin.Cart().AddProduct(product.id);
      // Get Cart contents
      const cart = Moltin.Cart().Items();
// Get product by ID
      $moltin->products->get($id);
      // Add this product to cart
      $moltin->cart()->addProduct($id);
      // Get Cart contents
      $items = $moltin->cart()->items();
// Get product by ID 6
      curl -X "GET" "https://api.moltin.com/v2/products/6" \
        -H "Authorization: ACCESS_TOKEN"
      
      // Add this product to cart
      curl -X "POST" "https://api.moltin.com/v2/cart/1234" \
        -H "Content-Type: application/json" \
        -H "Authorization: ACCESS_TOKEN" \
        -d $'{
            "data": {
              "type": "cart_item",
              "id": "PRODUCT_ID",
              "quantity": 1
            }
          }'
      
      // Get Cart contents
      ``` bash
      curl "GET" "https://api.moltin.com/v2/cart/1234/items" \
        -H "Authorization: ACCESS_TOKEN"

Process eCommerce logic

Effortless eCommerce functionality at your fingertips

Moltin masks the complexities of eCommerce by processing logic in the cloud. Whether you’re adding a product to a customers cart, the checkout flow, currency conversion or calculating tax & shipping, it’s as simple as one API call.

// convert cart to order
      const address = {
        first_name: 'John'
        last_name: 'Doe',
        line_1: '123 Sunny Street',
        line_2: 'Sunnycreek',
        county: 'California',
        postcode: 'CA94040',
        country: 'US'
      };
      
      const customer = {
        email: 'john@doe.co',
        name: 'John Doe'
      };
      
      const order = Moltin.Cart().Checkout(customer, address);
      
      // process payment for order
      const payment = Moltin.Orders.Payment(order.id, {
        gateway: 'stripe',
        method: 'purchase',
        first_name: 'John',
        last_name: 'Doe',
        number: '4242424242424242',
        month: '02',
        year: '2020',
        verification_value: '123'
      });
// convert cart to order
      $order = $moltin->cart()->checkout([
        "name" => "John Doe",
        "email" => "john@doe.co"
      ],
      [
        "first_name" => "John",
        "last_name" => "Doe",
        "line_1" => "123 Sunny Street",
        "line_2" => "Sunnycreek",
        "postcode" => "CA94040",
        "county" => "California",
        "country" => "US"
      ]);
      
      // process payment for order
      $payment = $order->pay('stripe', 'purchase', [
        'first_name' => 'Jon',
        'last_name' => 'Doe',
        'number' => '4242424242424242',
        'month' => 02,
        'year' => 2020,
        'verification_value' => 213
      ]);
// convert cart to order
      curl -X "POST" "https://api.moltin.com/v2/carts/1234/checkout" \
        -H "Content-Type: application/json" \
        -H "Authorization: ACCESS_TOKEN" \
        -d $'{
            "data": {
              "customer": {
                "name": "John Doe",
                "email": "john@doe.co"
              },
              "shipping_address": {
                "first_name": "John"
                "last_name": "Doe",
                "company_name": "Moltin",
                "line_1": "123 Sunny Street",
                "line_2": "Sunnycreek",
                "postcode": "CA94040",
                "county": "California",
                "country": "US",
                "instructions": "none",
              },
              "billing_address": {
                "first_name": "John"
                "last_name": "Doe",
                "company_name": "Moltin",
                "line_1": "123 Moltin Street",
                "line_2": "Mountain View",
                "postcode": "CA94040",
                "county": "California",
                "country": "US",
              }
            }
          }'
      
      // process payment for order
      curl -X "POST" "https://api.moltin.com/v2/orders/:ORDER_ID/payments" \
        -H "Authorization: ACCESS_TOKEN" \
        -d $'{
            "data": {
              "gateway": "stripe",
              "method": "purchase",
              "first_name": "John",
              "last_name": "Doe",
              "number": "4242424242424242",
              "month": "08",
              "year": "2020",
              "verification_value": "123"
            }
          }'

Ready to get started?

It always starts with a conversation.