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 · /completePricing 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/lookupPurchasing 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 · /customersKeep 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.
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.