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.

1
2
3
4
5
import { gateway as MoltinGateway } from '@moltin/sdk';

const moltin = MoltinGateway({
  client_id: 'XXXX'
});

Save 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”.

1
2
3
4
5
6
// 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();

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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'
});