Getting Started
Choose Your Integration Path
Path
Best For
Complexity
What You Get
Path 1: Widget Only (Quickest)
Step 1: Add the Widget
<div id="sync-widget"></div>
<script src="https://sync-api.stackline.com/sync-sdk/latest/sdk.umd.js"></script>
<script>
SyncSDK.init({
clientId: "bc_your_app_id",
environment: "sandbox",
container: document.getElementById("sync-widget"),
// Called when sync completes
onSync: (result) => {
console.log(`Synced ${result.ordersFound} orders!`);
showSuccessMessage(`Found ${result.ordersFound} orders`);
},
// Called for all widget events
onEvent: (event, data) => {
console.log("Widget event:", event, data);
},
});
</script>Step 2: That's It!
Path 2: Widget + Backend API (Full Integration)
How It Works
Step 1: Embed the Widget (Frontend)
Step 2: Implement OAuth2 (Backend)
Step 3: Fetch Order Data (Backend)
Step 4: Display in Your App (Frontend)
Why Backend API vs Frontend?
Alternative: Webhooks (Coming Soon)
Test Credentials
Go to Production
What's Next?
Last updated
Was this helpful?