ERPCLORASIntegration

How to integrate Magento 2 with Epicor Eclipse?

By December 14, 2018 No Comments

Are you using Magento and Epicor Eclipse for your eCommerce and ERP systems? Do you know the accuracy and speed of your Magento Epicor Eclipse Integration plays a major role on the success of your online business? In this article, we’ve outlined the impact of how ERP Integration saves your time and money and how it helps your business growth overall.

About Magento:

Magento, an Adobe Company, is the world’s leading Multi-Channel Enterprise Commerce that empowers thousands of retailers and brands with the best eCommerce platforms and flexible cloud solutions to rapidly innovate and grow. It’s the only eCommerce platform to integrate both B2B and B2C experiences. Being part of the Adobe Experience Cloud, now the entire journey from content creation and analytics to marketing and commerce is integrated into one cloud platform.

About Epicor Eclipse:

Epicor Eclipse is one among the leading distribution ERP software solution which offers powerful capabilities for wholesalers in the electric, plumbing/PVF, and HVAC industries. An ERP developed exclusively for these businesses is continually improved with a focus to make it easier for the customers to grow their distributorships. Today, the Eclipse system supports more than 750 wholesale distribution customers globally.

Minimum Requirements for Magento Epicor Eclipse Integration

Let’s take a quick look into the minimum requirements for Magento Epicor Eclipse Integration API services.

Magento 2

  • Your store must be running on Magento 2 Edition.
  • Oauth credentials (consumer key, consumer secret … etc)

How to get OAuth credentials in Magento 2 Admin

  • Go to Magento 2 Admin -> System -> Integration -> Add New Integration
  • After providing the required information you can get the following informations. Consumer Key, Consumer Secret, Access Token, Access Token Secret as shared in the below screenshot.

oauth

How to generate token in Epicor Eclipse

    • We should pass the following information to the below xml string payload to generate Token.
    • Required Information: Security_loginid, Security_password etc…

Security_loginid = “your details”
Security_password = “your details”

Below is an example xml string payload to generate token in the ERP system.
payload = "<?xml version='1.0' encoding='UTF-8'?>
<IDMS…….>
…………
………….
<LoginSubmit>
<Security>
<Login>
<LoginID>"+security_loginid+"</LoginID>
<Password>"+security_password+"</Password>
</Login>
</Security>
</LoginSubmit>
</IDMS………...>”

Note: please refer the Epicor Eclipse document for more details on the loginSubmit payload.

We use python requests library to generate token through requests method.
For example,
token = requests_post(tokenURL, data=payload)
tokenURL = Eclipse token generation url

Magento Epicor Eclipse Integration

Magento 2 Customer with Epicor Eclipse Entity, Contact

 

When a new account has signed up in Magento2 the Customer information will be synchronized automatically within a particular time interval to Epicor Eclipse Entity

Example Entity, Contact Payload for ERP

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPEIDMS-................">
………………..
………………..
………………..
<Entity>
………………..
……………….
<Address>
<StreetLineOne>998 Fairway Dr</StreetLineOne>
<StreetLineTwo/>
<City>Opelika</City>
<State>AL</State>
<PostalCode>36801</PostalCode>
<Country>USA</Country>
</Address>
………………..
………………..
</EntityNewSubmit>
</IDMS-XML>

Note: Please check the Epicor Eclipse doc for more details on the EntityNewSubmit payload.

For example, we use python to post payload through requests method.
Entity = requests_post(“EntityNewSubmitURL”, data=payload)
You can get all the details in the response after successful submission.

Mapping Fields

Connection

Hope this blog gives you an overall insight about Magento Epicor Eclipse integration. Likewise you can integrate orders, products, dynamic price, inventory etc… Stay subscribed to learn more about our other integrations.

Jothibasu

Jothibasu

Jothibasu is a Senior Software Engineer with 6+ years of experience in PHP and Magento. His interests include playing volleyball during the weekends and watching science fiction movies. He is an active contributor to the Magento StackExchange forum.