Try it

Connecting your shop via API

Sortyra team · · 5 min read

Today Sortyra sends products to your online shop as a file at a permanent address – the shop downloads it and imports it. A direct API connection, where Sortyra writes products, prices and stock straight into your shop, is marked “Coming soon”. Once it is ready for your platform, you will be able to switch with one click.

What connecting your shop means

An online shop needs three things from its suppliers: products (titles, descriptions, images, categories), prices and stock. Sortyra combines them from all your suppliers' feeds and prepares them in a form your shop understands.

There are two ways to get them into your shop:

  1. Import from a file – Sortyra publishes a file at a permanent address and your shop downloads it. It is as if you had an always up-to-date price list on a noticeboard and your shop came by regularly to copy it. This is how it works today.
  2. Direct API connection – Sortyra would write the data straight into your shop, without files. An API (application programming interface) is an agreed way for two programs to talk to each other without a person involved. This connection is coming soon.

Where to find it

You open the Direct API connection to your shop page through the search in the top bar (Ctrl + K, type “Shop connection”) or when adding a source: in the wizard, choose Connection and click Shop connection. In the menu, the page is highlighted under System → Integrations and API. It has a Coming soon label, describes how the connection will work and which platforms we are preparing it for, and in the Until we launch section it points you to the Outputs and shop import button.

How it works today: importing from the output URL

  1. In the Outputs and channels menu, click New output in the top bar and enter the output's name.
  2. As the Channel, choose your platform's format:
  • Shoptet (XML) in the Main channels group – Shoptet downloads the file from the address by itself; you enter the address in the import settings in the Shoptet admin,
  • in the E-commerce platforms (product import) group, ready-made CSV files for WooCommerce, Shopify, PrestaShop and Magento 2 / Adobe Commerce.
  1. Choose the sources (suppliers) and click Create.
  2. In the output detail, click Output settings (the Settings tab) and choose what should be updated in your shop (see below).
  3. Click Publish now in the top bar and copy the address with the Copy feed URL button.
  4. Use the address in your platform's product import. In WooCommerce, upload the file via Products → Import; on the next import, existing products are recognised by their code (SKU) and updated.

If your platform doesn't have a ready-made format, you can build your own CSV or XML – see Channel formats and custom specifications.

What should be overwritten in the shop

In the output settings (the Settings tab) there is an Update in the shop option:

OptionWhen to use it
All datathe first import, or a shop where you don't edit texts by hand
Stock and price onlyyou have fine-tuned titles, descriptions and images in the shop and don't want to lose them
Stock only (don't change prices)you set prices in the shop yourself

For a Shoptet output there is also the Variants in Shoptet XML option: each variant separately, or grouped under a main product (for example a T-shirt in five sizes).

What the direct API connection will bring

According to the page in the app, the connection will work like this:

  1. You create an access key in your shop's admin and paste it into Sortyra.
  2. Existing products in your shop are matched by code and EAN, so no duplicates are created. Before the first write, you see a preview of the changes.
  3. You choose what gets written: just stock and prices, or titles, descriptions, images and categories too.
  4. After that it runs on its own: after every change at a supplier, only the changed products are sent.

The benefits: stock and prices in your shop will be up to date within minutes, new products will be created complete with images, category and variants, no import files or paid plugins will be needed, and you will see shop errors on the specific product. Nothing gets deleted – a discontinued product is just hidden or set to zero stock.

We are preparing the connection for platforms with an interface for writing products, such as Shoptet, Upgates, WooCommerce, Shopify, PrestaShop, Magento, Shopware and others, depending on the country. We will launch it gradually. Once it is ready for your platform, you will be able to switch with one click. If your platform is missing from the list, use the My platform is missing – write to us button.

Examples

  • Shoptet with three suppliers: a Shoptet (XML) output combines tents, sleeping bags and fishing gear into one import.
  • WooCommerce: a CSV output with categories in the form “Fishing > Rods”, which WooCommerce also creates as subcategories during the import.
  • Edited texts in the shop: set Stock and price only, and the descriptions you have rewritten by hand in the shop stay as they are.
  • Your own stock plus suppliers: availability is calculated according to Stock and delivery before the export.

Tips and common mistakes

  • Every product must have a unique code. It is how the shop recognises what it already has on the next import.
  • Do the first import with “All data”, then switch to a narrower scope if you edit texts in the shop.
  • Don't confuse this with Sortyra's REST API. That is for connecting your own systems to Sortyra – see REST API.
  • Keep an eye on downloads. The output shows whether your shop really is downloading the feed.

Frequently asked questions

When will the direct API connection to online shops be available?

No date has been announced yet. We will launch connections gradually, platform by platform; until then, importing from the output URL works.

Can I get products from Sortyra into my shop now?

Yes, through an output in your platform's format. Your shop downloads the file from its permanent address, or you import it by hand.

Will the import overwrite my manual edits in the shop?

If you choose Stock and price only or Stock only (don't change prices), titles, descriptions, images and categories in your shop stay unchanged.

My platform isn't on the list. What can I do?

If it can import CSV or XML, you can build your own format. To ask about a direct connection, write to us via the contact page.

Try it on your own feed