API Overview

A comprehensive reference of Algoan's endpoints and models.

Glossary

ResourceDefinition
OrganizationAs a client, you are part of an Organization which represents your company.
ProjectYour Organization can own several Algoan projects. Each of them represents a discrete set of products and configurations.
AggregatorAn aggregator is an AISP (Account Information Service Provider) able to fetch banking data from financial institutions.

Versioning

Today, Algoan's API are based on semantic versioning and the major version number is included in the URL path (/v2). If a backward-incompatible change is made to the API, a new version will be released in the URL path.

API Environments

Sandbox

Use a sandbox to test our APIs and build your integration. You can use one of our free sets of sample data to test our endpoints.

Production

Once you are ready to launch your project into production, contact our Customer Success team and fill out a form to describe your project.

Model

Customer: represents a user who is able to connect/aggregate their bank accounts. It is unique to your organization, your project and your "custom identifier" (it can represent your internal reference). Each Customer has:

  • zero, one or many Analysis. One Analysis contains a score and a creditInsights results.
  • zero, one or many Accounts attached to an Analysis. Each Account has zero, one or many Transaction.

Response structure and pagination

API methods that are returning more than one document share the same structure:

  • resources: contains the list (or a subset) of requested documents
  • pagination:
    • first: contains the first page URL
    • last: contains the last page URL
    • next: contains the next page URL
    • previous: contains the previous page URL
    • totalPages: represents the total number of pages
    • totalResources: represents the total number of resources

Our APIs use a page-based pagination system and accept two query parameters:

  • limit: maximum number of resources returned. The default value is set to 200
  • page: number of the page
JSON
Copy

NOTE: If the total number of pages is equal to one or if the total number of resources is empty, then first, last, next and previous parameters will be set to null:

JSON
Copy

API Errors

The list below describes all possible errors. It is always returned as a JSON:

  • code: a machine readable code.
  • message: a human readable error message.
  • status: the HTTP status code.

Example:

JSON
Copy
HTTP StatusCodeDescription
400MISSING_PARAMA required param is missing
400BAD_REQUESTA param is not respecting the correct format
401UNAUTHORIZEDThe Authorization header is wrong or missing
403FORBIDDENYou cannot access the API
404NOT_FOUNDThe called API does not exist
404UNKNOWN_ENTITYThe provided identifier has not been found
422ALREADY_EXISTSThe entity you are trying to create already exists
500INTERNAL_SERVER_ERRORAn internal error occurred. Please contact support@algoan.com.

Analysis Errors

The list below describes all possible errors when creating an analysis. It is always returned as a JSON:

  • code: a machine readable code.
  • message: a human readable error message.
  • status: the HTTP status code.

Example:

JSON
Copy
HTTP StatusCodeDescription
200CURRENCY_NOT_SUPPORTEDNo checking accounts with the project's currency have been detected
200NO_CHECKING_ACCOUNTAt least one checking account is required for an analysis
200ACCOUNT_TYPE_NOT_SUPPORTEDAll accounts have typeequals to "UNKNOWN"
200OWNERSHIP_NOT_SUPPORTEDNo checking or credit card accounts with ownership different than ATTORNEY have been detected
200USAGE_NOT_SUPPORTEDOur API does not accept Business accounts
200NOT_ENOUGH_TRANSACTIONSWe require at least 1 transaction debited in a CHECKING or CREDIT_CARD account

Errors examples

1st example

Two accounts sent in our API :

  • an account with usage equals to "PRO"
  • an account with type equals to "UNKNOWN"

API error = USAGE_NOT_SUPPORTED

2nd example

A single account sent in our API :

  • an account with account type equals to "SAVINGS"

API error = NO_CHECKING_ACCOUNT

3rd example

Three accounts sent in our API :

  • an account with type equals to "UNKNOWN"
  • an account with usage equals to "PRO"
  • an account with type equals to "CHECKING"

Response : No error, but only the checking account will be included in the analysis

Authentication

Algoan uses the OAuth 2.0 protocol to authorize your application to communicate with Algoan's endpoints. To make requests, you must generate an access token.

Access tokens are encoded as JSON Web Tokens. They can be used as OAuth 2.0 Bearer tokens.

To authenticate your service, use the client_credentials registration flow:

Bash (cURL)
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated