Problems importing Product Availabilities

Hello everyone,

I am currently getting to know Emporix and have tried to import products and stock levels.
When I look at the Availability tab for the product in the Management Dashboard, I can only see and edit the attributes stock level and distribution channel. I have seen via the API that popularity and available flag can also be set.

However, when I set popularity (e.g., to 5) and available (true) either via AI Smart Import or via the API, these values are not applied.
When I afterwards query the availability via API, the popularity is not set and available is set to false.

Does anyone has a tip on what else I need to consider so that the Availbilities can be imported correctly?

Many thanks in advance,
Martin

Hello,

We recommend not to create a new product availability for a sitecode named main. A site named main works as an aggregator of availability data from other sites. It’s not possible to later retrieve availability for a single site when it’s called main.

Did you use it that way?

Can you also provide the API request you used?

Thank you.

Hi Lukasz,

Thank you for your feedback.
I didn’t create the site manually; I used AI Smart Config, and it generated this site named main.

Do I now need to create an additional site in order to make products available?
Also, regarding availabilities: there are three distribution channels, but in my current site I haven’t found any setting where I can define which distribution channel should apply for availability.

Could you please advise on the correct approach here?

Thanks a lot for your support!
Best regards,
Martin

Hello,

yes, firstly I would recommend to create separate sites which will be used for setting the availabilities for products. Then, we could proceed further.

You can find more information on that here: Availability Tutorial | API Documentation | Documentation Portal

Best regards.

Hello,

I have created a new site and I removed the site main completely from my tenant.

When opening the Emporix Showcase and navigating to a product list, I can see that there is still the availabilities for site=main read. All the other requests (catalog, cart, etc. are using my new site instead).

So as a result there is still no availabilities in the product list of the Emporix showcase.

Best regards,
Martin

Hello,

yes, this is correct because site: main works as an aggregator of availability from other sites, there was no need to remove that sitecode, it is just that availabilities for products need to be created on other sitecodes.

Did you create availability for products on specific site already, using this endpoint? (not main)

Best regards.

Hello,

yes I did already create the availability for my new site.
But still it says Out of stock.
What would be the request retrieving the availabilities for the products in my site?
The availability?site=main does always return only those availabilities created for main explicitely.
And since I started with some demo data (AI Smart Import Sample Data Import), I do have several availabilities for the Demo products.
In between I have deleted the availability for my test product (defined for site main) via API.
In the availability?site=main I do now get an entry for this product without the stocklevel attribute and available=false.
Maybe it gets mixed up with the former availabilities created for main site? Do I need to create a new test product for which there was no availability for main defined at all?!
Thanks and best regards
Martin

Hello,

unfortunately, that is correct. We recommend not to create a new product availability for a main sitecode. It’s not possible to later retrieve availability for a single site when it’s called main. Use a different sitecode for creating product availabilities.

If you wish, I can manually remove older availabilities created for main sitecode, but I would need your tenant’s name.

Is this understandable for you?

Best regards.

Hi Lukasz,

I got what you wrote. But there is no need that you delete the availabilities. I still have another tenant, where I can test it (when I can find time for this).

Thanks for your support on this topic.

Bets regards
Martin