Return to site

Book a live demo with a B2B expert.

See how SparkLayer fits your setup and what it would take to launch your new B2B store, fast.

  • Get a tailored walkthrough based on your business
  • Learn how it works with your existing systems
  • Get a plan for rollout and adoption
  • Live with Q&A with a B2B eCommerce expert

Let's begin your B2B transformation.

Drop in your email and URL to see what SparkLayer would look like on your store. Prepare to be amazed!

Alex Weston

We'll get back to you within 1 hour to arrange a good time to speak. Alex Weston, Sales Team

Not quite ready for a chat? Try our interactive demo instead.
You can also email us at hello@sparklayer.io.
Rated 4.9 out of 5 on the Shopify App Store
Sales Agent Ordering Β· Order for any account, anywhere / Negotiate prices inside the order Live customer-specific pricing Quoting built in At the counter or on the road Explore now β†’
The SparkLayer API

Everything SparkLayer does, open to your systems.

Your stock lives in your ERP, your products in your PIM, your terms in your finance system. SparkLayer is the B2B layer between them and your customer — and every part of it is reachable over a REST API, so it fits the systems you already run instead of asking you to replace them.

Four ways in, one set of rules. Every API applies the same B2B logic your storefront does — the price a machine gets back is the price that customer would have seen.

Ordering API

Create and manage shopping carts on behalf of a customer, then turn a cart into an order. It runs the same checkout your buyers do, so business rules land identically whether a person or a system placed it.

POST /carts · /calculate · /complete

Pricing API

Automate your pricing data into SparkLayer, and ask what a given customer actually pays. Responses carry per-line unit prices, line totals and quantity price breaks, with price lists, customer discounts and variant aggregation already applied.

POST /pricing/lookup

Purchasing API

Update the orders your customers can see. As an order moves through your warehouse or ERP, push the state back so the buyer’s account reflects where it really is rather than where it was at checkout.

PATCH /orders/{orderId}

Core API

The wider surface — products, customers and the rest of the data SparkLayer holds. If you are on a supported platform, products and customers come across on their own; the Core API is for everything you want to drive yourself.

GET /products · /customers

Keep the systems you have already paid for. SparkLayer isn’t trying to replace your ERP, your warehouse or your PIM — it’s the B2B layer those systems sell through.

ERP

The prices, terms and credit limits your finance team already maintains, pushed in — and the B2B orders they produce, pushed back.

Warehouse & fulfilment

Push order state back as it moves through the building, and the buyer’s account shows where their order really is instead of where it was at checkout.

PIM

One source of product truth. The attributes buyers search and filter on come from the system that already owns them, not a second copy that drifts.

CRM & iPaaS

If you would rather not write the integration at all, the same API sits behind middleware platforms and CRM connectors, so someone else maintains the plumbing.

The Frontend SDK

Take it further than the widgets. Spark JS — the framework behind SparkLayer’s frontend — opens the templates and cart logic to your own code. Restyle a single component, or go fully headless.

  • Customise every template — Spark JS template objects let you reshape what each SparkLayer component renders
  • Take control of the cart — modify cart contents and the add-to-cart flow from your own code
  • Go headless — run SparkLayer behind a fully custom frontend when the widgets aren’t enough
  • Six dedicated APIs behind it — Pricing, Ordering, Purchasing, Stock, Files and Core, secured with OAuth2

Read the technical docs

Questions & Answers.

What is the SparkLayer API?

The SparkLayer API is a REST API with OAuth2 authentication that lets you connect your own systems to SparkLayer. It covers the data SparkLayer holds - products, customers, pricing and orders - so an ERP, WMS, CRM or PIM can drive your B2B store directly rather than through manual imports.

Which APIs are available?

There is an Ordering API for creating and completing carts on behalf of a customer, a Pricing API for automating pricing data in and looking up what a given customer pays, a Purchasing API for updating the orders your customers can see, and a Core API covering the wider data set such as products and customers.

Do I need to be on a particular plan?

API access is available on the Pro and Enterprise plans. You will need your site ID from the SparkLayer dashboard and a set of API keys that you generate yourself.

Can I connect my ERP or warehouse system?

Yes. ERP, CRM, PIM and iPaaS platforms are all common integrations. Prices, terms and credit limits can be pushed in from the systems that already maintain them, and order state can be pushed back out as an order moves through your warehouse.

Does the API apply the same B2B rules as the storefront?

Yes, and that is the point of it. A pricing lookup returns what that specific customer would have seen, with their price list, customer-level discounts, quantity price breaks and variant aggregation already applied. Completing a cart runs the same checkout your buyers do.

Do I still need the API if I use Shopify?

Not for the basics. On a supported platform such as Shopify, SparkLayer retrieves product and customer data on its own. The API is there for everything you want to drive yourself, or for data that lives in a system SparkLayer does not integrate with directly.

Is there a frontend SDK as well?

Yes. Alongside the REST API there is a frontend SDK for the storefront side, and SparkLayer Ignite, our B2B commerce framework, for enabling SparkLayer on any website or platform.

Where is the technical documentation?

The full technical documentation, including authentication and the individual API references, is at docs.sparklayer.io/tech-docs.

×