EasyMerch API is organized around REST.
The API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
Not a developer?
https://api.easymerch.io/v2
EasyMerch uses API keys to authenticate requests. You can view and manage your API keys in the Dashboard.
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
API requests must be made over HTTPS. Calls over HTTP will fail.
{
"domain": "example.com",
"website_title": "My Online Store",
"website_title_seo": "My Online Store - Official Website",
"logo_image": "https://cdn.easymerch.io/1721255666047.png",
"favicon_imge": "https://cdn.easymerch.io/1721843413384.png",
"free_shipping_minimum": "100",
"standard_shipping": "10",
"fast_shipping": "0",
"admin_email": "[email protected]",
"instagram_url": "https://www.instagram.com/example",
"primary_color": "#ffffff",
"highlight_color": "#ffffff",
"live_mode": false,
"website_copyright": "Copyright @ {{year}} My Online Store. All Rights Reserved.",
"mailgun_key": "",
"mailgun_domain": "",
"mailgun_email": "",
"theme": ""
}
const nano = require('@nano/cloud')('API_KEY')
const stores = await nano.stores.create({
"title": "My First Product",
"price": "10.00",
"currency": "Ӿ"
})
const nano = require('@nano/cloud')('API_KEY')
const nano = require('@nano/cloud')('API_KEY')
const stores = await nano.stores.list()
[
{
"title": "Test Product",
"id": "ae07a195b04b8",
"category": "Test",
"price": "5",
"currency": "Ӿ",
"inventory": "5",
"images": [
"https://cdn.easymerch.io/1719337840466.jpg"
],
"cost_per_item": "1"
}
]
const nano = require('@nano/cloud')('API_KEY')
const stores = await nano.stores.get('ID')
const nano = require('@nano/cloud')('API_KEY')
const store = await nano.stores.get('ID')
Product title.
Product description.
Product category. Example: T-Shirt, Sticker
Array of product image URLs.
ISO string of product currency For nano use 'XNO' or 'NANO'.
Optional. Stock number of product.
Optional. Internal data for calculating earnings.
The price for this product.
{
"title": "My First Product",
"price": "10.00",
"currency": "NANO"
}
const nano = require('@nano/cloud')('API_KEY')
const product = await nano.products.create({
"title": "My First Product",
"price": "10.00",
"currency": "Ӿ"
})
const nano = require('@nano/cloud')('API_KEY')
const nano = require('@nano/cloud')('API_KEY')
const products = await nano.products.list()
[
{
"title": "Test Product",
"id": "ae07a195b04b8",
"category": "Test",
"price": "5",
"currency": "Ӿ",
"inventory": "5",
"images": [
"https://cdn.easymerch.io/1719337840466.jpg"
],
"cost_per_item": "1"
}
]
const nano = require('@nano/cloud')('API_KEY')
const products = await nano.products.get('ID')
const nano = require('@nano/cloud')('API_KEY')
const product = await nano.products.get('ID')
{
"email": "[email protected]",
"name": "John Doe",
"phone": "3054990431",
"shipping_address": {
"line1": "1234 NW 5th St",
"line2": null,
"city": "Miami",
"state": "FL",
"postal_code": "33175",
"country": "US"
},
"billing_address": {
"city": "Miami",
"country": "US",
"line1": "1234 NW 5th St",
"line2": "",
"postal_code": "33175",
"state": "FL"
},
"subscribed": true,
"unsubscribed": false,
"source": "Customer"
}
const nano = require('@nano/cloud')('API_KEY')
const contact = await nano.contacts.create({
"title": "My First Product",
"price": "10.00",
"currency": "Ӿ"
})
const nano = require('@nano/cloud')('API_KEY')
const nano = require('@nano/cloud')('API_KEY')
const contacts = await nano.contacts.list()
[
{
"title": "Test Product",
"id": "ae07a195b04b8",
"category": "Test",
"price": "5",
"currency": "Ӿ",
"inventory": "5",
"images": [
"https://cdn.easymerch.io/1719337840466.jpg"
],
"cost_per_item": "1"
}
]
const nano = require('@nano/cloud')('API_KEY')
const contacts = await nano.contacts.get('ID')
const nano = require('@nano/cloud')('API_KEY')
const contact = await nano.contacts.get('ID')
{
"title": "My First Order",
"price": "10.00",
"currency": "NANO"
}
const nano = require('@nano/cloud')('API_KEY')
const order = await nano.orders.create({
"title": "My First Product",
"price": "10.00",
"currency": "Ӿ"
})
const nano = require('@nano/cloud')('API_KEY')
const nano = require('@nano/cloud')('API_KEY')
const orders = await nano.orders.list()
[
{
"title": "Test Product",
"id": "ae07a195b04b8",
"category": "Test",
"price": "5",
"currency": "Ӿ",
"inventory": "5",
"images": [
"https://cdn.easymerch.io/1719337840466.jpg"
],
"cost_per_item": "1"
}
]
const nano = require('@nano/cloud')('API_KEY')
const orders = await nano.orders.get('ID')
const nano = require('@nano/cloud')('API_KEY')
const order = await nano.orders.get('ID')
Product title.
Product description.
Product category. Example: T-Shirt, Sticker
Array of product image URLs.
ISO string of product currency For nano use 'XNO' or 'NANO'.
Optional. Stock number of product.
Optional. Internal data for calculating earnings.
The price for this product.
{
"title": "My First Product",
"price": "10.00",
"currency": "NANO"
}
const nano = require('@nano/cloud')('API_KEY')
const product = await nano.products.create({
"title": "My First Product",
"price": "10.00",
"currency": "Ӿ"
})
const nano = require('@nano/cloud')('API_KEY')
const nano = require('@nano/cloud')('API_KEY')
const products = await nano.products.list()
[
{
"title": "Test Product",
"id": "ae07a195b04b8",
"category": "Test",
"price": "5",
"currency": "Ӿ",
"inventory": "5",
"images": [
"https://cdn.easymerch.io/1719337840466.jpg"
],
"cost_per_item": "1"
}
]
const nano = require('@nano/cloud')('API_KEY')
const products = await nano.products.get('ID')
const nano = require('@nano/cloud')('API_KEY')
const product = await nano.products.get('ID')
Product title.
Product description.
Product category. Example: T-Shirt, Sticker
Array of product image URLs.
ISO string of product currency For nano use 'XNO' or 'NANO'.
Optional. Stock number of product.
Optional. Internal data for calculating earnings.
The price for this product.
{
"title": "My First Product",
"price": "10.00",
"currency": "NANO"
}
const nano = require('@nano/cloud')('API_KEY')
const product = await nano.products.create({
"title": "My First Product",
"price": "10.00",
"currency": "Ӿ"
})
const nano = require('@nano/cloud')('API_KEY')
const nano = require('@nano/cloud')('API_KEY')
const products = await nano.products.list()
[
{
"title": "Test Product",
"id": "ae07a195b04b8",
"category": "Test",
"price": "5",
"currency": "Ӿ",
"inventory": "5",
"images": [
"https://cdn.easymerch.io/1719337840466.jpg"
],
"cost_per_item": "1"
}
]
const nano = require('@nano/cloud')('API_KEY')
const products = await nano.products.get('ID')
const nano = require('@nano/cloud')('API_KEY')
const product = await nano.products.get('ID')
Product title.
Product description.
Product category. Example: T-Shirt, Sticker
Array of product image URLs.
ISO string of product currency For nano use 'XNO' or 'NANO'.
Optional. Stock number of product.
Optional. Internal data for calculating earnings.
The price for this product.
{
"title": "My First Product",
"price": "10.00",
"currency": "NANO"
}
const nano = require('@nano/cloud')('API_KEY')
const product = await nano.products.create({
"title": "My First Product",
"price": "10.00",
"currency": "Ӿ"
})
const nano = require('@nano/cloud')('API_KEY')
const nano = require('@nano/cloud')('API_KEY')
const products = await nano.products.list()
[
{
"title": "Test Product",
"id": "ae07a195b04b8",
"category": "Test",
"price": "5",
"currency": "Ӿ",
"inventory": "5",
"images": [
"https://cdn.easymerch.io/1719337840466.jpg"
],
"cost_per_item": "1"
}
]
const nano = require('@nano/cloud')('API_KEY')
const products = await nano.products.get('ID')
const nano = require('@nano/cloud')('API_KEY')
const product = await nano.products.get('ID')