I need to integrate Magento 2 with Odoo ERP by sending new orders from the first platform to the last. Shortly, when an order is placed, I need to make it available to the ERP system that will interrogate something to get the order details, and create a new order in the ERP.
I was thinking of using a message broker (RabbitMQ), having an order queue already in place, but I don’t know how the messages can be consumed by the ERP. As a second thought, I was thinking of using an API endpoint that can be filtered by an attribute (order_not_sent_to_erp) and maybe that could be interrogated by the ERP system each hour.
What do you think would be the best solution?
If that’s RabbitMQ, please let me know how the queues can be consumed as I have no clue at the moment (I assume it’s through an API that the ERP guys would have to call).
Thank you!