Skip to main content
All CollectionsFeedsOutput feeds
API Endpoints / New price feed
API Endpoints / New price feed

How to create endpoint links to update product prices.

Nicolaj Møller Jessen avatar
Written by Nicolaj Møller Jessen
Updated over a week ago

When you're looking to establish dynamic pricing, PriceShape provides the updated prices for products through endpoints that include the attribute <new_price>. You can locate and generate these endpoints within the output feed section of your PriceShape account. To learn more about output feeds, you can find additional information here.

Best Practice

When setting up an output feed, it's important to prioritize data precision and conciseness.

One effective approach is to eliminate products without an available new price and to focus solely on relevant product attributes.

  • Product selection: Select "New Price --> Is Present." These settings guarantee the inclusion of only those products that have a new price.

    Note: If you have multiple feeds and require separate API endpoints, ensure that you select the appropriate feed here as well."

  • Product attributes: Choose only the essential attributes. Typically, this includes a product identification number like 'GTIN/EAN' or a unique 'ID,' along with the 'New Price'.

Syntax

The endpoints follow this format:

https://public.app.priceshape.io/api/date/export/token

When you make a GET request to these endpoints, they will provide the requested data in JSON, XML, CSV, or Google Sheets format. Each different endpoint contains the chosen attributes. Below, you'll find an example of our XML endpoint:

<item> 
<gid>6542122953</gid>
<mpn>3113352</mpn>
<gtin>5702213112522</gtin>
<new_price>825.75</new_price> <-- The new price for the products
<availability>in stock</availability>
</item>

Please note: The above response serves as an illustrative example and is fully customizable.

The <new_price> attribute will display the updated price for the product. As PriceShape identifies cases where the product price matches the new price, these products will be excluded from the response and you now have the latest recommended price for your product.

Should you have any questions, feel free to contact us.

Did this answer your question?