# Smapify API
Smapify provides an interface to Shopify and Smaregi transactions via a Shopify app proxy (opens new window). All requests made to <your shopify domain>.myshopify.com/apps/smapify/
will be routed to the Smapify API. Authentication will be handled by Shopify's Liquid session-based authentication.
API responses are returned as application/liquid
which can then be parsed using a standard JSON parser.
Example usage:
fetch("https://<your shopify domain>.myshopify.com/apps/<app>/<transaction>").then(
async resp => {
console.info(await resp.json())
}
)
Unauthorized requests will return the following:
{ customer_id: "Unauthorized" }
# Smaregi transaction history
Access customers' transaction history made at a Smaregi POS storefront using Smapify's Smaregi API.
Example usage:
let resp = await fetch("https://<your shopify domain>.myshopify.com/apps/smapify/smaregi_transactions?customer_id=:customer_id");
let respData = await resp.json();