Try it

POHODA: exporting stock to your shop, Heureka and Google

Sortyra team · · 5 min read

If you keep your stock in POHODA, you can send stock levels to your shop, Heureka, Google and marketplaces without retyping anything. Sortyra recognises the XML export of the Stock agenda by itself, calculates the available quantity from reservations and received orders, and maps prices both incl. and excl. VAT.

What you need

  • POHODA with the Zásoby (Stock) agenda,
  • a place where the export is saved and where Sortyra downloads it from – a website, FTP or SFTP,
  • a way to run the export regularly – for example POHODA mServer or Windows Task Scheduler.

If your accountant or IT administrator looks after POHODA, send them this article – setting up the export is a one-off job.

Step 1: XML stock export from POHODA

POHODA exports stock through XML communication (in the program, the Soubor / Datová komunikace / XML import/export menu). The export is started with a request for the stock list (lStk:listStockRequest), and the result is an XML file with the list of stock items. The format is described in the official XML export documentation from STORMWARE.

For a regular export, use POHODA mServer or Windows Task Scheduler and save the resulting file to FTP or a website.

Step 2: Adding the source in Sortyra

  1. In Sources, click Add source in the top bar.
  2. Under Where the feed comes from, choose URL or FTP / SFTP and as the source role choose My warehouse.
  3. In the Feed URL field, enter the address of the export file.
  4. Click Load and detect. We recognise a POHODA export from the beginning of the XML, and the message "Export from POHODA – fields mapped using the template." appears. You can also choose the template manually in the expandable More options section, in the Warehouse or accounting software (template) field.
  5. Check the field mapping in the Recognition result section, under Update schedule set Updates per day and click Save and download.

What is read from POHODA

In SortyraIn the POHODA export
Codestock item code
EANEAN
Name, unit, description, weightstock card details
Manufacturermanufacturer
Categorystock structure without the first level (for example "ZBOŽÍ/Nábytok/Pre firmy" → "Nábytok > Pre firmy")
Price incl. VAT and excl. VATselling price; we calculate the other price from the "incl. VAT" flag and the VAT rate
VAT rateselling rate as a percentage
Stockstock level minus reservations minus the quantity in received orders

Why received orders are deducted too

In POHODA, reservations and received orders are kept separately – a reserved order moves from orders to reservations. So that the same item is not sold twice, we deduct both. The result is the quantity you can really offer.

Images from POHODA

The POHODA export lists images only as file names, without the full URL. If you want to use the images from the stock card in your feed, upload them to a website and fill in Base for image and link URLs for the source. More often, though, images and texts come from your shop feed or from the supplier, and POHODA supplies only stock and prices.

How often to export

Stock changes with every order. We recommend:

  1. passing orders from your shop to POHODA automatically,
  2. running the stock export every 15–30 minutes,
  3. setting the source download in Sortyra to the same interval (every 30 or 15 minutes is available on higher plans),
  4. setting the import of the output into your shop to the same or a longer interval.

If the export stops arriving, the freshness guard alerts you and can optionally stop offering items you may no longer have for the time being.

Orders from marketplaces back to POHODA

If you sell on marketplaces through the Marketplaces module (beta), POHODA can download the orders by itself:

  1. In Sortyra, on the Marketplaces screen, add the POHODA – order feed order destination and fill in the Company ID (IČO) of the accounting unit (exactly as in POHODA – POHODA rejects any other data pack), the VAT rate in POHODA and the Document number prefix.
  2. If you like, switch on Link items to stock items by code and Reserve goods in stock – a received order immediately reduces the available quantity, and the stock export takes it into account before you issue the invoice.
  3. In POHODA, paste the feed URL under Nastavení → Internetové obchody → Obecný internetový obchod, on the Import tab, in the URL pro objednávky field.
  4. In POHODA E1, set up an automatic task (Databáze → Automatické úlohy), for example every 15 minutes.

Each order has a permanent document number, so downloading it again does not create a duplicate. The feed is encoded in Windows-1250; we replace characters outside it with the closest equivalents. Your stock then has a single source of truth: orders → POHODA → stock export → Sortyra → your shop and marketplaces.

Example: POHODA + Shoptet + Heureka

A shop on Shoptet sells goods from its own warehouse managed in POHODA and from two suppliers. In Sortyra it has three sources: the shop feed, the POHODA export (marked as own warehouse) and the supplier feeds. The output for Shoptet sends only stock back to the shop; the output for Heureka and Google contains the availability "In stock" for goods from POHODA and "In stock at the supplier" for the rest. More in the article Own warehouse.

Frequently asked questions

Do I have to program anything in POHODA?

No. You use the standard XML stock export that POHODA offers. You just need to set it to save regularly to a folder that is accessible from the internet (a website or FTP).

Does POHODA export prices incl. or excl. VAT?

It depends on how the selling price is set. The export carries a flag saying whether the price includes VAT, plus the VAT rate – Sortyra uses them to calculate both prices.

What if I have several warehouses in POHODA?

We take the category from the stock structure without its first part. If you want to distinguish or add up individual warehouses in the feed, export them as separate sources and mark them all as own warehouse – quantities of the same product are added up.

Is this an official add-on for POHODA?

No. Sortyra reads the standard POHODA XML export according to the public format documentation. You don't install anything in POHODA.

Try it on your own feed