Connecting your store is important to fetch product & shipping information and helps you in creating reverse shipments for your orders without hassle. Follow the steps below to connect your Salesforce store.
You'll need 3 credentials to connect your store
- Instance URL
- Consumer key (Connected App)
- Consumer secret (Connected App)
Instance URL
For example, https://mycompany.my.salesforce.com and https://mycompany.my.site.com
Create a profile and add an API Only User.
External Reference - https://help.salesscreen.wiki/en/articles/22052-how-do-i-create-an-api-integration-user-in-salesforce
- Set up profile -
The first thing you need to do is to create the API Only profile that will be set as the profile type of the integration user account.
From Setup, input "Profiles" in the search field and select Profiles under Users.
- In the Profiles section, click on New Profile.
The existing profile that you clone from must have a full Salesforce license. In the example below, we've chosen System Administrator - which indeed has a full Salesforce license. Set the Profile Name to be "API Only" and finally, click Save
- After having saved the new profile in Step 3, you'll be presented with an overview of the profile, as seen in the image below.
- Proceed to click Edit and make sure that both the Standard Object Permissions and Custom Object Permissions allow Modify All as shown for the three standard objects in the image below.
- If you don't want the API Only user account to be allowed access to the Salesforce website dashboards, like typical Salesforce users, you can make sure the API Only User option is checked, like in the image below. Finally, scroll all the way up or down and click Save.
- Create user with 'API Only' profile
Now that the API Only profile has been set up, it's time to create a user with this profile.
- At the API Only profile overview, click View Users.
- Click New User and proceed to set the User License to Salesforce and the Profile to be API Only, as shown in the image below.
- Finally, click Save and use this newly created user account - under the API Only profile - to initialize the connection between EcoShip and Salesforce.
Create a Connected App
Creating a connected app allows you to generate consumer key and consumer secret which will allow you to integrate salesforce with EcoShip.
- From Setup, input "App Manager" in the search field and select App Manager under Apps.
- Click on "New Connected App" in the App Manager section.
- Fill the information in Connected App as follows:
- Under Basic Information section, keep the required details as follows -
- Connected App Name - EcoShip
- API Name - EcoShip
- Contact Email - [email protected]
- Under API (Enable OAuth Settings) section, keep the details as follows -
- Check Enable OAuth Settings setting.
- Under Selected OAuth Scopes, select Full access(full).
- Enable the following settings -
- Enable Client Credentials Flow
- Enable Authorization Code and Credentials Flow
- Require user credentials in the POST body for Authorization Code and Credentials Flow
- Scroll up or down the page and click on Save.
- Under Basic Information section, keep the required details as follows -
- After having saved the new Connected App in previous step, you'll be presented with an overview of the profile, as seen in the image below.
- Click on Manage button.
- Click on Edit Policies.
- Under OAuth Policies -
- Change Permitted Users to "All users may self-authorize".
- Change IP Restrictions to "Relax IP restrictions".
- Under Client Credentials Flow, keep the user in "Run as" as the user you created in API Only profile (Phase-2) above.
- Click on Manage Connected Apps under Connected Apps under Apps on the left side of the screen.
- Click on EcoShip and you will be redirected to below page.
- Click on Manage Consumer Details button and you will be redirected to another page where it will ask you for verification code. After verification has been done, you will be able to see your consumer key and consumer secret which will be used for integrating with EcoShip.
- You can add the Instance URL, consumer key, consumer secret in respective fields of your EcoShip dashboard, to connect your store.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article