- Set up your environments.
- Set up your API connection.
- Add the Flinks Connect iframe to your page.
- Depending on the payment method you are using, complete one of the following:
- Go to production.
Flinks Pay is currently only available in Canada.
Set up your environments
Flinks provides two environments to you when you start the integration process:- Sandbox: a testing space that you use to set up your Flinks integration and test that it’s working correctly.
- Production: a live production space that allows you to connect real accounts and start using your Flinks product.
Set up the sandbox environment
Flinks provides you with a Sandbox environment that you can use to try out our products. Use it to test your integration and confirm everything is working as expected.Flinks Pay is currently only available in Canada.
- When you’re ready to get started, contact your Flinks Representative and ask them to set you up with a test environment.
- Flinks provides you with a test institution, Flinks Capital, that you can use for testing purposes. For security and privacy reasons, you can’t make live connections to real financial institutions in this environment.
- Build your integration and connect to our APIs using the Sandbox environment.
- When you’re ready, move over to the Production environment.
Set up the production environment
Ask your Flinks Representative to set you up with a private Production environment in advance, so that you’re ready to go-live when testing is complete. When the development and testing process in the Sandbox environment is complete, it’s time to move your Flinks configuration over to the Production environment. Make sure that all of your API calls and iframe URLs are pointing to your private Production environment and not the Sandbox environment. Once you go live, you can start connecting to real accounts and experience the full Flinks service. You can still make requests to Flinks Capital in the Production environment at no cost, but you’ll receive an invoice for all successful live requests.Set Up Your API Connection
To set up your API Connection with Flinks, you will have to make your first API call before receiving data. The following sections will walk you through this process.Make your first API call
This is the first API request that needs to be executed whenever you want to retrieve data from a connected account. Flinks API needs to confirm the validity of the request and to know which account you want to retrieve data from. To do so, you will exchange yourloginId for a new requestId.
For that, the /Authorize endpoint needs to be called using a POST method, and it requires a loginId and the parameter MostRecentCached:true.
To make it more concrete, let’s suppose that you are opening a new session to retrieve the data for the loginId: 5e115eac-1209-4f19-641c-08d6d484e2fe:
curl
json{
loginId (5e115eac-1209-4f19-641c-08d6d484e2fe) was successfully exchanged for a requestid (1243c283-e0ca-4fda-a5e4-343068430190). Now that the session is active, we have everything we need to place a call to retrieve financial data.
Receive data from us
The next step is for your server to send a request for data. This request uses the /GetAccountsDetail endpoint, which also needs to be made using a POST method, and only requires the acquiredrequestId.
Continuing our example using our requestId (1243c283-e0ca-4fda-a5e4-343068430190), it looks like this:
curl
HTTP 202 FlinksCode:OPERATION_PENDING, meaning that the data you are requesting is still being processed.
Here’s an example of a typical API response for data pending processing:
json
Receive pending data
For requests that are still pending for data processing, only the requestId is needed, but the parameter goes directly into the API URL as it’s aGET request.
While you receive the response HTTP 202 FlinksCode:OPERATION_PENDING, you need to keep calling this endpoint every 10 seconds for a maximum of 30 minutes.
Curl
Curl
Add the Flinks Connect iframe to your page
- Play around with the Flinks Connect widget and determine how you want to set it up. This is what your end-users will interact with to link their bank accounts.
- Generate your code snippet. To do this with the Flinks Connect widget, select Generate.
- Embed the code snippet into your web page, application, or webview. This adds an iframe with Flinks Connect inside of it:
html