4. Price Sync
This document describes the fields required to successfully sync the prices of Pylon products with Magento products.
4.1 Terminology and Fields
Check the reference in Fields
Field |
|---|
Pylon ID |
Pylon UID |
SKU |
Price |
Price Bikeshop |
Special Price |
Special Price Bikeshop |
Special Price From |
Special Price From Bikeshop |
Special Price To |
Special Price To Bikeshop |
Wholesale Price |
Φορολογική κλάση προϊόντος |
Last Modified Date |
4.2 Endpoint
4.2.1 Required fields
Field | Type | Description |
|---|---|---|
Pylon ID | text | A unique identifier for the product in Pylon. |
Pylon UID | text | A unique identifier for the product in Pylon. |
SKU | text | A unique identifier for the product in Magento. |
Price | float | The price of the product in Pylon. |
Last Modified Date | datetime | The date and time when the product was last modified in Pylon. |
4.2.2 Optional fields
Field | Type | Description |
|---|---|---|
Price Bikeshop | float | The price of the product in Pylon for Bikeshop. |
Special Price | float | The special price of the product in Pylon. |
Special Price Bikeshop | float | The special price of the product in Pylon for Bikeshop. |
Special Price From | datetime | The date and time when the special price starts in Pylon. |
Special Price From Bikeshop | datetime | The date and time when the special price starts in Pylon for Bikeshop. |
Special Price To | datetime | The date and time when the special price ends in Pylon. |
Special Price To Bikeshop | datetime | The date and time when the special price ends in Pylon for Bikeshop. |
Wholesale Price | float | The wholesale price of the product in Pylon. |
4.2 The process
Magento will query Pylon for prices using the aforementioned endpoint. The query will return a list of products with their respective data filtered by the last modified date to minify the required data to compare.
Magento will then compare the prices with the existing prices in Magento.
Magento will update the prices in Magento with the prices from Pylon.
4.3 Optional Webhook (Phase 2)
Pylon will send a webhook to Magento when the prices are updated in Pylon. The webhook will contain the following fields:
And optionally the following fields: