Skip to content
Back to Site

Salesforce API Connection

Prepare Salesforce Access Token and Instance URL for a Next-Cart migration service when Salesforce API setup is shown.

A valid Salesforce API connection gives Next-Cart the authorized platform access required by the selected migration path.

Next-Cart may ask for a Salesforce Access Token and Instance URL. Prepare these values from the Salesforce org that contains the data included in your migration scope.

Use this guide when:

  • Salesforce is the Source Platform or Target Platform in your selected migration path;
  • Next-Cart shows Salesforce API setup;
  • Next-Cart asks for an Access Token, Instance URL, or related Salesforce connection value.

Before you begin, confirm that:

RequirementWhy it matters
Salesforce admin or authorized user accessThe account must be allowed to authorize API access for the correct org.
Salesforce CLI installedThe source workflow uses Salesforce CLI to authorize the org and display connection details.
Correct org selectedProduction, sandbox, and developer orgs are separate environments.
API access allowedThe Salesforce user and org must allow API access for the data Next-Cart needs.
Secure storageAccess tokens must be copied only into approved secure locations.
Required valueWhere to prepare itNotes
Access TokenSalesforce CLI after authorizing the orgTreat this value as sensitive.
Instance URLSalesforce CLI org display outputUse the exact instance URL for the authorized org.
  1. Install Salesforce CLI from Salesforce’s official instructions.
  2. Open Terminal, Command Prompt, or another command-line application.
  3. Run sf org login web.
  4. Sign in through the browser window that opens.
  5. Confirm that the browser authorization is for the correct Salesforce org.
  6. Return to the command line after authorization completes.
  7. Run sf org display --target-org <your_username> or the equivalent command shown by Salesforce CLI for your authorized org.
  8. Copy the Access Token and Instance URL from the output into a secure temporary location.

In the Next-Cart connection setup screen, enter only the values requested by the interface.

Next-Cart fieldPlatform value
Access TokenSalesforce Access Token from the CLI output.
Instance URLSalesforce Instance URL from the CLI output.

The Salesforce API connection values are ready to test in Next-Cart.

CheckPass condition
Org matchThe Instance URL belongs to the correct Salesforce org.
Token completenessThe full Access Token was copied without truncation or extra spaces.
User permissionThe authorized Salesforce user can access the objects included in the migration scope.
Connection testNext-Cart can authenticate and read supported Salesforce data.
IssueWhat to check
Authentication errorRe-authorize the Salesforce org and copy a fresh Access Token.
Wrong environmentConfirm whether Next-Cart should connect to production, sandbox, or another org.
Missing data accessConfirm the Salesforce user has access to the required objects and fields.
Expired or invalid tokenGenerate a new token through the Salesforce CLI workflow and test again.

After migration work is complete and verified:

  • remove or revoke temporary API credentials where the platform provides that option;
  • reduce access if a broader permission set was used only for migration work;
  • remove copied credentials from insecure notes, tickets, chats, or shared files;
  • review the store admin account or API user used for API setup.
GoalGo to
Test the connectionVerify Platform Connections
Fix an authentication or permission issueTroubleshoot Connection Setup
Continue after the connection passesConfigure Your Migration