Magento 2

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.

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, Eclipse system supports more than 750 wholesale distribution customers globally.

Minimum Requirements

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

Magento2

  • 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-2-salesforce-connector

Magento2 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 2 and Epicor Eclipse integration. Likewise you can integrate orders, products, dynamic price, inventory etc… . Stay subscribed to get notified about 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.

Leave a Reply