System for quick creation of websites and online stores

Use of XML feed as a data source for the marketplace in API

Back in the category

XML feed with products containing final sales prices is based on the Partner feed module, which allows generating a data source for individual user groups and language versions of the e-shop. A feed containing "public" prices can be used as a data source for the marketplace. These are the ones that a non-logged-in customer sees. The product data source is generated in a separate file and updated several times a day.

Note: If the Partner feed is not available in the e-shop administration in the tab Import/Export -> Partner feed, you need to contact our support, who will activate the module for your website.

nastavení Partner feedu

In the "Public prices" section, you need to activate the feed of the language version that you want to use as a data source. Once activated and saved, the file will be generated and available through the API within a few minutes. The warehouse_number is used as the product identifier in the feed.

The getFeedUrl method is used to find out the feed URL via the API, which has two parameters, the language code and the feed type.

Sample query for product feed CZ language version:

query {
     getFeedUrl(lang_code: "cz", type: products)
}

Query for availability feed (the same for all language versions):

query {
     getFeedUrl(lang_code: "cz", type: availability)
}

The answer in both cases is a URL address:

{
    "data": {
                "getFeedUrl": "https://vase-stranka.flox.cz/api/feed/products/cz"
    }
}

To display the contents of the file via the API, the URL can be called directly with the HTTP header BW-API-Key containing a valid access token

HTTP request for feed content:

POST /api/feed/products/cz
HTTP/1.1
Host: your-page.flox.cz
BW-API-Key: Token o....................sqojO1Rr
Content-Type: application/json
Cookie: SSID=1trcfpqbu2lypib1203a01bfla
Content-Length: 27 {"query":"","variables":{}}

Would you like to ask more about this topic? Contact us please:

Captcha

i

Free 15-day trial

Design selection:

Your new website with .bizwebs.com will be available immediately.
You can change address to one without .bizwebs.com later, either by buying a new domain or reddirecting an existing one.
By pressing the create button you agree with the Terms & Conditions of Bizwebs.com.

Please select one of premade templates.
You can change design of your new website anytime you want in website administration, where you can find a wealth of template customization.
We can also create a unique design tailored to your wishes.

Login

This website uses cookies. More info
Privacy settings

We use cookies to improve your visit to this website, to analyze its performance and to collect data about its use. We may use third party tools and services to do so and the data collected may be passed on to partners in the EU, the US or other countries. By clicking on "Accept all cookies", you agree to this processing. You can find detailed information or adjust your preferences below.

Privacy declaration

Show details