Deep link test
Build a vansales:// link to test opening the Vansales app from a partner app, using the app name and key the Vansales team registered for the customer company. The app opens the chosen page only when the app name and key are correct, and the salesperson still signs in themselves. The link is built in this browser and nothing is sent.
1. Partner app
The Vansales team registers the app name and key for the customer company.
2. Choose the page to open
Opens the customers page: the customer list, or one customer's details when a customer code is given.
Optional. Without a code, the app opens the customer list. With a code, it opens that customer's details; if the code is not found, the customer list opens instead.
Partner guide
1. Get the app name and key
- Contact the Vansales team to register your app for each customer company. You receive an app name and a 32-character key.
- Keys are per customer company. If you work with several Vansales customers, keep each customer's key and send that customer's key in the link.
- The key is shown only once. Keep it safe, and don't share links or QR images that contain it. If it is lost or leaked, ask the Vansales team for a new key; the old key stops working at once.
2. Link format
| Page | Example link | In the Vansales app |
|---|---|---|
| Home | vansales://home | Opens the app's main page, where the user chooses a service such as Sales. |
| Sales | vansales://sales | Opens the main page of the Sales service. |
| Customers | vansales://customers | Opens the customer list of the signed-in salesperson. |
| One customer | vansales://customers | Opens that customer's details. If the code is not in the salesperson's customers, the customer list opens instead. |
- app The registered app name (not case-sensitive).
- key The key of that customer company.
- code Optional. The customer code in Vansales, for the customers page only. Without it, the customer list opens.
- Values that contain spaces or special characters must be URL-encoded before they go into the link.
3. Results in the Vansales app
| Situation | Result |
|---|---|
| App name and key are correct and the salesperson is signed in | Opens the page at once, also without an internet connection. |
| App name and key are correct but nobody is signed in | Shows the sign-in page. After the salesperson signs in, the page opens. |
| No app name or key, a wrong key, or an app not registered for that company | Opens no page and says the link is not allowed. |
| The customer code is not one of the salesperson's customers | Shows the customer list instead, and no other customer's data is shown. |
4. Opening the link
Android (Kotlin)
iOS (Swift)
Add vansales to LSApplicationQueriesSchemes if you call canOpenURL.
Web / Flutter / React Native
5. Testing
- Use the test page above: enter the app name, key and customer code, then open the link or scan the QR code with a phone.
- Use the Vansales app version 5.4.33 or later, signed in with a salesperson account of the customer company your app is registered for.
- If the phone does not have the Vansales app, the link cannot open. Check first, or ask the user to install the app from Google Play or the App Store.