Overview
This article will walk you through connecting your AmeriCommerce mailing list to Constant Contact. It includes steps to set up API credentials, authorize the application, and ensure that tokens are refreshed automatically using Long Lived Refresh Tokens.
If needed, please see Mailing List Overview for additional information.
Connect New List
To get started, you will need to create an application in Constant Contact's Developer Portal to generate an API Key and Client Secret.
- Log into the Constant Contact Developer Portal.
- Click New Application.
- Enter a name for your application and generate an API Key.
- Copy the API Key and paste it into the API Key field on the Mailing List Edit screen.
- Click Generate Secret, then copy and paste the value into the Client Secret field.
- Copy the Redirect URI from the Mailing List Edit screen and paste it into the Redirect URI field in the Constant Contact Developer Portal.
- Click Save in the Constant Contact portal.
Important: Each Constant Contact mailing list requires a separate application in the Developer Portal.
Using Long Lived Refresh Tokens
In the application details, click the OAuth2 tab and Change the Refresh Token Setting:
Under the “Application OAuth2 Settings” section, you’ll see an option to choose between Rotating and Long Lived Refresh Tokens. Select Long Lived Refresh Tokens.
When you authorize your Constant Contact app, the system will generate a Long Lived Refresh Token. This ensures that:
- You only need to authorize the app once.
- The system will automatically refresh the token before it expires.
- Your store remains connected without requiring manual re-authorization.
Note: If you manually revoke the authorization in your Constant Contact Developer account, you will need to reauthorize the app.
Once saved, click the Authorize button in the Mailing List Edit screen. A pop-up will appear prompting you to log in to Constant Contact. Use the same credentials associated with your account and click Allow.
Connect Existing List
If you already have an existing Constant Contact mailing list, you may see an Upgrade Mailing List button. This button updates an older Constant Contact mailing list to use the latest version of their API.
- Click Upgrade Mailing List.
- A button to Authorize will appear.
- Follow the authorization steps as described above to connect your account.
Note: Upgrading an existing list will not affect your customer records.
Troubleshooting
If you experience issues with your mailing list connection, it may be due to an outdated OAuth2 configuration.
Steps to Fix OAuth2 Authorization Issues
- Log into your Constant Contact Developer account.
- Navigate to the Applications section.
- Verify that your API Key and Client Secret match what is entered in AmeriCommerce.
- If necessary, create a new application and update your settings accordingly.