How can I integrate Bagisto with ERPNext for a two-way synchronization? I need to ensure that when I create or update product stock in ERPNext, it is automatically updated in Bagisto. Similarly, when an order is placed in Bagisto, the order details should be sent to ERPNext. What would be the best approach to achieve this integration? Should I use APIs or any existing middleware solutions? Any guidance or recommendations would be greatly appreciated.
You can use model events in Laravel to trigger an event whenever a product is created or updated and fire an API call.
In ERPNext you can use Webhooks
https://frappeframework.com/docs/user/en/guides/integration/webhooks
1 Like