Overview
The AppLink Web API has a Developer Portal that provides a pre-production testing environment – a Sandbox. The Sandbox enables testing and experimentation with the AppLink Web API. The Sandbox provides a way to test how the payload and documents are submitted using the AppLink Web API, and to get familiar with the type of responses the API may return.
This quick start uses the AppLink Web API basic process described in Overview of the AppLink Web API Process to demonstrate how the API operations work.
This example uses:
- the Shared Test API key test:Testing123$
- the sample payload in Appendix 5 – Payload Example
- a sample document: Sample Document for Uploading.pdf
Steps
Step 1: Open the Sandbox
Open the AppLink pre-production testing environment on the Innovation Center Sandbox Tools page.
You can also access the sandbox from the Main Menu of the Innovation Center. Select Sandbox Tools, then AppLink API:
Step 2: Utilize the Post Caapplication_CreateApplication (Canadian Application)
Press the CAApplication_CreateApplication hyperlink in the presented screen as shown below
Step 3: Log into the Sandbox
Press Set… on the HTTP Basic button.
On the SET AUTHENTICATION screen, enter test in Email, and Testing123$ in Password, then press Save.
Step 4: Enter the Payload
The POST operation /Application/CA is used to send a JSON formatted payload with all of the Merchant Application data.
Paste the Payload provided in Appendix 5 – Payload Example into the Request Body section of /Application/CA, then press Send This Request.
Step 5: Get the ApplicationID
Pressing Send This Request sends the payload data to the API. The top of the page may display Working… for several seconds during this process.
If you entered an invalid api_key, you get the message INVALID CREDENTIALS with a response code 401.
Otherwise, the API returns the unique identifier ApplicationId for the Merchant Application payload that was submitted. The Sandbox shows the CURL used to execute the API along with the response information, including the Response Body.
As shown in this example, the Response Body provides the ApplicationId, which you should note down as it is needed for future steps.
Step 6: Load Documents Related to the Merchant Appliction
This step enables you to upload the required merchant documentation, such as the merchant application form or a void check. The ApplicationId generated above is used to associate the documents to the payload.
Step 6.1:
Return to the AppLink Sandbox Tools page. Press the POST CAApplication_CreateDocument hyperlink.
Step 6.2:
The Resource URL section appears. Paste the ApplicationId generated from CAApplication_CreateApplication in the {id} area as illustrated.
Step 6.3:
In the Query Parameters section, define the document type that best describes what is being attached, based upon the list below:
- ApplicationAndAgreement
- ProcessingStatements
- ProofOfBusiness
- VoidCheck
- EquipmentForm
- NonProfitEvidence
- Other
For this example, enter Other into the Values field as illustrated.
Step 6.4:
Press Choose File as indicated, to locate and add the digital document file from your local file system. File types accepted are as follows:
- XML
- JPG
- PNG
- TIFF
- TXT
- DOC
- DOCX
- ZIP
- JPEG
- WAV
Any other file extension causes the API to respond with a 401 Fail response.
For this example, press Choose File as indicated, and select the Sample Document for Uploading.pdf that you downloaded earlier.
Only one document file can be uploaded at a time, but you can repeat this operation as many times as needed to upload all the required supporting documents.
When you have finished, press SEND THIS REQUEST
Step 6.5:
If the upload is successful, you receive a response code of 204.
Step 7: Submit the Merchant Application
This step validates the payload information, then submits the merchant application to the onboarding system. If you utilized the Shared Test payload and the file provided, this operation should be a success.
Step 7.1:
Utilize the POST CAApplication_SubmitApplicationSync (Canadian Application)
Return to the AppLink Sandbox Tools page. Press the CAApplication_SubmitApplicationSync hyperlink.
Step 7.2:
In the Resource URL section, paste the ApplicationId generated from CAApplication_CreateApplication in the {id} area as illustrated:
Step 7.3:
Press Send This Request.
After you press Send This Request, a response code of 200 indicates the Merchant Application was successfully submitted.
This Sandbox example shows you how the AppLink Web API is used to submit Merchant Application “payload” data and supporting documentation.
This is an example of what your application is required to do to work with AppLink API.