Skip to content
Back to Site

Salesforce API Connection

Authorize Salesforce CLI, retrieve the Access Token and Instance Url, and enter them as the Store URL and Access Token required by Next-Cart.

Use Salesforce CLI to authorize the organization and retrieve the Instance Url and Access Token. API access is available by default for Enterprise, Performance, Unlimited, and Developer editions; Professional requires the API add-on. Use a Salesforce user with administrator rights.

  1. Install Salesforce CLI using the Salesforce CLI installation guide.

  2. Open a terminal and run:

    Terminal window
    sf org login web
  3. In the browser opened at https://login.salesforce.com, sign in with the Salesforce administrator account and click Allow.

  4. Switch back to the terminal and confirm the authorization message.

  5. Run the following command, replacing <username> with the authorized Salesforce username:

    Terminal window
    sf org display --target-org <username>
  6. Copy Instance Url and Access Token from the output.

When the token expires, repeat the authorization and display steps to retrieve a new token.

Next-Cart fieldValue to enter
Store URLThe Instance Url returned by Salesforce CLI.
Access TokenThe Access Token returned for the same organization.

Use Test Platform Connections for optional access verification. A successful test shows Connected. If the platform remains Not connected, use the shared recovery checks before continuing.