Skip to main content

Custom Integrations

Spiff Commerce is designed to integrate with any e-commerce platform. You can use our API to create your own bespoke integration, this page will walk you through the steps required to create a bundle of transactions, place an order and pull metadata from Spiff.

The first step in integrating with Spiff Commerce without an official plugin is to decide what level of control over the user experience you're after.

We Handle your UI (Simple)​

A hosted experience leverages the Spiff Commerce cloud infrastructure to provide beautiful out of the box interfaces for your customers. This is a great way to integrate Spiff Commerce into your existing website without having to worry about implementing the UI. This is the recommended approach for most basic integrations and can be achieved via the following steps.

  1. To create bundles with a hosted solution you'll need to use the HostedExperience class of the Hosted Experience API, launched within an activation.
  2. When the customer completes their designs you'll be given the bundle ID and the transaction ID of each design. These IDs can be used to place an order with the Order API.

You Handle your UI (Advanced)​

If the themes provided out of the box don't cover your required use-case you have the choice to build your own with the Themes feature. When your theme is deployed it will be served via our platform to your customers but you will have full control of the look and feel. You will integrate directly with the Core SDK to implement any UI you can imagine while still leveraging the power of Spiff Commerce's infrastructure to allow you to configure and manage your workflow experiences and fulfillment automation.

When building a workflow experience via this approach Spiff Commerce will assume you have accounted for the UI necessary to present the steps you require. Technically you can leave out the integration of anything you don't actually need to save time.

  1. Create a bundle within an activation, then add workflow experiences to it. The Core SDK creates a transaction for each experience.
  2. When the customer is finished, bundle.finish() gives you the bundle ID and the transaction ID of each design. It's up to you to store these IDs against the line items they relate to. You can pass them to us whenever you're ready via the Order API, or call bundle.placeOrder(). This component of the API is handled for you with our official integrations. Any other integration will need to be done manually.