Tuesday, March 15, 2022

#904 OIC New Features March 2022 - Magento Adapter

Magento is an ecommerce platform owned by Adobe. Typical integration use cases here are product / inventory synchronization with a backend ERP such as Netsuite or Oracle Fusion ERP. Other use cases could include - customer sync, order to cash processing etc. Net, net - plenty to do for OIC here!

To begin with, the usual caveat - I am not a Magento expert, in fact I just started looking at it a couple of hours ago. But the main thing for an integrator to know is there are two views of Magento, one is that used by the end customer to order products, the other is the Admin view of Magento. It is good to have access to both.


Now the Admin view - 


Let's start with a simple integration - retrieve a customer based on id.

Here's our guinea pig - 



Customer id is 257 - 



Now to OIC - Create Magento Connection


You need to create an integration in Magento, in order to get the 4 security related values - 




Let's create a simple integration to retrieve a customer - first, the test result - 














Now to the implementation - 



Trigger Resquest {"customerID":"257"}

Magento Get configured as follows - 





















The Request Mapping - 











Note the Store ID field. You may have multiple stores in Magento, I will stick with the default store. Store Id can be found in the Magento Admin Console -



So I hardcode the Store ID to "default". Naturally I could use an OIC Lookup to externalise this value. I then map the response from Magento to my OIC response - 

















Very simple!
Now let's at the options in the Magento Invoke Configuration -


 






So full CRUD support here - As Magento admin, you can specify which APIs are available - 














Let's look at Query - 















Here is the CUD - 


















Net, net - all of the functionality you need to manage your Magento eCommerce centric integrations!
Full Magento adapter doc available here
 





No comments: