Add to Cart from Custom database

I tried that but the api id was only visible the first time I added the extension and published the site. When publishing the site after that, it wasn’t visible. So I am not sure what happened. The app store also doesn’t show the custom catalog.