Add/Remove product in inventory from 3rd party API

Is it possible to have a callback URL? What I want to achieve is:
1: Query a product from my other site (not on wix) if it’s already in inventory
2: If it’s available, OK. Else, create one.

I don’t want wix to fetch data from other server. Rather the other service manage the wix inventory.
In short, manage inventory from my custom site.
Please guide

If you expose an API on your other site you can query it from your wix site using wix-fetch .

@jonatandor35 How about opposite of your answer? I wanna expose an API on wix so that I can manage wix inventory from my other site.

@onibaba372 Maybe I don’t understand what you’re trying to do.
(from hereafter SiteA is your wix site , and SiteB is the external site ).

If I got you correctly SiteA needs to get information from SiteB.
If that’s the case you have to use fetch on SiteA, and to have an http-function on SiteB that will query SiteB’s data and returns the info to SiteA.