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.
Salesforce API Connection
Section titled “Salesforce API Connection”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.
Get the connection details
Section titled “Get the connection details”-
Install Salesforce CLI using the Salesforce CLI installation guide.
-
Open a terminal and run:
Terminal window sf org login web -
In the browser opened at
https://login.salesforce.com, sign in with the Salesforce administrator account and click Allow. -
Switch back to the terminal and confirm the authorization message.
-
Run the following command, replacing
<username>with the authorized Salesforce username:Terminal window sf org display --target-org <username> -
Copy Instance Url and Access Token from the output.
When the token expires, repeat the authorization and display steps to retrieve a new token.
Enter the values in Next-Cart
Section titled “Enter the values in Next-Cart”| Next-Cart field | Value to enter |
|---|---|
| Store URL | The Instance Url returned by Salesforce CLI. |
| Access Token | The Access Token returned for the same organization. |
Verify this connection
Section titled “Verify this connection”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.