eCommerce API access for Inventory Control

I have a BC customer that currently has an API connecting to their eCommerce which updates Inventory every evening. We basically need access to the eCommerce like BC currently has.

Can this please be added to the public backlog.

Hi @SiroccoDigital - Added here:
https://treepl.co/public-backlog-state/request/ecommerce-api-access-for-inventory-control

Let me know if you want to add anything :slight_smile:

Thanks @Peter-Schmidt

1 Like

Hi @SiroccoDigital. I’ve voted for this feature as we have the same requirements. Have you had any further thoughts or ideas about how to resolve this? We had implemented custom API integration between BC and Tradegecko and hope to be able to do something similar again in future. Meantime I’m wondering if there is some way to read an external boolean value (e.g. get value from a google sheet CELL) to populate a show/hide class to hide out of stock items? Perhaps @Adam.Wilson may know if there’s anyway that might be possible?

Just in theory, as I haven’t tried this yet on Treepl, but it’s pretty easy to import JSON files via jQuery and getJSON. Based on the imported data you could then manpulate HTML elements in the DOM accordingly. I’m not an jQery or JS expert, all I know about it is from here: https://javabeat.net/jquery-getjson-example/

Interesting idea @TimL. Would XSS be a problem with this method?

You mean Cross-Site-Scripting, right? That’s a good question. But as far as I understand the problem, if the source of the JSON file is trusted, you should not have a problem as the url is hardcoded in your site. JSON source should be https of course.

Yes, exactly. That makes sense. Thanks again Tim.

Thats an interesting concept as I have no workaround as of yet and don’t want to loose this client. Does anyone know a partner that could facilitate something like that?