Adding products to Wix store database using code

Dear all,

I am trying to add new products to the Wix store database using code but I am unable to. Does the store have restricted permissions? If so, can I change them to enable me to add new products?

P.S. An alternative that also works for me is if I can add products to the store cart from a different database which allows me to add products. However, when I use the .addToCart function it only adds products from the Products database.

Regards,
Bardhyl

https://support.wix.com/en/corvid-by-wix/wix-stores-with-corvid
https://support.wix.com/en/article/importing-products-to-wix-stores
https://support.wix.com/en/article/request-automatic-tool-to-import-products-from-other-ecommerce-platforms-to-wix-stores

Wix CartIcon - addToCart will only add items to the cart which are in the Wix Stores Product Collection.
https://www.wix.com/corvid/reference/$w.CartIcon.html#addToCart

https://www.wix.com/corvid/reference/wix-stores.html
https://www.wix.com/corvid/reference/wix-stores-backend.html