Connect Salesforce to Sumptus
Connecting Salesforce lets employees tag the client they met from your Salesforce contacts when they submit an expense, and logs approved expenses back to that contact. Your Salesforce admin creates a small Sumptus app inside your own org, then pastes its keys into Sumptus.
1. Before you start
- Salesforce edition with API access: Enterprise, Unlimited, Performance or Developer Edition. Professional Edition needs the API add-on.
- In Salesforce: you need the System Administrator profile (or permission to manage apps).
- In Sumptus: someone who is a company admin, on a plan that includes CRM integrations.
- Pick the Salesforce user who will connect. Sumptus searches contacts and logs expenses as that user, so they need access to the contacts your team meets with. Many companies use the admin, or a dedicated integration user.
2. Create the Sumptus app in Salesforce
- In Salesforce, open Setup (gear icon, top right).
- In Quick Find, search for External Client App Manager and open it.
- Click New External Client App.
- Fill in the basics:
- External Client App Name: Sumptus
- Contact Email: your admin email
- Distribution State: Local
- Expand API (Enable OAuth Settings) and check Enable OAuth.
- In Callback URL, paste exactly:
https://dlblturjbxeujfzwslys.supabase.co/functions/v1/crm-oauth-callback - Under OAuth Scopes, add these two:
- Manage user data via APIs (api)
- Perform requests at any time (refresh_token, offline_access)
- Under Flow Enablement and Security, use these settings:
Leave the other flow options unchecked.Setting Value Require Proof Key for Code Exchange (PKCE) Checked Require secret for Web Server Flow Checked Require secret for Refresh Token Flow Checked - Click Create.
3. Set who can use it
- On the new app, open the Policies tab and click Edit.
- Under OAuth Policies, set:
Setting Value Permitted Users All users may self-authorize, or Admin approved users are pre-authorized if you want to limit it. In that case, add the profile or permission set of the user who will connect. IP Relaxation Relax IP restrictions. Employees connect from phones on many networks. Refresh Token Policy Refresh token is valid until revoked, so the connection keeps working until you disconnect it. - Click Save.
4. Copy the Consumer Key and Secret
- On the app, open the Settings tab and expand OAuth Settings.
- Click Consumer Key and Secret. Salesforce emails you a verification code; enter it.
- Copy the Consumer Key and the Consumer Secret. Keep the secret private: share it only through the Sumptus app in the next step, not by email.
5. Connect in Sumptus
- Open Sumptus and go to Settings → Integrations.
- Next to Salesforce, tap Connect.
- Choose Production, or Sandbox if you're connecting a sandbox org.
- Paste the Consumer Key and Consumer Secret, then tap Connect with Salesforce.
- Sign in to Salesforce as the user you chose in step 1, and click Allow.
- You're returned to Sumptus, and Salesforce shows as Connected. Employees can now search your Salesforce contacts on the Submit screen.
6. What Sumptus can access
- Search contacts by name, returning the contact's name, account (company), title, email and phone, so employees can tag who they met.
- Log approved expenses as a completed task on the linked contact, with the merchant, amount and date.
Sumptus does not delete records or change contact or account fields. It acts with the permissions of the Salesforce user who connected, so it can only see what that user can see. The Consumer Secret and Salesforce access are stored on Sumptus's servers and are never sent to employees' devices. See our Privacy Policy and Security page.
7. Disconnecting
- From Sumptus: Settings → Integrations → Disconnect next to Salesforce. Sumptus deletes the stored keys and access.
- From Salesforce: in Setup → External Client App Manager, disable or delete the Sumptus app. This immediately stops all access.
Tasks already logged on contacts stay in Salesforce.
8. Troubleshooting
| Message | What to do |
|---|---|
invalid_client_id | The Consumer Key is wrong, or the app is less than about 10 minutes old. Copy the key again, wait, and reconnect. |
redirect_uri_mismatch | The app's Callback URL doesn't match. Paste the URL from step 2 exactly, with no spaces or trailing slash. |
OAUTH_APPROVAL_ERROR / "user isn't approved" | The Permitted Users policy blocks this user. Set it to self-authorize, or add the user's profile or permission set (step 3). |
| "API is not enabled for this organization" | Your Salesforce edition or user doesn't have API access. Check the edition (step 1) and that the user has the API Enabled permission. |
invalid_grant / login page rejects you | Production vs Sandbox doesn't match your org. Pick the right one in Sumptus and try again. |
token_exchange_failed | Usually a wrong Consumer Secret. Copy it again and reconnect. |
| Sumptus asks you to reconnect | Access was revoked or the user's password or permissions changed. Tap Reconnect in Settings → Integrations; your app keys are remembered. |
Still stuck? Email info@sumptus.co with a screenshot of the error. Never include your Consumer Secret.
Last updated October 2026 · © 2026 Sumptus Technologies LLC