Pricing API
If you're using the SparkLayer API to connect to your backend system, the price list data comes directly from your backend system (e.g. ERP, PIM, CRM, iPaaS) and each product SKU will subsequently then be assigned a price list within SparkLayer. Our diagram here runs through how this flow works.
The source system is typically the external system that sends the pricing data and you can follow these guidelines:
Step | Action |
---|---|
1 | Fetch the source system price lists |
2 | Fetch the SparkLayer price lists using this API endpoint |
3 | Create any price lists missing in SparkLayer using this API endpoint |
4 | Collect all pricing against the price lists from the source system and push to our API via this API endpoint |
The same process applies to customer-specific pricing. In this scenario, a unique price list is created that contains a reference to link to the customer, and pricing is pushed against it.
To map price lists to a customer, you can use either the SparkLayer Customer Groups or directly map them (refer to the documentation of the chosen eCommerce platform for more information).
When it comes to data mapping, keep in mind the following:
- Price lists are linked to price list rules
- Prices are connected to product data by a SKU, which is in turn linked to a price list
Here's a diagram to help illustrate the data mapping process:
The easiest way to check if price lists have been assigned to a product is to use the Price Editor tool within the SparkLayer Dashboard.