# Problems importing Product Availabilities

**URL:** <https://community.emporix.io/t/problems-importing-product-availabilities/215>\
**Category:** Extensibility and Integrations\
**Tags:** integrations\
**Created:** [November 11, 2025, 5:05pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215 "2025-11-11T17:05:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Arineo](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@Martin\_Arineo](https://community.emporix.io/u/Martin_Arineo)\
**Post date:** [November 11, 2025, 5:05pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/1 "2025-11-11T17:05:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lwisniak](https://yyz1.discourse-cdn.com/flex007/user_avatar/community.emporix.io/lwisniak/32/112_2.png) [@lwisniak](https://community.emporix.io/u/lwisniak)\
**Post date:** [November 12, 2025, 1:28pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/2 "2025-11-12T13:28:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Martin\_Arineo](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@Martin\_Arineo](https://community.emporix.io/u/Martin_Arineo)\
**Post date:** [November 24, 2025, 7:31am UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/3 "2025-11-24T07:31:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lwisniak](https://yyz1.discourse-cdn.com/flex007/user_avatar/community.emporix.io/lwisniak/32/112_2.png) [@lwisniak](https://community.emporix.io/u/lwisniak)\
**Post date:** [November 24, 2025, 12:45pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/4 "2025-11-24T12:45:21Z")

</div>

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](https://developer.emporix.io/api-references/api-guides/orders/availability/availability)

Best regards.

---

<div class="post-metadata">

**Author:** ![Martin\_Arineo](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@Martin\_Arineo](https://community.emporix.io/u/Martin_Arineo)\
**Post date:** [November 25, 2025, 1:48pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/5 "2025-11-25T13:48:30Z")

</div>

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).

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/emporix/original/1X/7b28299dad5c8cfcb50c8028a338eca404d64eba.png)

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

Best regards,  
Martin

---

<div class="post-metadata">

**Author:** ![lwisniak](https://yyz1.discourse-cdn.com/flex007/user_avatar/community.emporix.io/lwisniak/32/112_2.png) [@lwisniak](https://community.emporix.io/u/lwisniak)\
**Post date:** [November 27, 2025, 1:34pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/6 "2025-11-27T13:34:51Z")

</div>

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)

> **[Availabilities | API Documentation | Documentation Portal](https://developer.emporix.io/api-references/api-guides/orders/availability/api-reference/availabilities#post-availability-tenant-availability-productid-site)**

Best regards.

---

<div class="post-metadata">

**Author:** ![Martin\_Arineo](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@Martin\_Arineo](https://community.emporix.io/u/Martin_Arineo)\
**Post date:** [November 27, 2025, 2:18pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/7 "2025-11-27T14:18:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lwisniak](https://yyz1.discourse-cdn.com/flex007/user_avatar/community.emporix.io/lwisniak/32/112_2.png) [@lwisniak](https://community.emporix.io/u/lwisniak)\
**Post date:** [December 2, 2025, 3:11pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/8 "2025-12-02T15:11:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Martin\_Arineo](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@Martin\_Arineo](https://community.emporix.io/u/Martin_Arineo)\
**Post date:** [December 5, 2025, 3:38pm UTC](https://community.emporix.io/t/problems-importing-product-availabilities/215/9 "2025-12-05T15:38:16Z")

</div>

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
