Setup DIY Live Pricing
If you are an integrator (e.g. DCKAP) or have a development team that is running your own integration with EvoX, you can use the below to setup your own live pricing integration. Simply choose the "ErpLivePricing" as the provider.
Enable Endpoint in Admin
Once you have created an API endpoint to support the ERP Live Pricing integration (see example request and response below) then you can configure the EvolutionX store in Admin Settings → Settings → Store Preferences and enter the following:
Provider: ErpLivePricing
Endpoint URL: [endpoing url starting with https://]
Password (used in the authorization header):
[Authorization] for Bearer Token and OAuth2.0.
[custom key] for Username & Password.
Token (used in the authorization header):
[your bearer token] for Bearer Token (We automatically apply the "bearer").
[custom password] for Username & Password.
For OAuth 2.0, a token should already be placed.
Example Live Pricing Request and Response
EvolutionX can code for new live pricing integrations. EvolutionX includes an account code and one or many products in a single request. If, for example, we send 12 products in the list and you are unable to find one of them in the ERP, we would ask that your response includes the item and pricing that you did find (you can either not include the missing item or include it with an error message in your response, along with the item prices of the found products).
This is an example Live Pricing Request:
Request Header Notes:
Example Request Header: Content-Type: application/json |
Request Body Notes:
{
|
Response Body
Notes:
{
|
If the price_source_type has a value and the Live Pricing Badges are set in the store, a badge will be displayed in the corresponding item on the storefront.
Postman Overview
As previously mentioned, when the password field value is set to "Authorization", the Bearer will be automatically attached at the beginning of the token value.
We have a brief preview on Postman that can help visualising the expected behaviour:
Live Item Swaps
Live Swaps is an extension to Live Pricing, enabling your store to change/suggest a new item after the user selecting it. This feature is optional and is going to depend on the structure provided.
Alternative to Live Item Swaps
EvolutionX has the Item Swaps feature built in. Learn more about in this article.
Live Item Swaps Examples
Sugestive Swap | Force Swap |
A suggested swap will allow the customer to add the original item or suggested item to basket. | A forced swap will allow only the swapped item to be purchased. |
Example Live Item Swaps Response
Being an extension of Live Pricing, the headers and request are the same. The change needed to enable this feature is only on the response and is expected in the same endpoint as Live Pricing.
Request Header
|
Request Body
|
Response Body
Notes:
{
|
ERP DIY Integration
To use this feature you need the ERP DIY Integration App see the full article.
Contact the customer success team to discuss a new Live Pricing integration project.