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, General Manager

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
The SparkLayer API

Connect SparkLayer to the systems behind your B2B operation.

Keep products in your PIM, stock in your warehouse system and customer terms in your ERP or finance platform. The SparkLayer REST API connects that data to your B2B ordering experience, then sends completed orders and customer activity back into the systems your team already uses.

REST APIs

Four APIs. The same B2B rules everywhere.

Every SparkLayer API uses the same customer, pricing and ordering logic as your storefront.

If another system asks for a price, it receives the price that customer would see online. If it completes a basket, SparkLayer applies the same terms, quantities and checkout rules.

Ordering APIBuild and complete customer orders.

Create a basket for a customer, add or update its lines, calculate the order and submit it through the same checkout flow customers use online.

SparkLayer applies their pricing, payment terms and ordering rules before the order is completed.

POST /carts · /calculate · /complete

Pricing APIReturn the price the customer should pay.

Sync pricing data into SparkLayer or request the live price for a particular customer and product.

Responses include unit prices, line totals and quantity breaks, with price lists, customer discounts and variant rules already resolved.

POST /pricing/lookup

Purchasing APIKeep customer-visible orders up to date.

Update an order as it moves through your ERP, warehouse or fulfilment process.

The status in the customer’s account stays current, so they can see what has happened since checkout without contacting your team.

PATCH /orders/{orderId}

Core APIWork with the wider SparkLayer data model.

Access products, customers and the other core records held by SparkLayer.

Supported ecommerce platforms sync much of this data automatically. Use the Core API when you need to supply, retrieve or manage it yourself.

GET /products · /customers

Keep each system responsible for the data it already owns.

SparkLayer sits between your business systems and the B2B buying experience.

Pricing and customer terms can continue to come from your ERP. Product details can stay in your PIM. Your warehouse can update fulfilment. SparkLayer brings it together for the customer and sends each order back into your existing workflow.

ERPBring customer terms in. Send completed orders back.

Sync the prices, payment terms and credit limits your finance team already maintains. When a customer or sales rep places an order, send it back to the ERP for processing.

Warehouse and fulfilmentShow customers what is happening to their order.

Send fulfilment updates to SparkLayer as the order moves from placed to picked, packed and shipped. The customer sees the latest status in their account without waiting for an email from your team.

PIMKeep one source of product information.

Use the product descriptions, attributes and specifications already managed in your PIM. Customers can search and filter using the same product data, without your team maintaining a second copy that gradually falls out of date.

CRM and integration platformsConnect through the tools you already use.

Use CRM connectors and integration platforms such as Patchworks and Celigo when you do not want to build and maintain a direct API connection. They use the same SparkLayer APIs while the integration provider manages the connection.

The Frontend SDK

Use our storefront components, customise them or build your own.

Spark JS is the framework behind the SparkLayer storefront experience. It gives your developers access to the templates and basket behaviour underneath our ready-made components.

Change the output of a single component, take control of the add-to-basket flow or use SparkLayer behind a completely custom frontend.

  • Reshape individual components - Spark JS template objects change what each SparkLayer component renders
  • Take control of the basket - read and update basket contents from your own code
  • Replace storefront elements - swap individual SparkLayer elements for custom components
  • Go fully headless - run SparkLayer behind a completely custom frontend
  • Six APIs behind it - Pricing, Ordering, Purchasing, Stock, Files and Core, through OAuth2

Read the technical docs →

Questions and answers.

What is the SparkLayer API?

The SparkLayer API is a REST API secured with OAuth2. It connects your own systems to the products, customers, prices, baskets and orders managed by SparkLayer.

Use it to let an ERP, warehouse system, CRM, PIM or integration platform drive parts of your B2B ordering operation without relying on manual imports.

Which APIs are available?

SparkLayer provides:

  • Ordering API: Create, calculate and complete baskets for a customer
  • Pricing API: Sync pricing data and return the price a customer should pay
  • Purchasing API: Update the orders and statuses shown to customers
  • Core API: Work with wider SparkLayer data such as products and customers

The wider technical platform also includes Stock and Files APIs for the Frontend SDK and custom implementations.

Which plans include API access?

API access is available on Pro and Enterprise plans.

You will need your SparkLayer site ID and API credentials, which you can generate from the dashboard.

Can I connect an ERP or warehouse system?

Yes. Common integrations include ERP, warehouse, CRM, PIM and integration platforms.

You can bring customer prices, payment terms and credit limits into SparkLayer, then send orders and fulfilment updates back through your existing systems.

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

Yes. A pricing request returns the price that specific customer would see online, including their price list, discounts and quantity breaks.

Completing a basket through the API also applies the same customer terms and checkout rules as an order placed through the storefront.

Do I need the API if I use Shopify?

Not for a standard setup. SparkLayer already retrieves products and customers from supported platforms such as Shopify.

Use the API when you want another system to control additional data, automate a process or support a requirement that is not covered by a ready-made integration.

Is there a Frontend SDK?

Yes. The Frontend SDK lets developers customise SparkLayer’s storefront components and basket behaviour, or run SparkLayer behind a headless frontend.

For websites and platforms without a standard SparkLayer integration, SparkLayer Ignite provides the wider framework for a custom implementation.

Where can I find the technical documentation?

The technical documentation covers authentication, API endpoints, request and response formats, and the Frontend SDK.

Read the API documentation

×