Algoan Reference
Documentation Powered by ReDoc

OpenAPI Spec of Algoan API (2.0.1)

Download OpenAPI specification:Download

URL: https://www.algoan.com/contact/

Introduction

This API reference will explain how to integrate the new version of Algoan's Score and Credit Insights products. All APIs are returning a JSON-encoded response and are organized around REST. It uses standard HTTP response codes.

Concepts

This section will describe Algoan concepts related to the data model and some basic information on the APIs. Below are some definitions:

Resource Definition
Organization As a client, you are part of an Organization which is related to your company.
Project Your Organization can own several Algoan's projects. Each one of them represents a set of Algoan's Product and configuration.
Aggregator An aggregator is an AISP (Account Information Service Provider) able to fetch banking data from financial institutions.
Connector A connector is a piece of software which is made to communicate between a third-party technology provider and Algoan.

Model

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

  • zero, one or many Analysis. One Analysis contains a score and a creditInsights results.
  • zero, one or many Account. 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
  {
    "resources": [{ ... }],
    "pagination": {
      "next": "/v2/customers?page=3&limit=20",
      "previous": "/v2/customers?page=1&limit=20",
      "first": "/v2/customers?page=1&limit=20",
      "last": "/v2/customers?page=11&limit=20",
      "totalPages": 11,
      "totalResources": 206
    }
  }

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:

  {
    "resources": [],
    "pagination": {
      "next": null,
      "previous": null,
      "first": null,
      "last": null,
      "totalPages": 1,
      "totalResources": 0
    }
  }

Error handling

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:

  {
    "code": "MISSING_PARAM",
    "message": "Transaction 'id_1' has no amount",
    "status": 400
  }
HTTP status Code Description
400 MISSING_PARAM A required param is missing
400 BAD_REQUEST A param is not respecting the correct format
401 UNAUTHORIZED The Authorization header is wrong or is missing
403 FORBIDDEN You cannot access the API
404 NOT_FOUND The called API does not exist
404 UNKNOWN_ENTITY The provided identifier has not been found
422 ALREADY_EXISTS The entity you are trying to create already exists
500 INTERNAL_SERVER_ERROR An internal error occurred. Please contact support@algoan.com.

Integration

The following section will guide you through the integration of Score and Credit Insights products, depending on your integration mode:

  • "without a connector": you are already able to retrieve banking data by yourself and directly use Algoan's APIs.
  • "with a connector": you don't want to implement the aggregator's API. In this case, you can use one of our open-source connectors described here.

Without a connector

If you are already able to fetch banking data, read the following process:

  1. Generate a new access token with your credentials
  2. Create a new customer. You must provide at least a custom identifier, which can be your internal reference
  3. You can then create a new analysis with the banking information. It will automatically launch the Score and/or Credit Insights computation.
  4. Proceed to a short polling, until the analysis status is set to COMPLETED.

💡 You can also subscribe to the analysis_completed event using our webhook system to be notified instead of proceeding to a polling.

Aggregator raw data

It is possible to upload bank accounts and transactions with different format. Today, we support:

  • Budget Insight
  • Oxlin Direct Account API

If you have already implemented these aggregators, you can create analyses with the raw data. Algoan handles the translation. If you don't support these format, refer to the Algoan open banking data format.

Using a connector

Fetching Open Banking is a prerequisite to use Algoan APIs. This process changes from an aggregator to another. In order to help its customers, Algoan develops and maintains a set of open-source connectors. They are designed to retrieve open banking data and send it directly to Algoan.

  • The Budget Insight connector: retrieves banking information from Budget Insight and triggers an analysis.
  • The Bridge connector: retrieves banking information from Bridge and triggers an analysis.

Contact your Customer Success Manager to see which one fits with your Customer Journey.

If you use one of our open-source connectors, then read the following process:

  1. Generate a new access token with your credentials
  2. Create a new customer. You must provide at least a custom identifier, which can be your internal reference. It will automatically trigger a aggregator_link_required event.
  3. Process to a short polling by requesting the customer, until the redirectUrl is defined.
  4. Redirect the user to the aggregator's link (redirectUrl)
  5. Once the user has finished connecting their bank accounts, you can then create a new empty analysis. It will automatically launch the bank_details_required event and trigger the aggregator connector.
  6. Proceed to a short polling, until the analysis status is set to COMPLETED.

💡 You can also subscribe to the analysis_completed event using our webhook system to be notified instead of proceeding to a polling.

Webhook notifications

Algoan can send events using webhooks to notify your system about an event during the Open Banking process and the end of the calculation of Score and Credit Insights.

Setting up webhooks

After exposing an endpoint on your server, create a subscription using the POST /v1/subscriptions API. You need to be authenticated with credentials that Algoan provided to you.

Payload

An event sent by Algoan is a POST request. Here is an overview of the payload:

{
  "subscription": {
    "id": "2118ac3d2e202f98759489f2",
    "target": "https://your-end-point.com/webhok/",
    "eventName": "bank_details_required",
  },
  "payload": {
    "customerId": "...",
    "analysisId": "..."
  },
  "time": 1458692752478,
  "index": 1
}

It contains:

  • subscription: The subscription called.
  • payload: The payload including only model identifiers related to the event.
  • time: The time when the event has been emitted (number of milliseconds since the Unix epoch in UTC).
  • index: Event's index in the list of all events emitted for this webhook and this application.

Events

You can subscribe to the below list of events:

Name Description
aggregator_link_required Triggers when Algoan is about to ask for a redirection link to start the Open Banking process.
bank_details_required Triggers when the user has connected their bank and Algoan needs their bank accounts and transactions.
bank_details_fetched Triggers when the Open Banking data has been uploaded for a Customer.
analysis_completed Triggers when Score and Credit Insights have been computed and added to the Analysis.

Signature validation

The HTTP post request will contain an X-Hub-Signature header with the SHA256 signature of the payload. The signature is calculated using the keyed-hash message authentication code (HMAC) where the key is your webhook secret. The signature is then prefixed with sha256=. Your webhook endpoint can verify this signature to validate the integrity and origin of the payload. Please note that the calculation is made on the raw escaped Unicode version of the payload, with lower case hex digits. For example, the string äöå will be escaped to \u00e4\u00f6\u00e5. The calculation also escapes / to /, < to \u003C, % to \u0025 and @ to \u0040. If you just calculate against the decoded bytes, you will end up with a different signature.

Authentication

Algoan provides JSON Web Tokens based on the OAuth2 protocol to authenticate your organization. When you create a new project, you will need to use the service account shared by Algoan containing a client_id and a client_secret.

NOTE: this is the only API where request's parameters are formatted as snake case.

Create a new access token

Generates a new access token to use Algoan's APIs

Request Body schema: application/x-www-form-urlencoded

OAuth2 request body with two grant types - client_credentials and refresh_token

One of
client_id
string

Your client ID

client_secret
string <uuid>

Your client secret

grant_type
string
Value: "client_credentials"

Specify the type of grant access

Responses

Response Schema: application/json
access_token
string

The access token required for each API.

expires_in
number

Number of seconds until the access token expires

refresh_expires_in
number

Number of seconds until the refresh token expires

refresh_token
string

Refresh token used to generate a new access token

token_type
string

Type of access token (will always be set to bearer)

https://api.algoan.com/v2/oauth/token

Response samples

  • 201
Content type
application/json
{
  • "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIi...5jUKEv5KyzShp5pqg",
  • "expires_in": 86400,
  • "refresh_expires_in": 864000,
  • "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5...fsWGA82PQC_6OXoyU4",
  • "token_type": "bearer"
}

Customer

represents a user able to connect/aggregate their bank accounts. It is unique per organization, project and custom identifier.

Get a list of all the customers

Get a list of customers

query Parameters
limit
string

Limit the number of returned customers

page
string

Indicates the query offset

Responses

Response Schema: application/json
Array of objects (Customer) [ items ]
object

details about the pagination of returned resources

https://api.algoan.com/v2/customers

Response samples

  • 200
Content type
application/json
{
  • "resources": [
    • {
      • "id": "6013d7991496b7395090f05c",
      • "customIdentifier": "my_id_43523",
      • "aggregationDetails": {
        • "aggregatorName": "BUDGET_INSIGHT",
        • "callbackUrl": "string",
        • "token": "string",
        • "mode": "REDIRECT",
        • "redirectUrl": "string",
        • "apiUrl": "string",
        • "iframeUrl": "string",
        • "userId": "string",
        • "clientId": "string"
        },
      • "personalDetails": {
        • "identity": {
          • "nationality": "FR",
          • "firstName": "John",
          • "lastName": "Smith",
          • "birthName": "Smith",
          • "birthDate": "1990-01-01",
          • "birthCity": "Paris",
          • "birthZipCode": "75001",
          • "birthCountry": "FR"
          },
        • "contact": {
          • "email": "test@algoan.com",
          • "phoneNumber": "+33611223344",
          • "street": "151 rue saint denis",
          • "additionalInformation": "second Floor",
          • "city": "Paris",
          • "zipCode": 75002,
          • "country": "FR"
          },
        • "household": {
          • "maritalStatus": "CIVIL_PARTNERSHIP",
          • "numberOfDependentChildren": 2,
          • "numberOfOtherDependents": 0
          }
        },
      • "createdAt": "2019-08-24T14:15:22Z",
      • "updatedAt": "2019-08-24T14:15:22Z"
      }
    ],
  • "pagination": {
    • "next": "string",
    • "previous": "string",
    • "first": "string",
    • "last": "string",
    • "totalPages": 0,
    • "totalResources": 0
    }
}

Create a customer

Creates a new customer instance

Request Body schema: application/json

New customer to create

customIdentifier
required
string

A custom identifier that will be attached to your customer. This can be used to identify a customer based on your internal reference.

object (AggregationDetails)

Information about the AIS provider used for this report

object (PersonalDetails)

Personal information about the customer

Responses

Response Schema: application/json
id
required
string

Algoan unique identifier

customIdentifier
required
string

A custom identifier that will be attached to your customer. This can be used to identify a customer based on your internal reference.

object (AggregationDetails)

Information about the AIS provider used for this report

object (PersonalDetails)

Personal information about the customer

createdAt
string <date-time>

Customer date of creation

updatedAt
string <date-time>

Latest update of the customer

https://api.algoan.com/v2/customers

Request samples

  • Payload
Content type
application/json
{
  • "customIdentifier": "my_id_43523",
  • "aggregationDetails": {
    • "callbackUrl": "string",
    • "token": "string",
    • "redirectUrl": "string",
    • "apiUrl": "string",
    • "iframeUrl": "string",
    • "userId": "string",
    • "clientId": "string"
    },
  • "personalDetails": {
    • "identity": {
      • "nationality": "FR",
      • "firstName": "John",
      • "lastName": "Smith",
      • "birthName": "Smith",
      • "birthDate": "1990-01-01",
      • "birthCity": "Paris",
      • "birthZipCode": "75001",
      • "birthCountry": "FR"
      },
    • "contact": {
      • "email": "test@algoan.com",
      • "phoneNumber": "+33611223344",
      • "street": "151 rue saint denis",
      • "additionalInformation": "second Floor",
      • "city": "Paris",
      • "zipCode": 75002,
      • "country": "FR"
      },
    • "household": {
      • "maritalStatus": "CIVIL_PARTNERSHIP",
      • "numberOfDependentChildren": 2,
      • "numberOfOtherDependents": 0
      }
    }
}

