Download OpenAPI specification:Download
The following document contains the documentation of faire.ai Platform.
Please, contact us at info@faire.ai if you want to try the Platform and get the credentials to call the API in test or production environments.
Register a new person to the Platform.
personId required | string Unique identifier of a person. |
firstName required | string First name. |
lastName required | string Last name. |
emailAddress required | string <email> Email address. |
dateOfBirth required | string <date> Date of birth. |
required | object (Place of birth) |
gender | string Enum: "MALE" "FEMALE" Gender. |
citizenship required | string Citizenship represented with ISO 3166-1 alpha-2 code of the coutry. |
fiscalCode required | string Fiscal code. |
object (Address) | |
object (Address) | |
phoneNumber | string Phone number represented with E.164 standard. |
creator | string Creator of the person. Defaults to the partner identifier. |
{- "personId": "123e4567-e89b-12d3-a456-426614174000",
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "dateOfBirth": "2000-07-21",
- "placeOfBirth": {
- "city": "Rome",
- "country": "IT"
}, - "gender": "MALE",
- "citizenship": "IT",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "domicileAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "phoneNumber": "+39XXXXXXXXXX",
- "creator": "123e4567-e89b-12d3-a456-426614174000"
}
{- "personId": "123e4567-e89b-12d3-a456-426614174000",
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "dateOfBirth": "2000-07-21",
- "placeOfBirth": {
- "city": "Rome",
- "country": "IT"
}, - "gender": "MALE",
- "citizenship": "IT",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "domicileAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "phoneNumber": "+39XXXXXXXXXX",
- "creator": "123e4567-e89b-12d3-a456-426614174000"
}
Return all the data of the persons registered by the partner to the Platform.
creator | string Example: creator=123e4567-e89b-12d3-a456-426614174000 Creator of the person. |
{- "persons": [
- {
- "personId": "123e4567-e89b-12d3-a456-426614174000",
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "dateOfBirth": "2000-07-21",
- "placeOfBirth": {
- "city": "Rome",
- "country": "IT"
}, - "gender": "MALE",
- "citizenship": "IT",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "domicileAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "phoneNumber": "+39XXXXXXXXXX",
- "creator": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
Return the data of a single person registered by the partner to the Platfom.
personId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a person. |
{- "personId": "123e4567-e89b-12d3-a456-426614174000",
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "dateOfBirth": "2000-07-21",
- "placeOfBirth": {
- "city": "Rome",
- "country": "IT"
}, - "gender": "MALE",
- "citizenship": "IT",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "domicileAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "phoneNumber": "+39XXXXXXXXXX",
- "creator": "123e4567-e89b-12d3-a456-426614174000"
}
Update the data of an existing person.
personId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a person. |
personId required | string Unique identifier of a person. |
firstName required | string First name. |
lastName required | string Last name. |
emailAddress required | string <email> Email address. |
dateOfBirth required | string <date> Date of birth. |
required | object (Place of birth) |
gender | string Enum: "MALE" "FEMALE" Gender. |
citizenship required | string Citizenship represented with ISO 3166-1 alpha-2 code of the coutry. |
fiscalCode required | string Fiscal code. |
object (Address) | |
object (Address) | |
phoneNumber | string Phone number represented with E.164 standard. |
creator | string Creator of the person. Defaults to the partner identifier. |
{- "personId": "123e4567-e89b-12d3-a456-426614174000",
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "dateOfBirth": "2000-07-21",
- "placeOfBirth": {
- "city": "Rome",
- "country": "IT"
}, - "gender": "MALE",
- "citizenship": "IT",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "domicileAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "phoneNumber": "+39XXXXXXXXXX",
- "creator": "123e4567-e89b-12d3-a456-426614174000"
}
{- "personId": "123e4567-e89b-12d3-a456-426614174000",
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "dateOfBirth": "2000-07-21",
- "placeOfBirth": {
- "city": "Rome",
- "country": "IT"
}, - "gender": "MALE",
- "citizenship": "IT",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "domicileAddress": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "phoneNumber": "+39XXXXXXXXXX",
- "creator": "123e4567-e89b-12d3-a456-426614174000"
}
Delete a person and all its data persisted on the Platform.
personId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a person. |
{- "errors": [
- {
- "code": "RESOURCE_NOT_FOUND",
- "message": "Could not find person '1234'"
}
]
}
Register a new bank account of a person or business within the Platform.
accountId | string |
personId | string Unique identifier of a person. Only one of |
businessId | string Unique identifier of a business. Only one of |
financialInstitutionName | string |
iban required | string |
currency | string |
bookedBalance | string Booked balance. |
holders | Array of strings |
{- "accountId": "a1b2c3",
- "personId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "businessId": "e734f071-2520-4b6b-8d06-a98bed378c32",
- "financialInstitutionName": "Example Bank",
- "iban": "BE71096123456769",
- "currency": "EUR",
- "bookedBalance": "1500.00",
- "holders": [
- "holder1",
- "holder2"
]
}
{- "accountId": "a1b2c3",
- "personId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "businessId": "e734f071-2520-4b6b-8d06-a98bed378c32",
- "financialInstitutionName": "Example Bank",
- "iban": "BE71096123456769",
- "currency": "EUR",
- "bookedBalance": 1500,
- "availableBalance": 1500,
- "holders": [
- "holder1",
- "holder2"
], - "operativity": "OPERATIVE"
}
Return all the bank accounts data of a person or business registered on the Platform. Only one of the two
parameters personId
and businessId
must be specified.
personId | string Example: personId=123e4567-e89b-12d3-a456-426614174000 |
businessId | string Example: businessId=123e4567-e89b-12d3-a456-426614174000 |
{- "accounts": [
- {
- "accountId": "a1b2c3",
- "personId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "businessId": "e734f071-2520-4b6b-8d06-a98bed378c32",
- "financialInstitutionName": "Example Bank",
- "iban": "BE71096123456769",
- "currency": "EUR",
- "bookedBalance": 1500,
- "availableBalance": 1500,
- "holders": [
- "holder1",
- "holder2"
], - "operativity": "OPERATIVE"
}
]
}
Return all the data of a bank account.
accountId required | string Example: a1b2c3 |
{- "accountId": "a1b2c3",
- "personId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "businessId": "e734f071-2520-4b6b-8d06-a98bed378c32",
- "financialInstitutionName": "Example Bank",
- "iban": "BE71096123456769",
- "currency": "EUR",
- "bookedBalance": 1500,
- "availableBalance": 1500,
- "holders": [
- "holder1",
- "holder2"
], - "operativity": "OPERATIVE"
}
Set the operativity of the bank account.
accountId required | string Example: a1b2c3 |
operativity required | string Describes account operativity.
|
availableBalance | string Available balance of the account. |
{- "operativity": "OPERATIVE",
- "availableBalance": "10.05"
}
"string"
Add a transaction to an existing bank account.
accountId required | string Example: a1b2c3 |
transactionId required | string |
bookingDate | string <date-time> |
valueDate required | string <date-time> |
currency required | string |
amount required | string |
description | string |
mainCategory | string Default: "OTHER" |
subCategory | string Default: "OTHER" |
recurrenceType required | string Enum: "NONE" "UNKNOWN" "DEFINED" Describes this transaction's recurrence.
|
recurrencePeriod | string Can be specified only if |
merchantName | string |
mcc | string = 4 characters The merchant category code |
{- "transactionId": "121212",
- "bookingDate": "2021-01-21T08:17:06.432Z",
- "valueDate": "2021-01-21T08:17:06.432Z",
- "currency": "EUR",
- "amount": "22.0",
- "description": "Rent bill",
- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategory": "BILLS",
- "recurrenceType": "DEFINED",
- "recurrencePeriod": "P1M",
- "merchantName": "Merchant",
- "mcc": "0742"
}
{- "accountId": "a1b2c3",
- "transactionId": "121212",
- "bookingDate": "2021-01-21T08:17:06.432",
- "valueDate": "2021-01-21T08:17:06.432",
- "currency": "EUR",
- "amount": 150,
- "description": "Car rent bill",
- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategory": "BILLS",
- "recurrenceType": "DEFINED",
- "recurrencePeriod": "PT10H",
- "merchantName": "Merchant",
- "mcc": "0742"
}
Return all the transactions of the bank account(s) specified by accountId
parameter.
accountId required | Array of strings Example: a1b2c3 |
{- "transactions": [
- {
- "accountId": "a1b2c3",
- "transactionId": "121212",
- "bookingDate": "2021-01-21T08:17:06.432",
- "valueDate": "2021-01-21T08:17:06.432",
- "currency": "EUR",
- "amount": 150,
- "description": "Car rent bill",
- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategory": "BILLS",
- "recurrenceType": "DEFINED",
- "recurrencePeriod": "PT10H",
- "merchantName": "Merchant",
- "mcc": "0742"
}
]
}
Set/Update the recurrency of a transaction.
accountId required | string Example: a1b2c2 |
transactionId required | string Example: 121212 |
recurrenceType required | string Enum: "NONE" "UNKNOWN" "DEFINED" Describes this transaction's recurrence.
|
recurrencePeriod | string |
{- "recurrenceType": "DEFINED",
- "recurrencePeriod": "P1M"
}
"string"
Set/Update the category of a transaction.
accountId required | string Example: a1b2c3 |
transactionId required | string Example: 121212 |
mainCategory required | string Main category of the transaction. If both mainCategory and subCategory are not provided, automatic categorisation will be triggered. If only one of mainCategory and subCategory is provided, the request will fail. If both mainCategory and subCategory are provided, the request will succeed and categorisation won't be triggered. |
subCategory required | string Sub-category of the transaction. |
{- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategory": "BILLS"
}
"string"
Return the list of all the categories that can be assigned to a transaction. If no owningEntityId
is
specified, the operation returns all the categories of a personal account.
owningEntityId | string Example: owningEntityId=PERSON,BUSINESS |
{- "categories": [
- {
- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategories": [
- "BILLS"
]
}
]
}
Initialize a new account connection for a given person.
Account connection parameters.
personId | string Identifier of the person |
onSuccessUrl | string Customer redirect link for successful connection |
onFailureUrl | string Customer redirect link for failed connection |
{- "personId": "b14e56eb-efd1-459e-aba9-1c01faf947a1",
}
{- "accountConnectionId": "c9782679-33d6-4d43-8929-a11d9ac54480",
- "status": "INITIALIZED",
- "connectedAccounts": [
- {
- "accountId": "da5a29a8-4a5b-4faa-8d7c-9d0669f8e076"
}
], - "createdAt": "2022-07-27T10:22:26.933914",
- "personId": "b14e56eb-efd1-459e-aba9-1c01faf947a1",
}
{- "accountConnections": [
- {
- "accountConnectionId": "c9782679-33d6-4d43-8929-a11d9ac54480",
- "status": "INITIALIZED",
- "connectedAccounts": [
- {
- "accountId": "da5a29a8-4a5b-4faa-8d7c-9d0669f8e076"
}
], - "createdAt": "2022-07-27T10:22:26.933914",
- "personId": "b14e56eb-efd1-459e-aba9-1c01faf947a1",
}
]
}
Return an account connection given its identifier.
id required | string Account connection identifier |
{- "accountConnectionId": "c9782679-33d6-4d43-8929-a11d9ac54480",
- "status": "INITIALIZED",
- "connectedAccounts": [
- {
- "accountId": "da5a29a8-4a5b-4faa-8d7c-9d0669f8e076"
}
], - "createdAt": "2022-07-27T10:22:26.933914",
- "personId": "b14e56eb-efd1-459e-aba9-1c01faf947a1",
}
Return the KPIs of an account or a person.
By specifying atReferenceDate
query parameter, the operation returns all KPIs at reference date.
Note. Either accountId
or personId
or businessId
must be specified in the request.
personId | string Unique identifier of the person to retrieve the KPI of. |
accountId | string Unique identifier of the account to retrieve the KPIs of. |
businessId | string Unique identifier of the business to retrieve the KPIs of. |
kpi | string Example: kpi=MONTHLY_TOTAL_OUTFLOW_MEAN Name of the KPI to filter by. |
atReferenceDate | string <date> Example: atReferenceDate=2021-12-22 Reference date for which the KPIs are requested. |
{- "kpis": [
- {
- "kpi": "AVERAGE_BALANCE",
- "value": "700.00",
- "referenceTimestamp": "2021-03-27T23:59:59.999+0000",
- "status": "ALL_DATA_PROCESSED"
}
]
}
Return the list of all the KPIs that the Platform provides for persons and accounts grouped by the following categories:
To know the list of the KPIs, please, contact us at info@faire.ai.
{- "kpis": [
- {
- "name": "PROBABILITY_OF_DEFAULT",
- "description": "probability of default of the account",
- "category": "ACCOUNT_CHARACTERIZATION_INDICATORS",
- "types": [
- "ACCOUNT",
- "PERSON"
]
}
]
}
Return the monitoring KPIs of a business.
businessId required | string Identifier of the business to retrieve the monitoring KPIs of. |
atReferenceDate | string <date> Example: atReferenceDate=2021-12-22 Reference date of requested KPIs. Default is the current date. |
{- "kpis": [
- {
- "kpi": "AVERAGE_BALANCE",
- "value": "700.00",
- "referenceTimestamp": "2021-03-27T23:59:59.999+0000",
- "status": "ALL_DATA_PROCESSED"
}
]
}
Create a new loan product in the Platform.
name required | string Loan product name |
currency required | string Currency of the loan product |
status required | string Enum: "ACTIVE" "INACTIVE" Status of the loan product |
required | Array of objects (Contition) |
Array of objects (Fee) | |
object (Activation) | |
tags | Array of strings Tags of the loan product |
financialInstitution required | string The name of the financial institution for which the loan product has been created |
loanPurposes | Array of strings (Loan purpose) Items Enum: "INVESTMENT" "LIQUIDITY" "PURCHASE" |
{- "name": "Fast loan",
- "currency": "EUR",
- "status": "ACTIVE",
- "conditions": [
- {
- "lowerBound": "700",
- "upperBound": "2000",
- "lowerInclusive": true,
- "upperInclusive": true,
- "numberOfInstalments": 5,
- "annualPercentageRate": "0.35"
}
], - "fees": [
- {
- "description": "Annual fee",
- "type": "ANNUAL",
- "amount": "5",
- "amountType": "FLAT"
}
], - "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}, - "tags": [
- "string"
], - "financialInstitution": "Faire Bank",
- "loanPurposes": [
- "INVESTMENT"
]
}
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Fast loan",
- "currency": "EUR",
- "status": "ACTIVE",
- "conditions": [
- {
- "lowerBound": "700",
- "upperBound": "2000",
- "lowerInclusive": true,
- "upperInclusive": true,
- "numberOfInstalments": 5,
- "annualPercentageRate": "0.35"
}
], - "fees": [
- {
- "description": "Annual fee",
- "type": "ANNUAL",
- "amount": "5",
- "amountType": "FLAT"
}
], - "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}, - "tags": [
- "string"
], - "financialInstitution": "Faire Bank",
- "loanPurposes": [
- "INVESTMENT"
]
}
Return all the loan products created by the partner in the Platform.
loanProductStatus | string Enum: "ACTIVE" "INACTIVE" Example: loanProductStatus=ACTIVE The status of th loan product |
tag | Array of strings Example: tag=tag1,tag2 Specify multiple tags to filter loan products, separating them with commas. Only loan products with all specified tags will be returned. |
loanPurposes | Array of strings Items Enum: "PURCHASE" "LIQUIDITY" "INVESTMENT" Example: loanPurposes=PURCHASE,LIQUIDITY List of purposes to filter loan products by purpose. If more than one purpose is specified, then the operation returns the loan products that have at least one of them. Values are comma-separated. |
{- "loanProducts": [
- {
- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Fast loan",
- "currency": "EUR",
- "status": "ACTIVE",
- "conditions": [
- {
- "lowerBound": "700",
- "upperBound": "2000",
- "lowerInclusive": true,
- "upperInclusive": true,
- "numberOfInstalments": 5,
- "annualPercentageRate": "0.35"
}
], - "fees": [
- {
- "description": "Annual fee",
- "type": "ANNUAL",
- "amount": "5",
- "amountType": "FLAT"
}
], - "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}, - "tags": [
- "string"
], - "financialInstitution": "Faire Bank",
- "loanPurposes": [
- "INVESTMENT"
]
}
]
}
Return a loan product by its unique identifier.
loanProductId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a loan product. |
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Fast loan",
- "currency": "EUR",
- "status": "ACTIVE",
- "conditions": [
- {
- "lowerBound": "700",
- "upperBound": "2000",
- "lowerInclusive": true,
- "upperInclusive": true,
- "numberOfInstalments": 5,
- "annualPercentageRate": "0.35"
}
], - "fees": [
- {
- "description": "Annual fee",
- "type": "ANNUAL",
- "amount": "5",
- "amountType": "FLAT"
}
], - "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}, - "tags": [
- "string"
], - "financialInstitution": "Faire Bank",
- "loanPurposes": [
- "INVESTMENT"
]
}
Update a loan product. The loan product can be updated if is not active or activated in the past.
loanProductId required | string <uuid> |
name required | string Loan product name |
required | Array of objects (Contition) |
Array of objects (Fee) | |
object (Activation) |
{- "name": "Fast loan",
- "conditions": [
- {
- "lowerBound": "700",
- "upperBound": "2000",
- "lowerInclusive": true,
- "upperInclusive": true,
- "numberOfInstalments": 5,
- "annualPercentageRate": "0.35"
}
], - "fees": [
- {
- "description": "Annual fee",
- "type": "ANNUAL",
- "amount": "5",
- "amountType": "FLAT"
}
], - "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}
}
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Fast loan",
- "currency": "EUR",
- "status": "ACTIVE",
- "conditions": [
- {
- "lowerBound": "700",
- "upperBound": "2000",
- "lowerInclusive": true,
- "upperInclusive": true,
- "numberOfInstalments": 5,
- "annualPercentageRate": "0.35"
}
], - "fees": [
- {
- "description": "Annual fee",
- "type": "ANNUAL",
- "amount": "5",
- "amountType": "FLAT"
}
], - "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}, - "tags": [
- "string"
], - "financialInstitution": "Faire Bank",
- "loanPurposes": [
- "INVESTMENT"
]
}
Change loan product scheduled activation.
loanProductId required | string |
object (Activation) |
{- "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}
}
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Fast loan",
- "currency": "EUR",
- "status": "ACTIVE",
- "conditions": [
- {
- "lowerBound": "700",
- "upperBound": "2000",
- "lowerInclusive": true,
- "upperInclusive": true,
- "numberOfInstalments": 5,
- "annualPercentageRate": "0.35"
}
], - "fees": [
- {
- "description": "Annual fee",
- "type": "ANNUAL",
- "amount": "5",
- "amountType": "FLAT"
}
], - "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}, - "tags": [
- "string"
], - "financialInstitution": "Faire Bank",
- "loanPurposes": [
- "INVESTMENT"
]
}
Given the amount and/or the number of instalments, return the monthly payments for a loan product.
loanProductId required | string |
amountValue required | string Example: amountValue=1000 |
numberOfMonthlyInstalments | integer Example: numberOfMonthlyInstalments=6 |
{- "loanSimulations": [
- {
- "numberOfInstalments": 7,
- "grossAnnualRate": 6.83,
- "instalments": [
- {
- "amount": 34.26
}
]
}
]
}
Changes the status of a given loan product.
loanProductId required | string |
status | string Enum: "ACTIVE" "INACTIVE" Status of the loan product |
{- "status": "ACTIVE"
}
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Fast loan",
- "currency": "EUR",
- "status": "ACTIVE",
- "conditions": [
- {
- "lowerBound": "700",
- "upperBound": "2000",
- "lowerInclusive": true,
- "upperInclusive": true,
- "numberOfInstalments": 5,
- "annualPercentageRate": "0.35"
}
], - "fees": [
- {
- "description": "Annual fee",
- "type": "ANNUAL",
- "amount": "5",
- "amountType": "FLAT"
}
], - "scheduledActivation": {
- "start": "2022-04-14T15:30:19Z",
- "end": "2022-05-08T15:30:19Z"
}, - "tags": [
- "string"
], - "financialInstitution": "Faire Bank",
- "loanPurposes": [
- "INVESTMENT"
]
}
Create a new loan.
loanId required | string <uuid> Unique identifier of a loan |
personId required | string Unique identifier of a person |
loanProductId required | string Unique identifier of a loan product |
amount required | string The amount of the loan |
currency required | string The currency of the loan |
numberOfInstalments required | number The number of the instalments for the loan |
{- "loanId": "4049ab70-7a61-11eb-9439-0242ac130002",
- "personId": "a1b2c3",
- "loanProductId": "4049ab70-7a61-11eb-9439-0242ac130011",
- "amount": "1000",
- "currency": "EUR",
- "numberOfInstalments": 6
}
{- "loanId": "4049ab70-7a61-11eb-9439-0242ac130002",
- "personId": "a1b2c3",
- "amount": 1000,
- "numberOfInstalments": 6,
- "loanStatus": "CREATED",
- "instalments": [
- {
- "amount": 130.66,
- "dueDate": "2031-01-21",
- "paidAt": "2022-05-05T12:12:13.124Z"
}
]
}
Return all the loans created by the partner.
personId | string Example: personId=a1b2c3 Unique identifier of a person. |
loanStatus | string Enum: "CLOSED" "REJECTED" "DEFAULTING" "CANCELLED" "DISBURSED" "APPROVED" "CREATED" Status of the loan. |
{- "loans": [
- {
- "loanId": "4049ab70-7a61-11eb-9439-0242ac130002",
- "personId": "a1b2c3",
- "amount": 1000,
- "numberOfInstalments": 6,
- "loanStatus": "CREATED",
- "instalments": [
- {
- "amount": 130.66,
- "dueDate": "2031-01-21",
- "paidAt": "2022-05-05T12:12:13.124Z"
}
]
}
]
}
Return a loan by its unique identifier.
loanId required | string Example: d4618120-96d1-11eb-a8b3-0242ac130009 Unique identifier of a loan. |
{- "loanId": "4049ab70-7a61-11eb-9439-0242ac130002",
- "personId": "a1b2c3",
- "amount": 1000,
- "numberOfInstalments": 6,
- "loanStatus": "CREATED",
- "instalments": [
- {
- "amount": 130.66,
- "dueDate": "2031-01-21",
- "paidAt": "2022-05-05T12:12:13.124Z"
}
]
}
Update the data of an existing loan.
loanId required | string Example: d4618120-96d1-11eb-a8b3-0242ac130009 Unique identifier of a loan. |
status | string Enum: "CLOSED" "REJECTED" "DEFAULTING" "CANCELLED" "DISBURSED" "APPROVED" "CREATED" The status of the loan |
amount | string The amount of the loan that can be provided only when the status is |
numberOfInstalments | integer The number of instalments for the loan that can be provided only when the status
is |
instalmentsDueDates | Array of strings <date> Instalments due dates of the loan that can be provided only when the status
is |
{- "status": "CREATED",
- "amount": "1000",
- "numberOfInstalments": 6,
- "instalmentsDueDates": [
- "2031-01-21",
- "2031-02-21",
- "2031-03-21",
- "2031-04-21",
- "2031-05-21",
- "2031-06-21"
]
}
{- "loanId": "4049ab70-7a61-11eb-9439-0242ac130002",
- "personId": "a1b2c3",
- "amount": 1000,
- "numberOfInstalments": 6,
- "loanStatus": "CREATED",
- "instalments": [
- {
- "amount": 130.66,
- "dueDate": "2031-01-21",
- "paidAt": "2022-05-05T12:12:13.124Z"
}
]
}
Change the status of an instalment.
loanId required | string Example: d4618120-96d1-11eb-a8b3-0242ac130009 Unique identifier of a loan. |
instalmentReference required | string Example: 2031-02-21 Instalment due date. |
status required | string Enum: "NEW" "PENDING" "PAID" "DEFAULT" The status of the repayment |
paid | string <date-time> Must be provided if status of the loan is |
{- "status": "PAID",
- "paid": "2022-05-05T12:12:13.124Z"
}
{- "loanId": "4049ab70-7a61-11eb-9439-0242ac130002",
- "personId": "a1b2c3",
- "amount": 1000,
- "numberOfInstalments": 6,
- "loanStatus": "CREATED",
- "instalments": [
- {
- "amount": 130.66,
- "dueDate": "2031-01-21",
- "paidAt": "2022-05-05T12:12:13.124Z"
}
]
}
Main Category |
Subcategory |
Income |
Expense |
---|---|---|---|
BILLS_SUBSCRIPTIONS | BILLS | false | true |
INTERNET_PHONE | false | true | |
OTHER | false | true | |
SUBSCRIPTIONS | false | true | |
CREDIT_CARDS | CREDIT_CARDS | false | true |
OTHER | false | true | |
EATING_OUT | COFFEE_SHOPS | false | true |
OTHER | false | true | |
RESTAURANTS | false | true | |
TAKEAWAY_RESTAURANTS | false | true | |
EDUCATION | COURSES | false | true |
EDUCATIONAL_MATERIALS | false | true | |
KINDERGARTEN | false | true | |
OTHER | false | true | |
SCHOOLS | false | true | |
UNIVERSITIES | false | true | |
HEALTH_WELLNESS | AID_EXPENSES | false | true |
DRUGS | false | true | |
GYMS | false | true | |
MEDICAL_EXPENSES | false | true | |
OTHER | false | true | |
SPORT | false | true | |
WELLNESS_RELAX | false | true | |
HOUSING_FAMILY | APPLIANCES | false | true |
BABY_SITTING | false | true | |
CHILDHOOD | false | true | |
CONDO_EXPENSES | false | true | |
FURNITURE | false | true | |
GROCERIES | false | true | |
INSURANCES | true | true | |
LAUNDRY | false | true | |
MAINTENANCE_RENOVATION | false | true | |
NOURISHMENT | true | true | |
OTHER | false | true | |
RENTS | false | true | |
SERVANTS | false | true | |
VETERINARY | false | true | |
LEISURE | BOOKS | false | true |
CINEMA | false | true | |
CLUB_ASSOCIATIONS | false | true | |
GAMBLING | false | true | |
MAGAZINES_NEWSPAPERS | false | true | |
MOVIES_MUSICS | false | true | |
MUSEUMS_PARKS | false | true | |
OTHER | false | true | |
SPORT_EVENTS | false | true | |
THEATERS_CONCERTS | false | true | |
VIDEOGAMES | false | true | |
MORTGAGES_LOANS | INSTALLMENT_PAYMENTS | false | true |
LOANS | true | true | |
MORTGAGES | false | true | |
OTHER | false | true | |
OTHER | CASH | true | true |
CHECKS | true | true | |
OTHER | true | true | |
PROFITS | OTHER | true | false |
PROFITS | true | false | |
SHOPPING | ACCESSORIZE | false | true |
CLOTHING | false | true | |
FOOTWEAR | false | true | |
HI_TECH | false | true | |
JEWELLERY | false | true | |
OTHER | false | true | |
SPORT_ARTICLES | false | true | |
TAXES_SERVICES | PROFESSIONAL_ACTIVITY | false | true |
ACCOUNTANT | false | true | |
BANK_FEES | false | true | |
DEFAULT_PAYMENTS | false | true | |
EXPENSE_LEDGER | false | true | |
FINES | false | true | |
LEGAL_EXPENSES | false | true | |
MONEY_ORDERS | false | true | |
OFFICE | false | true | |
OTHER | false | true | |
PROFIT_DEDUCTION | false | true | |
TAXES | false | true | |
TRANSFERS | RENT_INCOMES | true | false |
GIFTS_DONATIONS | true | true | |
BANK_TRANSFERS | true | true | |
SAVINGS | false | true | |
INVESTMENTS | false | true | |
REFUNDS | true | false | |
OTHER | true | true | |
WINNINGS | true | false | |
TRAVELS_TRANSPORTATION | BUSES | false | true |
CAR_BIKE_SHARING | false | true | |
CAR_RENTAL | false | true | |
FLIGHTS | false | true | |
FUEL | false | true | |
HOTELS | false | true | |
OTHER | false | true | |
PARKING_URBAN_TRANSPORTS | false | true | |
SHIP_FERRIES | false | true | |
TAXIS | false | true | |
TOLLS | false | true | |
TRAINS | false | true | |
TRAVELS_HOLIDAYS | false | true | |
VEHICLE_MAINTENANCE | false | true | |
WAGES | OTHER | true | false |
PENSION | true | false | |
PROFESSIONAL_COMPENSATION | true | false | |
SALARY | true | false |
Register a new business to the Platform.
businessId required | string Unique identifier of a business. |
name required | string Name of the business. |
legalForm | string Legal form of the business. |
emailAddress | string <email> Business email address. |
vatNumber | string Business VAT number. |
fiscalCode | string Business Fiscal Code. |
industry required | string Industry of the business. |
phoneNumber | string Phone number represented with E.164 standard. |
object (Address) | |
creator | string Creator of the business. Defaults to the partner identifier. |
object (Legal representative) | |
atecoCode | string ATECO code of the business. |
lastBalanceSheetDate | string <datetime> Date of the last balance sheet. |
equity | string Equity of the business. |
totalAsset | string Total asset of the business. |
netFinancialPosition | string Net financial position of the business. |
turnover | string Turnover of the business. |
ebitda | string EBITDA of the business. |
totalRevenue | string Total revenue of the business. |
personnelExpenses | string Personnel expenses of the business. |
taxesServices | string Taxes services of the business. |
billOverdue | string (Legal event type) Enum: "NO_NEGATIVE_EVENTS" "NON_RELEVANT_NEGATIVE_EVENT" "RELEVANT_NEGATIVE_EVENT" Type of a legal event associated to a business.
|
events | string (Legal event type) Enum: "NO_NEGATIVE_EVENTS" "NON_RELEVANT_NEGATIVE_EVENT" "RELEVANT_NEGATIVE_EVENT" Type of a legal event associated to a business.
|
procedures | string (Legal event type) Enum: "NO_NEGATIVE_EVENTS" "NON_RELEVANT_NEGATIVE_EVENT" "RELEVANT_NEGATIVE_EVENT" Type of a legal event associated to a business.
|
{- "businessId": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Faire.ai",
- "legalForm": "SRL",
- "emailAddress": "example@company.com",
- "vatNumber": "12345678901",
- "fiscalCode": "RSSPPP00L21H501U",
- "industry": "Software development",
- "phoneNumber": "+39XXXXXXXXXX",
- "address": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "creator": "123e4567-e89b-12d3-a456-426614174000",
- "legalRepresentative": {
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "phoneNumber": "+39XXXXXXXXXX",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeCountry": "IT"
}, - "atecoCode": "62.01",
- "lastBalanceSheetDate": "2021-12-31T23:59:59Z",
- "equity": "100000",
- "totalAsset": "1000000",
- "netFinancialPosition": "10000",
- "turnover": "1000000",
- "ebitda": "100000",
- "totalRevenue": "1000000",
- "personnelExpenses": "100000",
- "taxesServices": "10000",
- "billOverdue": "NO_NEGATIVE_EVENTS",
- "events": "NO_NEGATIVE_EVENTS",
- "procedures": "NO_NEGATIVE_EVENTS"
}
{- "businessId": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Faire.ai",
- "legalForm": "SRL",
- "emailAddress": "example@company.com",
- "vatNumber": "12345678901",
- "fiscalCode": "RSSPPP00L21H501U",
- "industry": "Software development",
- "phoneNumber": "+39XXXXXXXXXX",
- "address": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "creator": "123e4567-e89b-12d3-a456-426614174000",
- "legalRepresentative": {
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "phoneNumber": "+39XXXXXXXXXX",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeCountry": "IT"
}, - "atecoCode": "62.01",
- "lastBalanceSheetDate": "2021-12-31T23:59:59Z",
- "equity": "100000",
- "totalAsset": "1000000",
- "netFinancialPosition": "10000",
- "turnover": "1000000",
- "ebitda": "100000",
- "totalRevenue": "1000000",
- "personnelExpenses": "100000",
- "taxesServices": "10000",
- "billOverdue": "NO_NEGATIVE_EVENTS",
- "events": "NO_NEGATIVE_EVENTS",
- "procedures": "NO_NEGATIVE_EVENTS"
}
Return all the data of the businesses registered by the partner to the Platform.
creator | string Example: creator=123e4567-e89b-12d3-a456-426614174000 Creator of the business. |
vatNumber | string Example: vatNumber=12345678901 Business VAT number. |
{- "businesses": [
- {
- "businessId": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Faire.ai",
- "legalForm": "SRL",
- "emailAddress": "example@company.com",
- "vatNumber": "12345678901",
- "fiscalCode": "RSSPPP00L21H501U",
- "industry": "Software development",
- "phoneNumber": "+39XXXXXXXXXX",
- "address": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "creator": "123e4567-e89b-12d3-a456-426614174000",
- "legalRepresentative": {
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "phoneNumber": "+39XXXXXXXXXX",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeCountry": "IT"
}, - "atecoCode": "62.01",
- "lastBalanceSheetDate": "2021-12-31T23:59:59Z",
- "equity": "100000",
- "totalAsset": "1000000",
- "netFinancialPosition": "10000",
- "turnover": "1000000",
- "ebitda": "100000",
- "totalRevenue": "1000000",
- "personnelExpenses": "100000",
- "taxesServices": "10000",
- "billOverdue": "NO_NEGATIVE_EVENTS",
- "events": "NO_NEGATIVE_EVENTS",
- "procedures": "NO_NEGATIVE_EVENTS"
}
]
}
Return the data of a single business registered by the partner to the Platform.
businessId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a business. |
{- "businessId": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Faire.ai",
- "legalForm": "SRL",
- "emailAddress": "example@company.com",
- "vatNumber": "12345678901",
- "fiscalCode": "RSSPPP00L21H501U",
- "industry": "Software development",
- "phoneNumber": "+39XXXXXXXXXX",
- "address": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "creator": "123e4567-e89b-12d3-a456-426614174000",
- "legalRepresentative": {
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "phoneNumber": "+39XXXXXXXXXX",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeCountry": "IT"
}, - "atecoCode": "62.01",
- "lastBalanceSheetDate": "2021-12-31T23:59:59Z",
- "equity": "100000",
- "totalAsset": "1000000",
- "netFinancialPosition": "10000",
- "turnover": "1000000",
- "ebitda": "100000",
- "totalRevenue": "1000000",
- "personnelExpenses": "100000",
- "taxesServices": "10000",
- "billOverdue": "NO_NEGATIVE_EVENTS",
- "events": "NO_NEGATIVE_EVENTS",
- "procedures": "NO_NEGATIVE_EVENTS"
}
Update the data of an existing business.
businessId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a business. |
businessId required | string Unique identifier of a business. |
name required | string Name of the business. |
legalForm | string Legal form of the business. |
emailAddress | string <email> Business email address. |
vatNumber | string Business VAT number. |
fiscalCode | string Business Fiscal Code. |
industry required | string Industry of the business. |
phoneNumber | string Phone number represented with E.164 standard. |
object (Address) | |
creator | string Creator of the business. Defaults to the partner identifier. |
object (Legal representative) | |
atecoCode | string ATECO code of the business. |
lastBalanceSheetDate | string <datetime> Date of the last balance sheet. |
equity | string Equity of the business. |
totalAsset | string Total asset of the business. |
netFinancialPosition | string Net financial position of the business. |
turnover | string Turnover of the business. |
ebitda | string EBITDA of the business. |
totalRevenue | string Total revenue of the business. |
personnelExpenses | string Personnel expenses of the business. |
taxesServices | string Taxes services of the business. |
billOverdue | string (Legal event type) Enum: "NO_NEGATIVE_EVENTS" "NON_RELEVANT_NEGATIVE_EVENT" "RELEVANT_NEGATIVE_EVENT" Type of a legal event associated to a business.
|
events | string (Legal event type) Enum: "NO_NEGATIVE_EVENTS" "NON_RELEVANT_NEGATIVE_EVENT" "RELEVANT_NEGATIVE_EVENT" Type of a legal event associated to a business.
|
procedures | string (Legal event type) Enum: "NO_NEGATIVE_EVENTS" "NON_RELEVANT_NEGATIVE_EVENT" "RELEVANT_NEGATIVE_EVENT" Type of a legal event associated to a business.
|
{- "businessId": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Faire.ai",
- "legalForm": "SRL",
- "emailAddress": "example@company.com",
- "vatNumber": "12345678901",
- "fiscalCode": "RSSPPP00L21H501U",
- "industry": "Software development",
- "phoneNumber": "+39XXXXXXXXXX",
- "address": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "creator": "123e4567-e89b-12d3-a456-426614174000",
- "legalRepresentative": {
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "phoneNumber": "+39XXXXXXXXXX",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeCountry": "IT"
}, - "atecoCode": "62.01",
- "lastBalanceSheetDate": "2021-12-31T23:59:59Z",
- "equity": "100000",
- "totalAsset": "1000000",
- "netFinancialPosition": "10000",
- "turnover": "1000000",
- "ebitda": "100000",
- "totalRevenue": "1000000",
- "personnelExpenses": "100000",
- "taxesServices": "10000",
- "billOverdue": "NO_NEGATIVE_EVENTS",
- "events": "NO_NEGATIVE_EVENTS",
- "procedures": "NO_NEGATIVE_EVENTS"
}
{- "businessId": "123e4567-e89b-12d3-a456-426614174000",
- "name": "Faire.ai",
- "legalForm": "SRL",
- "emailAddress": "example@company.com",
- "vatNumber": "12345678901",
- "fiscalCode": "RSSPPP00L21H501U",
- "industry": "Software development",
- "phoneNumber": "+39XXXXXXXXXX",
- "address": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "creator": "123e4567-e89b-12d3-a456-426614174000",
- "legalRepresentative": {
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "phoneNumber": "+39XXXXXXXXXX",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeCountry": "IT"
}, - "atecoCode": "62.01",
- "lastBalanceSheetDate": "2021-12-31T23:59:59Z",
- "equity": "100000",
- "totalAsset": "1000000",
- "netFinancialPosition": "10000",
- "turnover": "1000000",
- "ebitda": "100000",
- "totalRevenue": "1000000",
- "personnelExpenses": "100000",
- "taxesServices": "10000",
- "billOverdue": "NO_NEGATIVE_EVENTS",
- "events": "NO_NEGATIVE_EVENTS",
- "procedures": "NO_NEGATIVE_EVENTS"
}
Delete a business and all its data persisted on the Platform.
businessId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a business. |
{- "errors": [
- {
- "code": "RESOURCE_NOT_FOUND",
- "message": "Could not find person '1234'"
}
]
}
Return the data of a business by its VAT number.
vatNumber required | string Example: vatNumber=12345678901 Business VAT number. |
{- "name": "Faire.ai",
- "legalForm": "SRL",
- "emailAddress": "example@company.com",
- "vatNumber": "12345678901",
- "fiscalCode": "RSSPPP00L21H501U",
- "industry": "Software development",
- "phoneNumber": "+39XXXXXXXXXX",
- "address": {
- "line1": "3972 Eagles Nest Drive",
- "line2": "Apt. 123",
- "postalCode": "00152",
- "city": "Placerville",
- "country": "IT",
- "state": "Italy"
}, - "creator": "123e4567-e89b-12d3-a456-426614174000",
- "legalRepresentative": {
- "firstName": "John",
- "lastName": "Doe",
- "emailAddress": "john.doe@example.com",
- "phoneNumber": "+39XXXXXXXXXX",
- "fiscalCode": "RSSPPP00L21H501U",
- "homeCountry": "IT"
}, - "atecoCode": "62.01",
- "lastBalanceSheetDate": "2021-12-31T23:59:59Z",
- "equity": "100000",
- "totalAsset": "1000000",
- "netFinancialPosition": "10000",
- "turnover": "1000000",
- "ebitda": "100000",
- "totalRevenue": "1000000",
- "personnelExpenses": "100000",
- "taxesServices": "10000",
- "billOverdue": "NO_NEGATIVE_EVENTS",
- "events": "NO_NEGATIVE_EVENTS",
- "procedures": "NO_NEGATIVE_EVENTS"
}