Response samples

  • 201
Content type
application/json
{
  • "id": "6013d7991496b7395090f05c",
  • "customIdentifier": "my_id_43523",
  • "aggregationDetails": {
    • "aggregatorName": "BUDGET_INSIGHT",
    • "callbackUrl": "string",
    • "token": "string",
    • "mode": "REDIRECT",
    • "redirectUrl": "string",
    • "apiUrl": "string",
    • "iframeUrl": "string",
    • "userId": "string",
    • "clientId": "string"
    },
  • "personalDetails": {
    • "identity": {
      • "nationality": "FR",
      • "firstName": "John",
      • "lastName": "Smith",
      • "birthName": "Smith",
      • "birthDate": "1990-01-01",
      • "birthCity": "Paris",
      • "birthZipCode": "75001",
      • "birthCountry": "FR"
      },
    • "contact": {
      • "email": "test@algoan.com",
      • "phoneNumber": "+33611223344",
      • "street": "151 rue saint denis",
      • "additionalInformation": "second Floor",
      • "city": "Paris",
      • "zipCode": 75002,
      • "country": "FR"
      },
    • "household": {
      • "maritalStatus": "CIVIL_PARTNERSHIP",
      • "numberOfDependentChildren": 2,
      • "numberOfOtherDependents": 0
      }
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get a single Customer

Returns a customer based on a single ID

path Parameters
id
required
string

ID of the customer to fetch

Responses

Response Schema: application/json
id
required
string

Algoan unique identifier

customIdentifier
required
string

A custom identifier that will be attached to your customer. This can be used to identify a customer based on your internal reference.

object (AggregationDetails)

Information about the AIS provider used for this report

object (PersonalDetails)

Personal information about the customer

createdAt
string <date-time>

Customer date of creation

updatedAt
string <date-time>

Latest update of the customer

https://api.algoan.com/v2/customers/{id}

Response samples

  • 200
Content type
application/json
{
  • "id": "6013d7991496b7395090f05c",
  • "customIdentifier": "my_id_43523",
  • "aggregationDetails": {
    • "aggregatorName": "BUDGET_INSIGHT",
    • "callbackUrl": "string",
    • "token": "string",
    • "mode": "REDIRECT",
    • "redirectUrl": "string",
    • "apiUrl": "string",
    • "iframeUrl": "string",
    • "userId": "string",
    • "clientId": "string"
    },
  • "personalDetails": {
    • "identity": {
      • "nationality": "FR",
      • "firstName": "John",
      • "lastName": "Smith",
      • "birthName": "Smith",
      • "birthDate": "1990-01-01",
      • "birthCity": "Paris",
      • "birthZipCode": "75001",
      • "birthCountry": "FR"
      },
    • "contact": {
      • "email": "test@algoan.com",
      • "phoneNumber": "+33611223344",
      • "street": "151 rue saint denis",
      • "additionalInformation": "second Floor",
      • "city": "Paris",
      • "zipCode": 75002,
      • "country": "FR"
      },
    • "household": {
      • "maritalStatus": "CIVIL_PARTNERSHIP",
      • "numberOfDependentChildren": 2,
      • "numberOfOtherDependents": 0
      }
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Delete a single Customer

Deletes all data related to the customer (accounts and transactions included)

path Parameters
id
required
string

ID of the customer to fetch

Responses

https://api.algoan.com/v2/customers/{id}

Update a Customer

Update a single customer based on a single ID

path Parameters
id
required
string

ID of the customer to fetch

Request Body schema: application/json

Aggregator details set by a connector

object (AggregationDetails)

Information about the AIS provider used for this report

Responses

Response Schema: application/json
id
required
string

Algoan unique identifier

customIdentifier
required
string

A custom identifier that will be attached to your customer. This can be used to identify a customer based on your internal reference.

object (AggregationDetails)

Information about the AIS provider used for this report

object (PersonalDetails)

Personal information about the customer

createdAt
string <date-time>

Customer date of creation

updatedAt
string <date-time>

Latest update of the customer

https://api.algoan.com/v2/customers/{id}

Request samples

  • Payload
Content type
application/json
{
  • "aggregationDetails": {
    • "callbackUrl": "string",
    • "token": "string",
    • "redirectUrl": "string",
    • "apiUrl": "string",
    • "iframeUrl": "string",
    • "userId": "string",
    • "clientId": "string"
    }
}

Response samples

  • 200
Content type
application/json
{
  • "id": "6013d7991496b7395090f05c",
  • "customIdentifier": "my_id_43523",
  • "aggregationDetails": {
    • "aggregatorName": "BUDGET_INSIGHT",
    • "callbackUrl": "string",
    • "token": "string",
    • "mode": "REDIRECT",
    • "redirectUrl": "string",
    • "apiUrl": "string",
    • "iframeUrl": "string",
    • "userId": "string",
    • "clientId": "string"
    },
  • "personalDetails": {
    • "identity": {
      • "nationality": "FR",
      • "firstName": "John",
      • "lastName": "Smith",
      • "birthName": "Smith",
      • "birthDate": "1990-01-01",
      • "birthCity": "Paris",
      • "birthZipCode": "75001",
      • "birthCountry": "FR"
      },
    • "contact": {
      • "email": "test@algoan.com",
      • "phoneNumber": "+33611223344",
      • "street": "151 rue saint denis",
      • "additionalInformation": "second Floor",
      • "city": "Paris",
      • "zipCode": 75002,
      • "country": "FR"
      },
    • "household": {
      • "maritalStatus": "CIVIL_PARTNERSHIP",
      • "numberOfDependentChildren": 2,
      • "numberOfOtherDependents": 0
      }
    },
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Analysis

An analysis is a snapshot of a customer's financial situation based on the connected bank accounts. It contains results from both products Score and Credit Insights.

NOTE: To get Credit Insights results or a Score, the analysis need to contain at least one CHECKING Account with a minimum of 20 transactions.

Create a new analysis

Creates a new analysis for a given customer. There are several possible scenarios depending on the number of created analyses for a customer.

First analysis

If you create for the first time an analysis for the customer, there are three possible scenarios:

  • You are able to fetch accounts and transactions from an AISP and send them to Algoan. In this case, the Score and Credit Insights analysis will automatically be launched as soon as the analysis instance is created.
  • If you are using a connector, you should first create an analysis with no accounts and no transactions. An automatic event will then be sent to your hosted connector so it can automatically fetch data from the AISP. The analysis will be computed right after.
  • If you are not using a connector and no accounts and no transactions are provided in the request body, a 403 HTTP error will be returned.

Next analyses

If you are trying to create a new analysis for a customer that already has at least one analysis, here is a list of possible scenarios:

  • As soon as you create an analysis with new accounts and transactions, the new analysis result will be based on all accounts and transactions that belong to the customer (including those used in previous analyses).
  • If you are using a connector, you should first create an analysis with no accounts and no transactions. An automatic event will then be sent to your hosted connector so it can automatically fetch the latest transactions of the previously connected bank accounts. The analysis will be computed right after. This new analysis result will be based on all accounts and transactions that belong to the customer (including those used in previous analyses).
  • If you are not using a connector and create a new analysis with no accounts no transactions in the request body, a 403 HTTP error will be returned.

Upload Budget Insight Open Banking data

If you have integrated Budget Insight on your side, you can create an analysis with Budget Insight raw data. To do this, choose BUDGET_INSIGHT_V2_0 format and upload users' connections.

If you use Budget Insight's webhooks, listen to the CONNECTION_SYNCED event. If you don't, you need to retrieve:

  • Connections
  • Connector attached to the connections
  • Accounts
  • Transactions

⚠️ This format is not available yet. An experimental version will be released on the 17th of March 2022. Please contact your Customer Success if you are interested in.

Upload Oxlin Open Banking data

If you have integrated Oxlin on your side, you can create an analysis with Oxlin Direct Account API raw data. To do this, choose OXLIN_DIRECT_ACCOUNT_API_V3 format and upload users' accounts.

⚠️ This format is not available yet. An experimental version will be released on the 30th of March 2022. Please contact your Customer Success if you are interested in.

Request Body schema: application/json

New analysis to create

format
string

Original format of the open banking data (default to ALGOAN). BUDGET_INSIGHT_V2 refers to the second version of Budget Insight API.

ALGOAN
OXLIN_DIRECT_ACCOUNT_API_V3
ALGOAN
BUDGET_INSIGHT_V2_0
object

Optional parameters related to the analysis. If disableScores and disableCreditInsights are both set to true, a 400 HTTP error will be returned.

dataOrigin
string
Enum: "OPEN_BANKING" "PDF" "UNKNOWN"

Describes the origin of the analysis' data:

  • OPEN_BANKING: Data fetched from an aggregator.
  • PDF: Data fetched from a PDF file
  • UNKNOWN: Default value
Array of objects[ items ]

Accounts inclucing transactions (Algoan format)

Responses

Response Schema: application/json
id
required
string

Unique analysis identifier

status
required
string
Enum: "CREATED" "ERROR" "IN_PROGRESS" "COMPLETED"

State of the analysis:

  • CREATED: you've just created the analysis. Algoan is waiting for accounts and transactions to be uploaded
  • IN_PROGRESS: as soon as banking details are uploaded, the analysis is in "IN_PROGRESS" state. If you try to request Credit Insights or Score, the API will return a 202 HTTP status code.
  • COMPLETED: means that the analysis process is finished. Conditions:
    • If Credit Insights is disabled, the analysis is complete as soon as scores and metadata are defined
    • If Score is disabled, the analysis is complete as soon as creditInsights and metadata are defined
    • If you've launched both Score and Credit Insights, the analysis is completed as soon as all fields are defined
  • ERROR: the analysis is in an error state if Score or Credit Insights cannot be calculated. Therefore, an error property will be defined, giving you the reason for failure.
format
string
Enum: "ALGOAN" "BUDGET_INSIGHT_V2_0"

Original format of the open banking data (default to ALGOAN). BUDGET_INSIGHT_V2 refers to the second version of Budget Insight API.

object

Optional parameters related to the analysis. If disableScores and disableCreditInsights are both set to true, a 400 HTTP error will be returned.

source
string
Enum: "INTERNAL" "CLIENT"

Describes the origin of the analysis' launch:

  • INTERNAL: relaunched by Algoan if an internal error occurred (will not be billed)
  • CLIENT: created and launched by a client
  • CASH_FLOW_UPDATE: created and launched after a client cashflow update
dataOrigin
string
Enum: "OPEN_BANKING" "PDF" "UNKNOWN"

Describes the origin of the analysis' data:

  • OPEN_BANKING: Data fetched from an aggregator.
  • PDF: Data fetched from a PDF file
  • UNKNOWN: Default value
createdAt
string <date-time>

Analysis date of creation

updatedAt
string <date-time>

Latest update of the analysis

https://api.algoan.com/v2/customers/{id}/analyses

Request samples

  • Payload
Content type
application/json
Example
ALGOAN
ALGOAN
BUDGET_INSIGHT_V2_0
OXLIN_DIRECT_ACCOUNT_API_V3
{
  • "format": "ALGOAN",
  • "parameters": {
    • "disableScores": false,
    • "disableCreditInsights": false
    },
  • "dataOrigin": "OPEN_BANKING",
  • "accounts": [
    • {
      • "type": "CHECKING",
      • "balance": 3564.5,
      • "balanceDate": "2019-06-30T22:00:00.000Z",
      • "currency": "EUR",
      • "owners": [
        • {
          • "name": "John Doe"
          }
        ],
      • "number": "1234-123456789",
      • "iban": "FR7630001007941234567890185",
      • "bic": "BDFEFR2T",
      • "name": "compte de pierre paul jacques",
      • "bank": {
        • "id": "string",
        • "logoUrl": "string",
        • "name": "string",
        • "country": "string"
        },
      • "usage": "PERSONAL",
      • "country": "FR",
      • "coming": 400,
      • "details": {
        • "savings": {
          • "type": "SHORT_TERM",
          • "openedAt": "2019-06-30T22:00:00.000Z",
          • "maximumAmount": 20000,
          • "interestRate": 0.1456
          },
        • "loan": {
          • "type": "REVOLVING",
          • "amount": 10000,
          • "startDate": "2019-06-30T22:00:00.000Z",
          • "endDate": "2019-06-30T22:00:00.000Z",
          • "duration": 24,
          • "insuranceLabel": "Insurance A",
          • "payment": 10,
          • "remainingCapital": 1000,
          • "interestRate": 0.1456
          }
        },
      • "aggregator": {
        • "id": "string"
        },
      • "transactions": [
        • {
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22",
            • "category": "string",
            • "type": "string"
            }
          }
        ]
      }
    ]
}

Response samples

  • 202
Content type
application/json
{
  • "id": "string",
  • "format": "ALGOAN",
  • "parameters": {
    • "disableScores": false,
    • "disableCreditInsights": false
    },
  • "status": "CREATED",
  • "source": "INTERNAL",
  • "dataOrigin": "OPEN_BANKING",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z"
}

Get all analyses

Get a list of all the customer's Analysis

Responses

Response Schema: application/json
Array of objects (Analysis) [ items ]
object

details about the pagination of returned resources

https://api.algoan.com/v2/customers/{id}/analyses

Response samples

  • 200
Content type
application/json
{
  • "resources": [
    • {
      • "id": "string",
      • "format": "ALGOAN",
      • "parameters": {
        • "disableScores": false,
        • "disableCreditInsights": false
        },
      • "status": "CREATED",
      • "source": "INTERNAL",
      • "dataOrigin": "OPEN_BANKING",
      • "createdAt": "2019-08-24T14:15:22Z",
      • "updatedAt": "2019-08-24T14:15:22Z",
      • "metadata": {
        • "lastTransactionGap": 0,
        • "historicalDepth": 0,
        • "monthlyTransactionCount": 0,
        • "numberOfCheckings": 0,
        • "numberOfSavings": 0,
        • "numberOfLoans": 0,
        • "firstTransactionDate": "2019-06-30T22:00:00.000Z",
        • "calendar": [
          • {
            • "month": "2020-01",
            • "nbDays": 18
            }
          ],
        • "totalTransactionCount": 0
        },
      • "creditInsights": {
        • "version": "string",
        • "cashFlows": [
          • {
            • "type": "CASH_DEPOSIT",
            • "category": "ALLOWANCE",
            • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
            • "label": "LOAN REPAYMENTS FROM BANK X - 2",
            • "totalAmount": 3630,
            • "totalRejectedAmount": 120,
            • "calendar": [
              • {
                • "month": "2020-01",
                • "amount": -218
                }
              ],
            • "transactions": [
              • {
                • "id": "fb7b822f1b57855f55e11383",
                • "accountId": "5c336adbf675152f00549d6f",
                • "description": "Expenses",
                • "dates": {
                  • "debitedAt": "2019-06-30T22:00:00.000Z",
                  • "bookedAt": "2019-08-24T14:15:22Z"
                  },
                • "amount": 10000,
                • "currency": "EUR",
                • "enrichments": {
                  • "category": "ALLOWANCE",
                  • "type": "CASH_DEPOSIT",
                  • "isInternationalTransfer": false,
                  • "isRejected": false,
                  • "counterPartId": "fb7b822f1b57855f55e11383"
                  },
                • "isComing": false,
                • "aggregator": {
                  • "id": "12a22"
                  },
                • "isNonAnalysed": false
                }
              ],
            • "regularity": {
              • "dueDays": [
                • 0
                ],
              • "interval": {
                • "min": 28,
                • "max": 31
                },
              • "meanNumberOfDaysInInterval": 30,
              • "accuracy": 72,
              • "periodicity": "MONTHLY",
              • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
              }
            }
          ],
        • "incomes": {
          • "totalAmount": 12508.56,
          • "monthlyAmount": 2005.4,
          • "indicators": {
            • "allowancesRatio": 1
            },
          • "employers": [
            • {
              • "name": "ACME inc",
              • "staffing": "SMALL"
              }
            ],
          • "categories": [
            • {
              • "name": "ALLOWANCE",
              • "totalAmount": 3630,
              • "monthlyAmount": 2005.4,
              • "calendar": [
                • {
                  • "month": "2020-01",
                  • "amount": 218
                  }
                ],
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              }
            ]
          },
        • "expenses": {
          • "totalAmount": 12508.56,
          • "monthlyAmount": 2005.4,
          • "frequentTransactions": [
            • {
              • "label": "CARD MARK AND SPENCER",
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              }
            ],
          • "categories": [
            • {
              • "name": "INSURANCE",
              • "totalAmount": -3630,
              • "monthlyAmount": -2005.4,
              • "calendar": [
                • {
                  • "month": "2020-01",
                  • "amount": -218
                  }
                ],
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              }
            ]
          },
        • "loans": {
          • "repayments": {
            • "totalAmount": 0,
            • "monthlyAmount": 0,
            • "lendingOrganizations": [
              • {
                • "name": "string"
                }
              ],
            • "details": [
              • {
                • "type": "CASH_DEPOSIT",
                • "category": "ALLOWANCE",
                • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
                • "label": "LOAN REPAYMENTS FROM BANK X - 2",
                • "totalAmount": 3630,
                • "totalRejectedAmount": 120,
                • "calendar": [
                  • {
                    • "month": null,
                    • "amount": null
                    }
                  ],
                • "transactions": [
                  • {
                    • "id": null,
                    • "accountId": null,
                    • "description": null,
                    • "dates": { },
                    • "amount": null,
                    • "currency": null,
                    • "enrichments": { },
                    • "isComing": null,
                    • "aggregator": { },
                    • "isNonAnalysed": null
                    }
                  ],
                • "regularity": {
                  • "dueDays": [
                    • null
                    ],
                  • "interval": {
                    • "min": null,
                    • "max": null
                    },
                  • "meanNumberOfDaysInInterval": 30,
                  • "accuracy": 72,
                  • "periodicity": "MONTHLY",
                  • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
                  }
                }
              ]
            },
          • "drawdowns": {
            • "count": 0,
            • "totalAmount": 0,
            • "lendingOrganizations": [
              • {
                • "name": "string"
                }
              ],
            • "details": [
              • {
                • "type": "CASH_DEPOSIT",
                • "category": "ALLOWANCE",
                • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
                • "label": "LOAN REPAYMENTS FROM BANK X - 2",
                • "totalAmount": 3630,
                • "totalRejectedAmount": 120,
                • "calendar": [
                  • {
                    • "month": null,
                    • "amount": null
                    }
                  ],
                • "transactions": [
                  • {
                    • "id": null,
                    • "accountId": null,
                    • "description": null,
                    • "dates": { },
                    • "amount": null,
                    • "currency": null,
                    • "enrichments": { },
                    • "isComing": null,
                    • "aggregator": { },
                    • "isNonAnalysed": null
                    }
                  ],
                • "regularity": {
                  • "dueDays": [
                    • null
                    ],
                  • "interval": {
                    • "min": null,
                    • "max": null
                    },
                  • "meanNumberOfDaysInInterval": 30,
                  • "accuracy": 72,
                  • "periodicity": "MONTHLY",
                  • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
                  }
                }
              ]
            }
          },
        • "risks": {
          • "gambling": {
            • "totalAmount": 0,
            • "transactions": [
              • {
                • "id": "fb7b822f1b57855f55e11383",
                • "accountId": "5c336adbf675152f00549d6f",
                • "description": "Expenses",
                • "dates": {
                  • "debitedAt": "2019-06-30T22:00:00.000Z",
                  • "bookedAt": "2019-08-24T14:15:22Z"
                  },
                • "amount": 10000,
                • "currency": "EUR",
                • "enrichments": {
                  • "category": "ALLOWANCE",
                  • "type": "CASH_DEPOSIT",
                  • "isInternationalTransfer": false,
                  • "isRejected": false,
                  • "counterPartId": "fb7b822f1b57855f55e11383"
                  },
                • "isComing": false,
                • "aggregator": {
                  • "id": "12a22"
                  },
                • "isNonAnalysed": false
                }
              ]
            },
          • "incidents": {
            • "paymentRejections": {
              • "totalAmount": 134.5,
              • "totalFeesAmount": 0,
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ],
              • "feesTransactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              },
            • "checkRejections": {
              • "totalAmount": 0,
              • "totalFeesAmount": 0,
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ],
              • "feesTransactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              },
            • "interventionFees": {
              • "totalAmount": 0,
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              }
            },
          • "overdraft": {
            • "minimumBalanceReached": -503,
            • "duration": 12,
            • "fees": {
              • "totalAmount": 0,
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              }
            },
          • "heavyFailures": {
            • "directRecoveryOfDebt": {
              • "totalAmount": 0,
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              },
            • "bankAccountSeizure": {
              • "totalAmount": 0,
              • "transactions": [
                • {
                  • "id": "fb7b822f1b57855f55e11383",
                  • "accountId": "5c336adbf675152f00549d6f",
                  • "description": "Expenses",
                  • "dates": {
                    • "debitedAt": null,
                    • "bookedAt": null
                    },
                  • "amount": 10000,
                  • "currency": "EUR",
                  • "enrichments": {
                    • "category": null,
                    • "type": null,
                    • "isInternationalTransfer": null,
                    • "isRejected": null,
                    • "counterPartId": null
                    },
                  • "isComing": false,
                  • "aggregator": {
                    • "id": null,
                    • "category": null,
                    • "type": null
                    },
                  • "isNonAnalysed": false
                  }
                ]
              }
            },
          • "wageAdvance": {
            • "totalAmount": 0,
            • "transactions": [
              • {
                • "id": "fb7b822f1b57855f55e11383",
                • "accountId": "5c336adbf675152f00549d6f",
                • "description": "Expenses",
                • "dates": {
                  • "debitedAt": "2019-06-30T22:00:00.000Z",
                  • "bookedAt": "2019-08-24T14:15:22Z"
                  },
                • "amount": 10000,
                • "currency": "EUR",
                • "enrichments": {
                  • "category": "ALLOWANCE",
                  • "type": "CASH_DEPOSIT",
                  • "isInternationalTransfer": false,
                  • "isRejected": false,
                  • "counterPartId": "fb7b822f1b57855f55e11383"
                  },
                • "isComing": false,
                • "aggregator": {
                  • "id": "12a22"
                  },
                • "isNonAnalysed": false
                }
              ]
            }
          }
        },
      • "scores": {
        • "creditScore": {
          • "version": "1.0.0",
          • "value": 1000,
          • "indicators": {
            • "livingStandard": 2,
            • "budgetManagement": 0,
            • "financialEvolution": -5
            }
          },
        • "paymentScore": {
          • "version": "0.0.1",
          • "value": 5
          }
        },
      • "error": {
        • "code": "INTERNAL_ERROR",
        • "message": "string"
        }
      }
    ],
  • "pagination": {
    • "next": "string",
    • "previous": "string",
    • "first": "string",
    • "last": "string",
    • "totalPages": 0,
    • "totalResources": 0
    }
}

Get an analysis

Get a unique analysis

Responses

Response Schema: application/json
id
required
string

Unique analysis identifier

status
required
string
Enum: "CREATED" "ERROR" "IN_PROGRESS" "COMPLETED"

State of the analysis:

  • CREATED: you've just created the analysis. Algoan is waiting for accounts and transactions to be uploaded
  • IN_PROGRESS: as soon as banking details are uploaded, the analysis is in "IN_PROGRESS" state. If you try to request Credit Insights or Score, the API will return a 202 HTTP status code.
  • COMPLETED: means that the analysis process is finished. Conditions:
    • If Credit Insights is disabled, the analysis is complete as soon as scores and metadata are defined
    • If Score is disabled, the analysis is complete as soon as creditInsights and metadata are defined
    • If you've launched both Score and Credit Insights, the analysis is completed as soon as all fields are defined
  • ERROR: the analysis is in an error state if Score or Credit Insights cannot be calculated. Therefore, an error property will be defined, giving you the reason for failure.
format
string
Enum: "ALGOAN" "BUDGET_INSIGHT_V2_0"

Original format of the open banking data (default to ALGOAN). BUDGET_INSIGHT_V2 refers to the second version of Budget Insight API.

object

Optional parameters related to the analysis. If disableScores and disableCreditInsights are both set to true, a 400 HTTP error will be returned.

source
string
Enum: "INTERNAL" "CLIENT"

Describes the origin of the analysis' launch:

  • INTERNAL: relaunched by Algoan if an internal error occurred (will not be billed)
  • CLIENT: created and launched by a client
  • CASH_FLOW_UPDATE: created and launched after a client cashflow update
dataOrigin
string
Enum: "OPEN_BANKING" "PDF" "UNKNOWN"

Describes the origin of the analysis' data:

  • OPEN_BANKING: Data fetched from an aggregator.
  • PDF: Data fetched from a PDF file
  • UNKNOWN: Default value
createdAt
string <date-time>

Analysis date of creation

updatedAt
string <date-time>

Latest update of the analysis

object (Metadata)

Information about the data itself used to execute the Analysis.

object (CreditInsights)

Object containing results from Credit Insights

object (Score)

\ Scores assessing the probability of default Depending on your Score configuration you can have one or many scores computed. Each score will be billed independently.

object (AnalysisError)

This property is defined if the analysis is in an ERROR state

https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}

Response samples

  • 200
Content type
application/json
{
  • "id": "string",
  • "format": "ALGOAN",
  • "parameters": {
    • "disableScores": false,
    • "disableCreditInsights": false
    },
  • "status": "CREATED",
  • "source": "INTERNAL",
  • "dataOrigin": "OPEN_BANKING",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "metadata": {
    • "lastTransactionGap": 0,
    • "historicalDepth": 0,
    • "monthlyTransactionCount": 0,
    • "numberOfCheckings": 0,
    • "numberOfSavings": 0,
    • "numberOfLoans": 0,
    • "firstTransactionDate": "2019-06-30T22:00:00.000Z",
    • "calendar": [
      • {
        • "month": "2020-01",
        • "nbDays": 18
        }
      ],
    • "totalTransactionCount": 0
    },
  • "creditInsights": {
    • "version": "string",
    • "cashFlows": [
      • {
        • "type": "CASH_DEPOSIT",
        • "category": "ALLOWANCE",
        • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
        • "label": "LOAN REPAYMENTS FROM BANK X - 2",
        • "totalAmount": 3630,
        • "totalRejectedAmount": 120,
        • "calendar": [
          • {
            • "month": "2020-01",
            • "amount": -218
            }
          ],
        • "transactions": [
          • {
            • "id": "fb7b822f1b57855f55e11383",
            • "accountId": "5c336adbf675152f00549d6f",
            • "description": "Expenses",
            • "dates": {
              • "debitedAt": "2019-06-30T22:00:00.000Z",
              • "bookedAt": "2019-08-24T14:15:22Z"
              },
            • "amount": 10000,
            • "currency": "EUR",
            • "enrichments": {
              • "category": "ALLOWANCE",
              • "type": "CASH_DEPOSIT",
              • "isInternationalTransfer": false,
              • "isRejected": false,
              • "counterPartId": "fb7b822f1b57855f55e11383"
              },
            • "isComing": false,
            • "aggregator": {
              • "id": "12a22"
              },
            • "isNonAnalysed": false
            }
          ],
        • "regularity": {
          • "dueDays": [
            • 0
            ],
          • "interval": {
            • "min": 28,
            • "max": 31
            },
          • "meanNumberOfDaysInInterval": 30,
          • "accuracy": 72,
          • "periodicity": "MONTHLY",
          • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
          }
        }
      ],
    • "incomes": {
      • "totalAmount": 12508.56,
      • "monthlyAmount": 2005.4,
      • "indicators": {
        • "allowancesRatio": 1
        },
      • "employers": [
        • {
          • "name": "ACME inc",
          • "staffing": "SMALL"
          }
        ],
      • "categories": [
        • {
          • "name": "ALLOWANCE",
          • "totalAmount": 3630,
          • "monthlyAmount": 2005.4,
          • "calendar": [
            • {
              • "month": "2020-01",
              • "amount": 218
              }
            ],
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        ]
      },
    • "expenses": {
      • "totalAmount": 12508.56,
      • "monthlyAmount": 2005.4,
      • "frequentTransactions": [
        • {
          • "label": "CARD MARK AND SPENCER",
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        ],
      • "categories": [
        • {
          • "name": "INSURANCE",
          • "totalAmount": -3630,
          • "monthlyAmount": -2005.4,
          • "calendar": [
            • {
              • "month": "2020-01",
              • "amount": -218
              }
            ],
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        ]
      },
    • "loans": {
      • "repayments": {
        • "totalAmount": 0,
        • "monthlyAmount": 0,
        • "lendingOrganizations": [
          • {
            • "name": "string"
            }
          ],
        • "details": [
          • {
            • "type": "CASH_DEPOSIT",
            • "category": "ALLOWANCE",
            • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
            • "label": "LOAN REPAYMENTS FROM BANK X - 2",
            • "totalAmount": 3630,
            • "totalRejectedAmount": 120,
            • "calendar": [
              • {
                • "month": "2020-01",
                • "amount": -218
                }
              ],
            • "transactions": [
              • {
                • "id": "fb7b822f1b57855f55e11383",
                • "accountId": "5c336adbf675152f00549d6f",
                • "description": "Expenses",
                • "dates": {
                  • "debitedAt": "2019-06-30T22:00:00.000Z",
                  • "bookedAt": "2019-08-24T14:15:22Z"
                  },
                • "amount": 10000,
                • "currency": "EUR",
                • "enrichments": {
                  • "category": "ALLOWANCE",
                  • "type": "CASH_DEPOSIT",
                  • "isInternationalTransfer": false,
                  • "isRejected": false,
                  • "counterPartId": "fb7b822f1b57855f55e11383"
                  },
                • "isComing": false,
                • "aggregator": {
                  • "id": "12a22"
                  },
                • "isNonAnalysed": false
                }
              ],
            • "regularity": {
              • "dueDays": [
                • 0
                ],
              • "interval": {
                • "min": 28,
                • "max": 31
                },
              • "meanNumberOfDaysInInterval": 30,
              • "accuracy": 72,
              • "periodicity": "MONTHLY",
              • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
              }
            }
          ]
        },
      • "drawdowns": {
        • "count": 0,
        • "totalAmount": 0,
        • "lendingOrganizations": [
          • {
            • "name": "string"
            }
          ],
        • "details": [
          • {
            • "type": "CASH_DEPOSIT",
            • "category": "ALLOWANCE",
            • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
            • "label": "LOAN REPAYMENTS FROM BANK X - 2",
            • "totalAmount": 3630,
            • "totalRejectedAmount": 120,
            • "calendar": [
              • {
                • "month": "2020-01",
                • "amount": -218
                }
              ],
            • "transactions": [
              • {
                • "id": "fb7b822f1b57855f55e11383",
                • "accountId": "5c336adbf675152f00549d6f",
                • "description": "Expenses",
                • "dates": {
                  • "debitedAt": "2019-06-30T22:00:00.000Z",
                  • "bookedAt": "2019-08-24T14:15:22Z"
                  },
                • "amount": 10000,
                • "currency": "EUR",
                • "enrichments": {
                  • "category": "ALLOWANCE",
                  • "type": "CASH_DEPOSIT",
                  • "isInternationalTransfer": false,
                  • "isRejected": false,
                  • "counterPartId": "fb7b822f1b57855f55e11383"
                  },
                • "isComing": false,
                • "aggregator": {
                  • "id": "12a22"
                  },
                • "isNonAnalysed": false
                }
              ],
            • "regularity": {
              • "dueDays": [
                • 0
                ],
              • "interval": {
                • "min": 28,
                • "max": 31
                },
              • "meanNumberOfDaysInInterval": 30,
              • "accuracy": 72,
              • "periodicity": "MONTHLY",
              • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
              }
            }
          ]
        }
      },
    • "risks": {
      • "gambling": {
        • "totalAmount": 0,
        • "transactions": [
          • {
            • "id": "fb7b822f1b57855f55e11383",
            • "accountId": "5c336adbf675152f00549d6f",
            • "description": "Expenses",
            • "dates": {
              • "debitedAt": "2019-06-30T22:00:00.000Z",
              • "bookedAt": "2019-08-24T14:15:22Z"
              },
            • "amount": 10000,
            • "currency": "EUR",
            • "enrichments": {
              • "category": "ALLOWANCE",
              • "type": "CASH_DEPOSIT",
              • "isInternationalTransfer": false,
              • "isRejected": false,
              • "counterPartId": "fb7b822f1b57855f55e11383"
              },
            • "isComing": false,
            • "aggregator": {
              • "id": "12a22"
              },
            • "isNonAnalysed": false
            }
          ]
        },
      • "incidents": {
        • "paymentRejections": {
          • "totalAmount": 134.5,
          • "totalFeesAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ],
          • "feesTransactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          },
        • "checkRejections": {
          • "totalAmount": 0,
          • "totalFeesAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ],
          • "feesTransactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          },
        • "interventionFees": {
          • "totalAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        },
      • "overdraft": {
        • "minimumBalanceReached": -503,
        • "duration": 12,
        • "fees": {
          • "totalAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        },
      • "heavyFailures": {
        • "directRecoveryOfDebt": {
          • "totalAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          },
        • "bankAccountSeizure": {
          • "totalAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        },
      • "wageAdvance": {
        • "totalAmount": 0,
        • "transactions": [
          • {
            • "id": "fb7b822f1b57855f55e11383",
            • "accountId": "5c336adbf675152f00549d6f",
            • "description": "Expenses",
            • "dates": {
              • "debitedAt": "2019-06-30T22:00:00.000Z",
              • "bookedAt": "2019-08-24T14:15:22Z"
              },
            • "amount": 10000,
            • "currency": "EUR",
            • "enrichments": {
              • "category": "ALLOWANCE",
              • "type": "CASH_DEPOSIT",
              • "isInternationalTransfer": false,
              • "isRejected": false,
              • "counterPartId": "fb7b822f1b57855f55e11383"
              },
            • "isComing": false,
            • "aggregator": {
              • "id": "12a22"
              },
            • "isNonAnalysed": false
            }
          ]
        }
      }
    },
  • "scores": {
    • "creditScore": {
      • "version": "1.0.0",
      • "value": 1000,
      • "indicators": {
        • "livingStandard": 2,
        • "budgetManagement": 0,
        • "financialEvolution": -5
        }
      },
    • "paymentScore": {
      • "version": "0.0.1",
      • "value": 5
      }
    },
  • "error": {
    • "code": "INTERNAL_ERROR",
    • "message": "string"
    }
}

Update an analysis

Update an analysis.

  • If the payload contains field status or error, the analysis's status will be updated.
  • If the payload contains field error, the analysis's error will be updated and the updating process terminates immediately.
  • If the payload contains field accounts, only when the analysis has currently no account, the payload's accounts will be added to the analysis and then an analysis process will be launched.
Request Body schema: application/json

The update payload

format
string

Original format of the open banking data (default to ALGOAN). BUDGET_INSIGHT_V2 refers to the second version of Budget Insight API.

ALGOAN
OXLIN_DIRECT_ACCOUNT_API_V3
ALGOAN
BUDGET_INSIGHT_V2_0
status
string
Enum: "CREATED" "ERROR" "IN_PROGRESS" "COMPLETED"

State of the analysis:

  • CREATED: you've just created the analysis. Algoan is waiting for accounts and transactions to be uploaded
  • IN_PROGRESS: as soon as banking details are uploaded, the analysis is in "IN_PROGRESS" state. If you try to request Credit Insights or Score, the API will return a 202 HTTP status code.
  • COMPLETED: means that the analysis process is finished. Conditions:
    • If Credit Insights is disabled, the analysis is complete as soon as scores and metadata are defined
    • If Score is disabled, the analysis is complete as soon as creditInsights and metadata are defined
    • If you've launched both Score and Credit Insights, the analysis is completed as soon as all fields are defined
  • ERROR: the analysis is in an error state if Score or Credit Insights cannot be calculated. Therefore, an error property will be defined, giving you the reason for failure.
object (AnalysisError)

This property is defined if the analysis is in an ERROR state

Array of objects[ items ]

Accounts inclucing transactions (Algoan format)

Responses

Response Schema: application/json
id
required
string

Unique analysis identifier

status
required
string
Enum: "CREATED" "ERROR" "IN_PROGRESS" "COMPLETED"

State of the analysis:

  • CREATED: you've just created the analysis. Algoan is waiting for accounts and transactions to be uploaded
  • IN_PROGRESS: as soon as banking details are uploaded, the analysis is in "IN_PROGRESS" state. If you try to request Credit Insights or Score, the API will return a 202 HTTP status code.
  • COMPLETED: means that the analysis process is finished. Conditions:
    • If Credit Insights is disabled, the analysis is complete as soon as scores and metadata are defined
    • If Score is disabled, the analysis is complete as soon as creditInsights and metadata are defined
    • If you've launched both Score and Credit Insights, the analysis is completed as soon as all fields are defined
  • ERROR: the analysis is in an error state if Score or Credit Insights cannot be calculated. Therefore, an error property will be defined, giving you the reason for failure.
format
string
Enum: "ALGOAN" "BUDGET_INSIGHT_V2_0"

Original format of the open banking data (default to ALGOAN). BUDGET_INSIGHT_V2 refers to the second version of Budget Insight API.

object

Optional parameters related to the analysis. If disableScores and disableCreditInsights are both set to true, a 400 HTTP error will be returned.

source
string
Enum: "INTERNAL" "CLIENT"

Describes the origin of the analysis' launch:

  • INTERNAL: relaunched by Algoan if an internal error occurred (will not be billed)
  • CLIENT: created and launched by a client
  • CASH_FLOW_UPDATE: created and launched after a client cashflow update
dataOrigin
string
Enum: "OPEN_BANKING" "PDF" "UNKNOWN"

Describes the origin of the analysis' data:

  • OPEN_BANKING: Data fetched from an aggregator.
  • PDF: Data fetched from a PDF file
  • UNKNOWN: Default value
createdAt
string <date-time>

Analysis date of creation

updatedAt
string <date-time>

Latest update of the analysis

object (Metadata)

Information about the data itself used to execute the Analysis.

object (CreditInsights)

Object containing results from Credit Insights

object (Score)

\ Scores assessing the probability of default Depending on your Score configuration you can have one or many scores computed. Each score will be billed independently.

object (AnalysisError)

This property is defined if the analysis is in an ERROR state

https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}

Request samples

  • Payload
Content type
application/json
Example
ALGOAN
ALGOAN
BUDGET_INSIGHT_V2_0
OXLIN_DIRECT_ACCOUNT_API_V3
{
  • "format": "ALGOAN",
  • "accounts": [
    • {
      • "type": "CHECKING",
      • "balance": 3564.5,
      • "balanceDate": "2019-06-30T22:00:00.000Z",
      • "currency": "EUR",
      • "owners": [
        • {
          • "name": "John Doe"
          }
        ],
      • "number": "1234-123456789",
      • "iban": "FR7630001007941234567890185",
      • "bic": "BDFEFR2T",
      • "name": "compte de pierre paul jacques",
      • "bank": {
        • "id": "string",
        • "logoUrl": "string",
        • "name": "string",
        • "country": "string"
        },
      • "usage": "PERSONAL",
      • "country": "FR",
      • "coming": 400,
      • "details": {
        • "savings": {
          • "type": "SHORT_TERM",
          • "openedAt": "2019-06-30T22:00:00.000Z",
          • "maximumAmount": 20000,
          • "interestRate": 0.1456
          },
        • "loan": {
          • "type": "REVOLVING",
          • "amount": 10000,
          • "startDate": "2019-06-30T22:00:00.000Z",
          • "endDate": "2019-06-30T22:00:00.000Z",
          • "duration": 24,
          • "insuranceLabel": "Insurance A",
          • "payment": 10,
          • "remainingCapital": 1000,
          • "interestRate": 0.1456
          }
        },
      • "aggregator": {
        • "id": "string"
        },
      • "transactions": [
        • {
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22",
            • "category": "string",
            • "type": "string"
            }
          }
        ]
      }
    ]
}

Response samples

  • 200
Content type
application/json
{
  • "id": "string",
  • "format": "ALGOAN",
  • "parameters": {
    • "disableScores": false,
    • "disableCreditInsights": false
    },
  • "status": "CREATED",
  • "source": "INTERNAL",
  • "dataOrigin": "OPEN_BANKING",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "metadata": {
    • "lastTransactionGap": 0,
    • "historicalDepth": 0,
    • "monthlyTransactionCount": 0,
    • "numberOfCheckings": 0,
    • "numberOfSavings": 0,
    • "numberOfLoans": 0,
    • "firstTransactionDate": "2019-06-30T22:00:00.000Z",
    • "calendar": [
      • {
        • "month": "2020-01",
        • "nbDays": 18
        }
      ],
    • "totalTransactionCount": 0
    },
  • "creditInsights": {
    • "version": "string",
    • "cashFlows": [
      • {
        • "type": "CASH_DEPOSIT",
        • "category": "ALLOWANCE",
        • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
        • "label": "LOAN REPAYMENTS FROM BANK X - 2",
        • "totalAmount": 3630,
        • "totalRejectedAmount": 120,
        • "calendar": [
          • {
            • "month": "2020-01",
            • "amount": -218
            }
          ],
        • "transactions": [
          • {
            • "id": "fb7b822f1b57855f55e11383",
            • "accountId": "5c336adbf675152f00549d6f",
            • "description": "Expenses",
            • "dates": {
              • "debitedAt": "2019-06-30T22:00:00.000Z",
              • "bookedAt": "2019-08-24T14:15:22Z"
              },
            • "amount": 10000,
            • "currency": "EUR",
            • "enrichments": {
              • "category": "ALLOWANCE",
              • "type": "CASH_DEPOSIT",
              • "isInternationalTransfer": false,
              • "isRejected": false,
              • "counterPartId": "fb7b822f1b57855f55e11383"
              },
            • "isComing": false,
            • "aggregator": {
              • "id": "12a22"
              },
            • "isNonAnalysed": false
            }
          ],
        • "regularity": {
          • "dueDays": [
            • 0
            ],
          • "interval": {
            • "min": 28,
            • "max": 31
            },
          • "meanNumberOfDaysInInterval": 30,
          • "accuracy": 72,
          • "periodicity": "MONTHLY",
          • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
          }
        }
      ],
    • "incomes": {
      • "totalAmount": 12508.56,
      • "monthlyAmount": 2005.4,
      • "indicators": {
        • "allowancesRatio": 1
        },
      • "employers": [
        • {
          • "name": "ACME inc",
          • "staffing": "SMALL"
          }
        ],
      • "categories": [
        • {
          • "name": "ALLOWANCE",
          • "totalAmount": 3630,
          • "monthlyAmount": 2005.4,
          • "calendar": [
            • {
              • "month": "2020-01",
              • "amount": 218
              }
            ],
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        ]
      },
    • "expenses": {
      • "totalAmount": 12508.56,
      • "monthlyAmount": 2005.4,
      • "frequentTransactions": [
        • {
          • "label": "CARD MARK AND SPENCER",
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        ],
      • "categories": [
        • {
          • "name": "INSURANCE",
          • "totalAmount": -3630,
          • "monthlyAmount": -2005.4,
          • "calendar": [
            • {
              • "month": "2020-01",
              • "amount": -218
              }
            ],
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        ]
      },
    • "loans": {
      • "repayments": {
        • "totalAmount": 0,
        • "monthlyAmount": 0,
        • "lendingOrganizations": [
          • {
            • "name": "string"
            }
          ],
        • "details": [
          • {
            • "type": "CASH_DEPOSIT",
            • "category": "ALLOWANCE",
            • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
            • "label": "LOAN REPAYMENTS FROM BANK X - 2",
            • "totalAmount": 3630,
            • "totalRejectedAmount": 120,
            • "calendar": [
              • {
                • "month": "2020-01",
                • "amount": -218
                }
              ],
            • "transactions": [
              • {
                • "id": "fb7b822f1b57855f55e11383",
                • "accountId": "5c336adbf675152f00549d6f",
                • "description": "Expenses",
                • "dates": {
                  • "debitedAt": "2019-06-30T22:00:00.000Z",
                  • "bookedAt": "2019-08-24T14:15:22Z"
                  },
                • "amount": 10000,
                • "currency": "EUR",
                • "enrichments": {
                  • "category": "ALLOWANCE",
                  • "type": "CASH_DEPOSIT",
                  • "isInternationalTransfer": false,
                  • "isRejected": false,
                  • "counterPartId": "fb7b822f1b57855f55e11383"
                  },
                • "isComing": false,
                • "aggregator": {
                  • "id": "12a22"
                  },
                • "isNonAnalysed": false
                }
              ],
            • "regularity": {
              • "dueDays": [
                • 0
                ],
              • "interval": {
                • "min": 28,
                • "max": 31
                },
              • "meanNumberOfDaysInInterval": 30,
              • "accuracy": 72,
              • "periodicity": "MONTHLY",
              • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
              }
            }
          ]
        },
      • "drawdowns": {
        • "count": 0,
        • "totalAmount": 0,
        • "lendingOrganizations": [
          • {
            • "name": "string"
            }
          ],
        • "details": [
          • {
            • "type": "CASH_DEPOSIT",
            • "category": "ALLOWANCE",
            • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
            • "label": "LOAN REPAYMENTS FROM BANK X - 2",
            • "totalAmount": 3630,
            • "totalRejectedAmount": 120,
            • "calendar": [
              • {
                • "month": "2020-01",
                • "amount": -218
                }
              ],
            • "transactions": [
              • {
                • "id": "fb7b822f1b57855f55e11383",
                • "accountId": "5c336adbf675152f00549d6f",
                • "description": "Expenses",
                • "dates": {
                  • "debitedAt": "2019-06-30T22:00:00.000Z",
                  • "bookedAt": "2019-08-24T14:15:22Z"
                  },
                • "amount": 10000,
                • "currency": "EUR",
                • "enrichments": {
                  • "category": "ALLOWANCE",
                  • "type": "CASH_DEPOSIT",
                  • "isInternationalTransfer": false,
                  • "isRejected": false,
                  • "counterPartId": "fb7b822f1b57855f55e11383"
                  },
                • "isComing": false,
                • "aggregator": {
                  • "id": "12a22"
                  },
                • "isNonAnalysed": false
                }
              ],
            • "regularity": {
              • "dueDays": [
                • 0
                ],
              • "interval": {
                • "min": 28,
                • "max": 31
                },
              • "meanNumberOfDaysInInterval": 30,
              • "accuracy": 72,
              • "periodicity": "MONTHLY",
              • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
              }
            }
          ]
        }
      },
    • "risks": {
      • "gambling": {
        • "totalAmount": 0,
        • "transactions": [
          • {
            • "id": "fb7b822f1b57855f55e11383",
            • "accountId": "5c336adbf675152f00549d6f",
            • "description": "Expenses",
            • "dates": {
              • "debitedAt": "2019-06-30T22:00:00.000Z",
              • "bookedAt": "2019-08-24T14:15:22Z"
              },
            • "amount": 10000,
            • "currency": "EUR",
            • "enrichments": {
              • "category": "ALLOWANCE",
              • "type": "CASH_DEPOSIT",
              • "isInternationalTransfer": false,
              • "isRejected": false,
              • "counterPartId": "fb7b822f1b57855f55e11383"
              },
            • "isComing": false,
            • "aggregator": {
              • "id": "12a22"
              },
            • "isNonAnalysed": false
            }
          ]
        },
      • "incidents": {
        • "paymentRejections": {
          • "totalAmount": 134.5,
          • "totalFeesAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ],
          • "feesTransactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          },
        • "checkRejections": {
          • "totalAmount": 0,
          • "totalFeesAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ],
          • "feesTransactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          },
        • "interventionFees": {
          • "totalAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        },
      • "overdraft": {
        • "minimumBalanceReached": -503,
        • "duration": 12,
        • "fees": {
          • "totalAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        },
      • "heavyFailures": {
        • "directRecoveryOfDebt": {
          • "totalAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          },
        • "bankAccountSeizure": {
          • "totalAmount": 0,
          • "transactions": [
            • {
              • "id": "fb7b822f1b57855f55e11383",
              • "accountId": "5c336adbf675152f00549d6f",
              • "description": "Expenses",
              • "dates": {
                • "debitedAt": "2019-06-30T22:00:00.000Z",
                • "bookedAt": "2019-08-24T14:15:22Z"
                },
              • "amount": 10000,
              • "currency": "EUR",
              • "enrichments": {
                • "category": "ALLOWANCE",
                • "type": "CASH_DEPOSIT",
                • "isInternationalTransfer": false,
                • "isRejected": false,
                • "counterPartId": "fb7b822f1b57855f55e11383"
                },
              • "isComing": false,
              • "aggregator": {
                • "id": "12a22"
                },
              • "isNonAnalysed": false
              }
            ]
          }
        },
      • "wageAdvance": {
        • "totalAmount": 0,
        • "transactions": [
          • {
            • "id": "fb7b822f1b57855f55e11383",
            • "accountId": "5c336adbf675152f00549d6f",
            • "description": "Expenses",
            • "dates": {
              • "debitedAt": "2019-06-30T22:00:00.000Z",
              • "bookedAt": "2019-08-24T14:15:22Z"
              },
            • "amount": 10000,
            • "currency": "EUR",
            • "enrichments": {
              • "category": "ALLOWANCE",
              • "type": "CASH_DEPOSIT",
              • "isInternationalTransfer": false,
              • "isRejected": false,
              • "counterPartId": "fb7b822f1b57855f55e11383"
              },
            • "isComing": false,
            • "aggregator": {
              • "id": "12a22"
              },
            • "isNonAnalysed": false
            }
          ]
        }
      }
    },
  • "scores": {
    • "creditScore": {
      • "version": "1.0.0",
      • "value": 1000,
      • "indicators": {
        • "livingStandard": 2,
        • "budgetManagement": 0,
        • "financialEvolution": -5
        }
      },
    • "paymentScore": {
      • "version": "0.0.1",
      • "value": 5
      }
    },
  • "error": {
    • "code": "INTERNAL_ERROR",
    • "message": "string"
    }
}

Credit Insights

The Credit Insights model contains a list of indicators related to the customer's financial situation. It is divided into five parts:

  • Incomes: contains information about the customer’s incomes with the related transactions ordered by category.
  • Expenses: contains information about the customer's expenses with the related transactions ordered by category.
  • Loans: provides details on the customer’s loans.
  • Risk Indicators: contains indicators related to Credit Risk.
  • Cash Flows: groups transactions that share some similarities in descriptions, amounts and regularity.

Incomes

Returns the customer's incomes

path Parameters
id
required
string

ID of the customer to fetch

analysisId
required
string

ID of the analysis to fetch

Responses

Response Schema: application/json
totalAmount
number

Total amount of incomes

monthlyAmount
number

Mean income per month

object

Ratios and indicators about the customer’s incomes

Array of objects[ items ]
Array of objects (IncomeCategoryGroup) [ items ]

Transactions grouped by category

Response Schema: application/json
object
https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/credit-insights/incomes

Response samples

  • 200
  • 202
Content type
application/json
{
  • "totalAmount": 12508.56,
  • "monthlyAmount": 2005.4,
  • "indicators": {
    • "allowancesRatio": 1
    },
  • "employers": [
    • {
      • "name": "ACME inc",
      • "staffing": "SMALL"
      }
    ],
  • "categories": [
    • {
      • "name": "ALLOWANCE",
      • "totalAmount": 3630,
      • "monthlyAmount": 2005.4,
      • "calendar": [
        • {
          • "month": "2020-01",
          • "amount": 218
          }
        ],
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      }
    ]
}

Expenses

Returns the customer's expenses

path Parameters
id
required
string

ID of the customer to fetch

analysisId
required
string

ID of the analysis to fetch

Responses

Response Schema: application/json
totalAmount
number

Total amount of detected expenses

monthlyAmount
number

Mean amount of expenses per month

Array of objects[ items ]

\ List of transaction groups that share the same common transaction description. A transaction group is created when there are at least 5 occurences of transactions that share the same description over the period of analysis.

Array of objects (ExpenseCategoryGroup) [ items ]
Response Schema: application/json
object
https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/credit-insights/expenses

Response samples

  • 200
  • 202
Content type
application/json
{
  • "totalAmount": 12508.56,
  • "monthlyAmount": 2005.4,
  • "frequentTransactions": [
    • {
      • "label": "CARD MARK AND SPENCER",
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      }
    ],
  • "categories": [
    • {
      • "name": "INSURANCE",
      • "totalAmount": -3630,
      • "monthlyAmount": -2005.4,
      • "calendar": [
        • {
          • "month": "2020-01",
          • "amount": -218
          }
        ],
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      }
    ]
}

Loans

Returns information about the customers loans

path Parameters
id
required
string

ID of the customer to fetch

analysisId
required
string

ID of the analysis to fetch

Responses

Response Schema: application/json
object

\ Information about loan repayments. This section does not take into account rejetected loan repayment.

object

Information about loan drawdowns

Response Schema: application/json
object
https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/credit-insights/loans

Response samples

  • 200
  • 202
Content type
application/json
{
  • "repayments": {
    • "totalAmount": 0,
    • "monthlyAmount": 0,
    • "lendingOrganizations": [
      • {
        • "name": "string"
        }
      ],
    • "details": [
      • {
        • "type": "CASH_DEPOSIT",
        • "category": "ALLOWANCE",
        • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
        • "label": "LOAN REPAYMENTS FROM BANK X - 2",
        • "totalAmount": 3630,
        • "totalRejectedAmount": 120,
        • "calendar": [
          • {
            • "month": "2020-01",
            • "amount": -218
            }
          ],
        • "transactions": [
          • {
            • "id": "fb7b822f1b57855f55e11383",
            • "accountId": "5c336adbf675152f00549d6f",
            • "description": "Expenses",
            • "dates": {
              • "debitedAt": "2019-06-30T22:00:00.000Z",
              • "bookedAt": "2019-08-24T14:15:22Z"
              },
            • "amount": 10000,
            • "currency": "EUR",
            • "enrichments": {
              • "category": "ALLOWANCE",
              • "type": "CASH_DEPOSIT",
              • "isInternationalTransfer": false,
              • "isRejected": false,
              • "counterPartId": "fb7b822f1b57855f55e11383"
              },
            • "isComing": false,
            • "aggregator": {
              • "id": "12a22"
              },
            • "isNonAnalysed": false
            }
          ],
        • "regularity": {
          • "dueDays": [
            • 0
            ],
          • "interval": {
            • "min": 28,
            • "max": 31
            },
          • "meanNumberOfDaysInInterval": 30,
          • "accuracy": 72,
          • "periodicity": "MONTHLY",
          • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
          }
        }
      ]
    },
  • "drawdowns": {
    • "count": 0,
    • "totalAmount": 0,
    • "lendingOrganizations": [
      • {
        • "name": "string"
        }
      ],
    • "details": [
      • {
        • "type": "CASH_DEPOSIT",
        • "category": "ALLOWANCE",
        • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
        • "label": "LOAN REPAYMENTS FROM BANK X - 2",
        • "totalAmount": 3630,
        • "totalRejectedAmount": 120,
        • "calendar": [
          • {
            • "month": "2020-01",
            • "amount": -218
            }
          ],
        • "transactions": [
          • {
            • "id": "fb7b822f1b57855f55e11383",
            • "accountId": "5c336adbf675152f00549d6f",
            • "description": "Expenses",
            • "dates": {
              • "debitedAt": "2019-06-30T22:00:00.000Z",
              • "bookedAt": "2019-08-24T14:15:22Z"
              },
            • "amount": 10000,
            • "currency": "EUR",
            • "enrichments": {
              • "category": "ALLOWANCE",
              • "type": "CASH_DEPOSIT",
              • "isInternationalTransfer": false,
              • "isRejected": false,
              • "counterPartId": "fb7b822f1b57855f55e11383"
              },
            • "isComing": false,
            • "aggregator": {
              • "id": "12a22"
              },
            • "isNonAnalysed": false
            }
          ],
        • "regularity": {
          • "dueDays": [
            • 0
            ],
          • "interval": {
            • "min": 28,
            • "max": 31
            },
          • "meanNumberOfDaysInInterval": 30,
          • "accuracy": 72,
          • "periodicity": "MONTHLY",
          • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
          }
        }
      ]
    }
}

Risk Indicators

Returns customer indicators

path Parameters
id
required
string

ID of the customer to fetch

analysisId
required
string

ID of the analysis to fetch

Responses

Response Schema: application/json
object (TransactionsGroupDetail)

\ User's gambling behavior indicators. This section does not take into account rejetected loan repayment.

object
object

User's overdraft behaviour.

object

Events that occurs after either a juridic decision or when an institution fetch its due directly on the users account.

object (TransactionsGroupDetail)
Response Schema: application/json
object
https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/credit-insights/risks

Response samples

  • 200
  • 202
Content type
application/json
{
  • "gambling": {
    • "totalAmount": 0,
    • "transactions": [
      • {
        • "id": "fb7b822f1b57855f55e11383",
        • "accountId": "5c336adbf675152f00549d6f",
        • "description": "Expenses",
        • "dates": {
          • "debitedAt": "2019-06-30T22:00:00.000Z",
          • "bookedAt": "2019-08-24T14:15:22Z"
          },
        • "amount": 10000,
        • "currency": "EUR",
        • "enrichments": {
          • "category": "ALLOWANCE",
          • "type": "CASH_DEPOSIT",
          • "isInternationalTransfer": false,
          • "isRejected": false,
          • "counterPartId": "fb7b822f1b57855f55e11383"
          },
        • "isComing": false,
        • "aggregator": {
          • "id": "12a22"
          },
        • "isNonAnalysed": false
        }
      ]
    },
  • "incidents": {
    • "paymentRejections": {
      • "totalAmount": 134.5,
      • "totalFeesAmount": 0,
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ],
      • "feesTransactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      },
    • "checkRejections": {
      • "totalAmount": 0,
      • "totalFeesAmount": 0,
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ],
      • "feesTransactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      },
    • "interventionFees": {
      • "totalAmount": 0,
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      }
    },
  • "overdraft": {
    • "minimumBalanceReached": -503,
    • "duration": 12,
    • "fees": {
      • "totalAmount": 0,
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      }
    },
  • "heavyFailures": {
    • "directRecoveryOfDebt": {
      • "totalAmount": 0,
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      },
    • "bankAccountSeizure": {
      • "totalAmount": 0,
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ]
      }
    },
  • "wageAdvance": {
    • "totalAmount": 0,
    • "transactions": [
      • {
        • "id": "fb7b822f1b57855f55e11383",
        • "accountId": "5c336adbf675152f00549d6f",
        • "description": "Expenses",
        • "dates": {
          • "debitedAt": "2019-06-30T22:00:00.000Z",
          • "bookedAt": "2019-08-24T14:15:22Z"
          },
        • "amount": 10000,
        • "currency": "EUR",
        • "enrichments": {
          • "category": "ALLOWANCE",
          • "type": "CASH_DEPOSIT",
          • "isInternationalTransfer": false,
          • "isRejected": false,
          • "counterPartId": "fb7b822f1b57855f55e11383"
          },
        • "isComing": false,
        • "aggregator": {
          • "id": "12a22"
          },
        • "isNonAnalysed": false
        }
      ]
    }
}

Cash flows

Returns customer cash flow

path Parameters
id
required
string

ID of the customer to fetch

analysisId
required
string

ID of the analysis to fetch

Responses

Response Schema: application/json
Array of objects (Cashflow) [ items ]
object

details about the pagination of returned resources

Response Schema: application/json
object
https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/credit-insights/cash-flows

Response samples

  • 200
  • 202
Content type
application/json
{
  • "resources": [
    • {
      • "type": "CASH_DEPOSIT",
      • "category": "ALLOWANCE",
      • "labelRoot": "LOAN REPAYMENTS FROM BANK X",
      • "label": "LOAN REPAYMENTS FROM BANK X - 2",
      • "totalAmount": 3630,
      • "totalRejectedAmount": 120,
      • "calendar": [
        • {
          • "month": "2020-01",
          • "amount": -218
          }
        ],
      • "transactions": [
        • {
          • "id": "fb7b822f1b57855f55e11383",
          • "accountId": "5c336adbf675152f00549d6f",
          • "description": "Expenses",
          • "dates": {
            • "debitedAt": "2019-06-30T22:00:00.000Z",
            • "bookedAt": "2019-08-24T14:15:22Z"
            },
          • "amount": 10000,
          • "currency": "EUR",
          • "enrichments": {
            • "category": "ALLOWANCE",
            • "type": "CASH_DEPOSIT",
            • "isInternationalTransfer": false,
            • "isRejected": false,
            • "counterPartId": "fb7b822f1b57855f55e11383"
            },
          • "isComing": false,
          • "aggregator": {
            • "id": "12a22"
            },
          • "isNonAnalysed": false
          }
        ],
      • "regularity": {
        • "dueDays": [
          • 0
          ],
        • "interval": {
          • "min": 28,
          • "max": 31
          },
        • "meanNumberOfDaysInInterval": 30,
        • "accuracy": 72,
        • "periodicity": "MONTHLY",
        • "repartition": "HAS_STOPPED_BEFORE_END_OF_ANALYSIS"
        }
      }
    ],
  • "pagination": {
    • "next": "string",
    • "previous": "string",
    • "first": "string",
    • "last": "string",
    • "totalPages": 0,
    • "totalResources": 0
    }
}

Score

Score attached to the analysis

Get scores

Returns the analysis score

path Parameters
id
required
string

ID of the customer to fetch

analysisId
required
string

ID of the analysis to fetch

Responses

Response Schema: application/json
object

default score with a 12-month horizon

object

default score with a 4-month horizon

Response Schema: application/json
object
https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/scores

Response samples

  • 200
  • 202
Content type
application/json
{
  • "creditScore": {
    • "version": "1.0.0",
    • "value": 1000,
    • "indicators": {
      • "livingStandard": 2,
      • "budgetManagement": 0,
      • "financialEvolution": -5
      }
    },
  • "paymentScore": {
    • "version": "0.0.1",
    • "value": 5
    }
}

Account

Bank accounts attached to a customer

Get all accounts

Get a list of customer's accounts used for the analysis

Responses

Response Schema: application/json
Array of objects (Account) [ items ]
object

details about the pagination of returned resources

https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/accounts

Response samples

  • 200
Content type
application/json
{
  • "resources": [
    • {
      • "id": "5c336adbf675152f00549d6f",
      • "type": "CHECKING",
      • "balance": 3564.5,
      • "balanceDate": "2019-06-30T22:00:00.000Z",
      • "currency": "EUR",
      • "owners": [
        • {
          • "name": "John Doe"
          }
        ],
      • "number": "1234-123456789",
      • "iban": "FR7630001007941234567890185",
      • "bic": "BDFEFR2T",
      • "name": "compte de pierre paul jacques",
      • "bank": {
        • "id": "string",
        • "logoUrl": "string",
        • "name": "string",
        • "country": "string"
        },
      • "usage": "PERSONAL",
      • "country": "FR",
      • "createdAt": "2019-08-24T14:15:22Z",
      • "updatedAt": "2019-08-24T14:15:22Z",
      • "coming": 400,
      • "details": {
        • "savings": {
          • "type": "SHORT_TERM",
          • "openedAt": "2019-06-30T22:00:00.000Z",
          • "maximumAmount": 20000,
          • "interestRate": 0.1456
          },
        • "loan": {
          • "type": "REVOLVING",
          • "amount": 10000,
          • "startDate": "2019-06-30T22:00:00.000Z",
          • "endDate": "2019-06-30T22:00:00.000Z",
          • "duration": 24,
          • "insuranceLabel": "Insurance A",
          • "payment": 10,
          • "remainingCapital": 1000,
          • "interestRate": 0.1456
          }
        },
      • "aggregator": {
        • "id": "string"
        }
      }
    ],
  • "pagination": {
    • "next": "string",
    • "previous": "string",
    • "first": "string",
    • "last": "string",
    • "totalPages": 0,
    • "totalResources": 0
    }
}

Get the daily balances

Get the daily balances for one account used for the analysis

Responses

Response Schema: application/json
Array of objects (Balance) [ items ]
object

details about the pagination of returned resources

https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/accounts/{accountId}/balances

Response samples

  • 200
Content type
application/json
{
  • "resources": [
    • {
      • "balance": 3564.5,
      • "date": "2019-06-30T22:00:00.000Z"
      }
    ],
  • "pagination": {
    • "next": "string",
    • "previous": "string",
    • "first": "string",
    • "last": "string",
    • "totalPages": 0,
    • "totalResources": 0
    }
}

Transaction

Transactions attached to a Customer's bank account

Get all transactions

Get all customer's transactions used for the analysis

Responses

Response Schema: application/json
Array of objects (Transaction) [ items ]
object

details about the pagination of returned resources

https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/transactions

Response samples

  • 200
Content type
application/json
{
  • "resources": [
    • {
      • "id": "fb7b822f1b57855f55e11383",
      • "accountId": "5c336adbf675152f00549d6f",
      • "description": "Expenses",
      • "dates": {
        • "debitedAt": "2019-06-30T22:00:00.000Z",
        • "bookedAt": "2019-08-24T14:15:22Z"
        },
      • "amount": 10000,
      • "currency": "EUR",
      • "enrichments": {
        • "category": "ALLOWANCE",
        • "type": "CASH_DEPOSIT",
        • "isInternationalTransfer": false,
        • "isRejected": false,
        • "counterPartId": "fb7b822f1b57855f55e11383"
        },
      • "isComing": false,
      • "aggregator": {
        • "id": "12a22"
        },
      • "isNonAnalysed": false
      }
    ],
  • "pagination": {
    • "next": "string",
    • "previous": "string",
    • "first": "string",
    • "last": "string",
    • "totalPages": 0,
    • "totalResources": 0
    }
}

Get all account's transactions

Get a list of customer's transactions for one account used for the analysis

Responses

Response Schema: application/json
Array of objects (Transaction) [ items ]
object

details about the pagination of returned resources

https://api.algoan.com/v2/customers/{id}/analyses/{analysisId}/accounts/{accountId}/transactions

Response samples

  • 200
Content type
application/json
{
  • "resources": [
    • {
      • "id": "fb7b822f1b57855f55e11383",
      • "accountId": "5c336adbf675152f00549d6f",
      • "description": "Expenses",
      • "dates": {
        • "debitedAt": "2019-06-30T22:00:00.000Z",
        • "bookedAt": "2019-08-24T14:15:22Z"
        },
      • "amount": 10000,
      • "currency": "EUR",
      • "enrichments": {
        • "category": "ALLOWANCE",
        • "type": "CASH_DEPOSIT",
        • "isInternationalTransfer": false,
        • "isRejected": false,
        • "counterPartId": "fb7b822f1b57855f55e11383"
        },
      • "isComing": false,
      • "aggregator": {
        • "id": "12a22"
        },
      • "isNonAnalysed": false
      }
    ],
  • "pagination": {
    • "next": "string",
    • "previous": "string",
    • "first": "string",
    • "last": "string",
    • "totalPages": 0,
    • "totalResources": 0
    }
}

Subscription

Subscription to Algoan's platform events.

Get list of webhook subscriptions

Get the list of event subscriptions.

query Parameters
filter
string
Example: filter={"eventName":"bank_details_required"}

Stringified query to filter the subscriptions list

Responses

Response Schema: application/json
Array
id
string

Unique subscription identifier

eventName
string (EventName)
Enum: "aggregation_link_required" "bank_details_required" "bank_details_fetched" "analysis_completed"

The name of the event. Details can be found in the Events section

secret
string

Secret shared between the Algoan Platform and the webhook owner

target
string

The url of the webhook that will be called when an event is emitted by the Algoan platform

status
string
Default: "ACTIVE"
Enum: "ACTIVE" "INACTIVE" "DISABLED"

Whether the webhook is active or not. ACTIVE at the creation.

https://api.algoan.com/v2/subscriptions

Response samples

  • 200
Content type
application/json
[
  • {
    • "id": "d3eddda98124fc51d8ef99bf",
    • "eventName": "aggregation_link_required",
    • "secret": "b8fb1bbf95ce861d638ff534",
    • "target": "https://your-end-point.com/webhook",
    • "status": "ACTIVE"
    }
]

Create a new webhook subscription

Create a new subscription. Allow you to subscribe your webhook to an event.

Request Body schema: application/json
eventName
required
string
Enum: "aggregation_link_required" "bank_details_required" "bank_details_fetched" "analysis_completed"

The name of the event. Details can be found in the Events section

target
required
string

The url of the webhook that will be called when an event is emitted by the Algoan platform

secret
string

Secret shared between the Algoan Platform and the webhook owner

Responses

Response Schema: application/json
id
string

Unique subscription identifier

eventName
string (EventName)
Enum: "aggregation_link_required" "bank_details_required" "bank_details_fetched" "analysis_completed"

The name of the event. Details can be found in the Events section

secret
string

Secret shared between the Algoan Platform and the webhook owner

target
string

The url of the webhook that will be called when an event is emitted by the Algoan platform

status
string
Default: "ACTIVE"
Enum: "ACTIVE" "INACTIVE" "DISABLED"

Whether the webhook is active or not. ACTIVE at the creation.

https://api.algoan.com/v2/subscriptions

Request samples

  • Payload
Content type
application/json
{
  • "target": "https://your-end-point.com/webhook",
  • "eventName": "aggregation_link_required",
  • "secret": "b8fb1bbf95ce861d638ff534"
}

Response samples

  • 201
Content type
application/json
{
  • "id": "d3eddda98124fc51d8ef99bf",
  • "eventName": "aggregation_link_required",
  • "secret": "b8fb1bbf95ce861d638ff534",
  • "target": "https://your-end-point.com/webhook",
  • "status": "ACTIVE"
}

Update a subscription

Update a webhook subscription if your webhook has been disabled.

path Parameters
subscriptionId
required
string
Example: d3eddda98124fc51d8ef99bf

The id of the subscription.

Request Body schema: application/json
status
required
string
Enum: "ACTIVE" "INACTIVE" "DISABLED"

Whether the webhook is active or not. ACTIVE at the creation.

Responses

Response Schema: application/json
id
string

Unique subscription identifier

eventName
string (EventName)
Enum: "aggregation_link_required" "bank_details_required" "bank_details_fetched" "analysis_completed"

The name of the event. Details can be found in the Events section

secret
string

Secret shared between the Algoan Platform and the webhook owner

target
string

The url of the webhook that will be called when an event is emitted by the Algoan platform

status
string
Default: "ACTIVE"
Enum: "ACTIVE" "INACTIVE" "DISABLED"

Whether the webhook is active or not. ACTIVE at the creation.

https://api.algoan.com/v2/subscriptions/{subscriptionId}

Request samples

  • Payload
Content type
application/json
{
  • "status": "ACTIVE"
}

Response samples

  • 200
Content type
application/json
{
  • "id": "d3eddda98124fc51d8ef99bf",
  • "eventName": "aggregation_link_required",
  • "secret": "b8fb1bbf95ce861d638ff534",
  • "target": "https://your-end-point.com/webhook",
  • "status": "ACTIVE"
}

Get a subscription

Get a given subscription

path Parameters
subscriptionId
required
string
Example: d3eddda98124fc51d8ef99bf

The id of the subscription.

Responses

Response Schema: application/json
id
string

Unique subscription identifier

eventName
string (EventName)
Enum: "aggregation_link_required" "bank_details_required" "bank_details_fetched" "analysis_completed"

The name of the event. Details can be found in the Events section

secret
string

Secret shared between the Algoan Platform and the webhook owner

target
string

The url of the webhook that will be called when an event is emitted by the Algoan platform

status
string
Default: "ACTIVE"
Enum: "ACTIVE" "INACTIVE" "DISABLED"

Whether the webhook is active or not. ACTIVE at the creation.

https://api.algoan.com/v2/subscriptions/{subscriptionId}

Response samples

  • 200
Content type
application/json
{
  • "id": "d3eddda98124fc51d8ef99bf",
  • "eventName": "aggregation_link_required",
  • "secret": "b8fb1bbf95ce861d638ff534",
  • "target": "https://your-end-point.com/webhook",
  • "status": "ACTIVE"
}

Delete the subscription

Delete the subscription

path Parameters
subscriptionId
required
string
Example: d3eddda98124fc51d8ef99bf

The id of the subscription.

Responses

Response Schema: application/json
id
string

Unique subscription identifier

eventName
string (EventName)
Enum: "aggregation_link_required" "bank_details_required" "bank_details_fetched" "analysis_completed"

The name of the event. Details can be found in the Events section

secret
string

Secret shared between the Algoan Platform and the webhook owner

target
string

The url of the webhook that will be called when an event is emitted by the Algoan platform

status
string
Default: "ACTIVE"
Enum: "ACTIVE" "INACTIVE" "DISABLED"

Whether the webhook is active or not. ACTIVE at the creation.

https://api.algoan.com/v2/subscriptions/{subscriptionId}

Response samples

  • 200
Content type
application/json
{
  • "id": "d3eddda98124fc51d8ef99bf",
  • "eventName": "aggregation_link_required",
  • "secret": "b8fb1bbf95ce861d638ff534",
  • "target": "https://your-end-point.com/webhook",
  • "status": "ACTIVE"
}

Event

Event related to webhooks' subscriptions

Get a list of events

Get a list of events that have been sent for a given subscription.

path Parameters
subscriptionId
required
string
Example: fb7b822f1b57855f55e11383

The id of the created subscription.

query Parameters
customerId
required
string
Example: customerId=e59484bbf9a5e17f3b1ecb2f

The id of the customer concerned by the event

lowIndex
number
Example: lowIndex=23

The index from events are requested

highIndex
number
Example: highIndex=24

The index to which events are requested

Responses

Response Schema: application/json
Array
object

Subscription properties

object

Payload sent through the webhook

time
number <timestamp>

When the webhook event has been sent

index
string

Index of the event

Array of objects (EventStatus) [ items ]

List of statuses

https://api.algoan.com/v2/subscriptions/{subscriptionId}/events

Response samples

  • 200
Content type
application/json
[
  • {
    • "subscription": {
      • "id": "d3eddda98124fc51d8ef99bf",
      • "target": "https://your-end-point.com/webhook",
      • "eventName": "aggregation_link_required"
      },
    • "payload": {
      • "customerId": "e59484bbf9a5e17f3b1ecb2f"
      },
    • "time": 1458692752567,
    • "index": 24,
    • "statuses": [
      • {
        • "name": "PROCESSED",
        • "createdAt": "2019-06-30T22:00:00.000Z"
        }
      ]
    }
]

Update an event

Update the status of an event to notify Algoan if everything went fine or not

path Parameters
subscriptionId
required
string
Example: fb7b822f1b57855f55e11383

The id of the created subscription.

eventId
required
string
Example: fb7b822f1b57855f55e11383

The id of the event to update.

Request Body schema: application/json
status
required
string
Enum: "IN_PROGRESS" "ACK" "PROCESSED" "FAILED" "ERROR" "WARNING" "CRITICAL"

Name of the status:

  • IN_PROGRESS: Algoan has just created the event and is about to call the webhook
  • ACK: The connector has acknowledged the request
  • PROCESSED: Notifies Algoan that the process has been fully completed
  • FAILED: Warns Algoan that an error occurred during the process
  • ERROR: The API did not acknowledge the request
  • WARNING: A warning email has been sent to the organization's contact
  • CRITICAL: A critical email has been sent to the organization's contact

Responses

Response Schema: application/json
object

Subscription properties

object

Payload sent through the webhook

time
number <timestamp>

When the webhook event has been sent

index
string

Index of the event

Array of objects (EventStatus) [ items ]

List of statuses

https://api.algoan.com/v2/subscriptions/{subscriptionId}/events/{eventId}

Request samples

  • Payload
Content type
application/json
{
  • "status": "PROCESSED"
}

Response samples

  • 200
Content type
application/json
{
  • "subscription": {
    • "id": "d3eddda98124fc51d8ef99bf",
    • "target": "https://your-end-point.com/webhook",
    • "eventName": "aggregation_link_required"
    },
  • "payload": {
    • "customerId": "e59484bbf9a5e17f3b1ecb2f"
    },
  • "time": 1458692752567,
  • "index": 24,
  • "statuses": [
    • {
      • "name": "PROCESSED",
      • "createdAt": "2019-06-30T22:00:00.000Z"
      }
    ]
}

Webhook

Webhook sent to your server

Event on Algoan Webhook

Notify your system about a subscribed event

header Parameters
X-Hub-Signature
required
string
Example: sha256=XXXXXXXXXXXXXXXXXX

An encrypted signature to check if the webhook comes from Algoan

Request Body schema: application/json
object

Subscription properties

object

Payload sent through the webhook

time
number <timestamp>

When the webhook event has been sent

index
string

Index of the event

Responses

Request samples

  • Payload
Content type
application/json
{
  • "subscription": {
    • "id": "d3eddda98124fc51d8ef99bf",
    • "target": "https://your-end-point.com/webhook",
    • "eventName": "aggregation_link_required"
    },
  • "payload": {
    • "customerId": "e59484bbf9a5e17f3b1ecb2f"
    },
  • "time": 1458692752567,
  • "index": 24
}