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.
The API use OpenID Connect to authenticate and authorize the requests.
Using curl
, getting a token can be done calling the following endpoint with:
curl -X POST https://platform-dev.faire.ai/openid-connect/token \
-H 'content-type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials&client_id=<CLIENT_ID>&client_secret=<SECRET>
where CLIENT_ID
and SECRET
are the partner credentials provided by faire.ai.
Security Scheme Type | Open ID Connect |
---|---|
Connect URL | https://faireai-platform-docs.s3.eu-central-1.amazonaws.com/openid-dev-configuration.html |
Register a new person to the Platform.
email profile
) 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. |
placeOfBirth required | object (Place of birth) |
gender | string Enum: "MALE" "FEMALE" Gender. |
citizenship required | string 2 characters Citizenship represented with ISO 3166-1 alpha-2 code of the coutry. |
fiscalCode required | string Fiscal code. |
homeAddress | object (Address) |
domicileAddress | object (Address) |
phoneNumber | string Phone number represented with E.164 standard. |
Person created.
Error occurred.
Development environment
Production environment
{- "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"
}
{- "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"
}
Return all the data of the persons registered by the partner to the Platform.
email profile
) Persons retrieved.
Error occurred.
Development environment
Production environment
{- "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"
}
]
}
Return the data of a single person registered by the partner to the Platfom.
email profile
) personId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a person. |
Person retrieved.
Error occurred.
Development environment
Production environment
{- "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"
}
Update the data of an existing person.
email profile
) 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. |
placeOfBirth required | object (Place of birth) |
gender | string Enum: "MALE" "FEMALE" Gender. |
citizenship required | string 2 characters Citizenship represented with ISO 3166-1 alpha-2 code of the coutry. |
fiscalCode required | string Fiscal code. |
homeAddress | object (Address) |
domicileAddress | object (Address) |
phoneNumber | string Phone number represented with E.164 standard. |
Person's data updated.
Error occurred.
Development environment
Production environment
{- "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"
}
{- "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"
}
Delete a person and all its data persisted on the Platform.
email profile
) personId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a person. |
Person has been deleted.
Error occurred.
Development environment
Production environment
{- "errors": [
- {
- "code": "PERSON_NOT_FOUND",
- "message": "Could not find person '1234'"
}
]
}
Register a new bank account of a person within the Platform.
email profile
) accountId | string |
personId | string UUID value |
iban | string |
currency | string |
bookedBalance | string Booked balance. |
holders | Array of strings |
Account created
Error occurred.
Development environment
Production environment
{- "accountId": "a1b2c3",
- "personId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "iban": "BE71096123456769",
- "currency": "EUR",
- "bookedBalance": "1500.00",
- "holders": [
- "holder1",
- "holder2"
]
}
{- "accountId": "a1b2c3",
- "personId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "iban": "BE71096123456769",
- "currency": "EUR",
- "bookedBalance": "1500.00",
- "holders": [
- "holder1",
- "holder2"
], - "operativity": "OPERATIVE"
}
Return all the bank accounts data of a person registered on the Platform.
email profile
) personId required | string Example: personId=123e4567-e89b-12d3-a456-426614174000 |
Account
Error occurred.
Development environment
Production environment
{- "accounts": [
- {
- "accountId": "a1b2c3",
- "personId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "iban": "BE71096123456769",
- "currency": "EUR",
- "bookedBalance": "1500.00",
- "holders": [
- "holder1",
- "holder2"
], - "operativity": "OPERATIVE"
}
]
}
Return all the data of a bank account.
email profile
) accountId required | string Example: a1b2c3 |
Account created
Error occurred.
Development environment
Production environment
{- "accountId": "a1b2c3",
- "personId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "iban": "BE71096123456769",
- "currency": "EUR",
- "bookedBalance": "1500.00",
- "holders": [
- "holder1",
- "holder2"
], - "operativity": "OPERATIVE"
}
Set the operativity of the bank account.
email profile
) accountId required | string Example: a1b2c3 |
operativity required | string Describes account operativity.
|
Account operativity updated
Error occurred.
Development environment
Production environment
{- "operativity": "OPERATIVE"
}
"string"
Delete a bank account and all its data.
email profile
) accountId required | string Example: a1b2c3 |
Account deleted
Error occurred.
Development environment
Production environment
"string"
Add a transaction to an existing bank account.
email profile
) accountId required | string Example: a1b2c3 |
transactionId required | string |
bookingDate | string <date-time> |
valueDate required | string <date-time> |
currency required | string |
amount required | string |
description required | 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 |
Transaction added
Bulk registration of transactions completed. This is the response in case of request with
application type application/json-seq
.
Error occurred.
Development environment
Production environment
{- "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"
}
{- "accountId": "a1b2c3",
- "partnerId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "transactionId": "121212",
- "bookingDate": "2021-01-21T08:17:06.432Z",
- "valueDate": "2021-01-21T08:17:06.432Z",
- "currency": "EUR",
- "amount": "150.00",
- "description": "Car rent bill",
- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategory": "BILLS",
- "recurrenceType": "DEFINED",
- "recurrencePeriod": "PT10H",
- "merchantName": "Merchant"
}
Return all the transactions of the bank account(s) specified by accountId
parameter.
email profile
) accountId required | Array of strings Example: a1b2c3 |
Transactions
Error occurred.
Development environment
Production environment
{- "transactions": [
- {
- "accountId": "a1b2c3",
- "partnerId": "c6a7fe4e-5fc0-11eb-ae93-0242ac130002",
- "transactionId": "121212",
- "bookingDate": "2021-01-21T08:17:06.432Z",
- "valueDate": "2021-01-21T08:17:06.432Z",
- "currency": "EUR",
- "amount": "150.00",
- "description": "Car rent bill",
- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategory": "BILLS",
- "recurrenceType": "DEFINED",
- "recurrencePeriod": "PT10H",
- "merchantName": "Merchant"
}
]
}
Set/Update the recurrency of a transaction.
email profile
) accountId required | string Example: a1b2c2 |
transactionId required | string Example: 121212 |
recurrenceType required | string Enum: "NONE" "UNKNOWN" "DEFINED" Describes this transaction's recurrence.
|
recurrencePeriod | string |
Transaction recurrence updated
Error occurred.
Development environment
Production environment
{- "recurrenceType": "DEFINED",
- "recurrencePeriod": "P1M"
}
"string"
Set/Update the category of a transaction.
email profile
) accountId required | string Example: a1b2c3 |
transactionId required | string Example: 121212 |
mainCategory required | string |
subCategory required | string |
Transaction category updated
Error occurred.
Development environment
Production environment
{- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategory": "BILLS"
}
"string"
Return the list of all the categories that can be assigned to a transaction.
email profile
) OK
Development environment
Production environment
{- "categories": [
- {
- "mainCategory": "BILLS_SUBSCRIPTIONS",
- "subCategories": [
- "BILLS",
- "INTERNET_PHONE",
- "OTHER",
- "SUBSCRIPTIONS"
]
}, - {
- "mainCategory": "CREDIT_CARDS",
- "subCategories": [
- "CREDIT_CARDS",
- "OTHER"
]
}, - {
- "mainCategory": "EATING_OUT",
- "subCategories": [
- "COFFEE_SHOPS",
- "OTHER",
- "RESTAURANTS",
- "TAKEAWAY_RESTAURANTS"
]
}, - {
- "mainCategory": "EDUCATION",
- "subCategories": [
- "COURSES",
- "EDUCATIONAL_MATERIALS",
- "KINDERGARTEN",
- "OTHER",
- "SCHOOLS",
- "UNIVERSITIES"
]
}, - {
- "mainCategory": "HEALTH_WELLNESS",
- "subCategories": [
- "AID_EXPENSES",
- "DRUGS",
- "GYMS",
- "MEDICAL_EXPENSES",
- "OTHER",
- "SPORT",
- "WELLNESS_RELAX"
]
}, - {
- "mainCategory": "HOUSING_FAMILY",
- "subCategories": [
- "APPLIANCES",
- "BABY_SITTING",
- "CHILDHOOD",
- "CONDO_EXPENSES",
- "FURNITURE",
- "GROCERIES",
- "INSURANCES",
- "LAUNDRY",
- "MAINTENANCE_RENOVATION",
- "NOURISHMENT",
- "OTHER",
- "RENTS",
- "SERVANTS",
- "VETERINARY"
]
}, - {
- "mainCategory": "LEISURE",
- "subCategories": [
- "BOOKS",
- "CINEMA",
- "CLUB_ASSOCIATIONS",
- "GAMBLING",
- "MAGAZINES_NEWSPAPERS",
- "MOVIES_MUSICS",
- "MUSEUMS_PARKS",
- "OTHER",
- "SPORT_EVENTS",
- "THEATERS_CONCERTS",
- "VIDEOGAMES"
]
}, - {
- "mainCategory": "MORTGAGES_LOANS",
- "subCategories": [
- "INSTALLMENT_PAYMENTS",
- "LOANS",
- "MORTGAGES",
- "OTHER"
]
}, - {
- "mainCategory": "OTHER",
- "subCategories": [
- "CASH",
- "CHECKS",
- "OTHER"
]
}, - {
- "mainCategory": "PROFITS",
- "subCategories": [
- "OTHER",
- "PROFITS"
]
}, - {
- "mainCategory": "SHOPPING",
- "subCategories": [
- "ACCESSORIZE",
- "CLOTHING",
- "FOOTWEAR",
- "HI_TECH",
- "JEWELLERY",
- "OTHER",
- "SPORT_ARTICLES"
]
}, - {
- "mainCategory": "TAXES_SERVICES",
- "subCategories": [
- "PROFESSIONAL_ACTIVITY",
- "ACCOUNTANT",
- "BANK_FEES",
- "DEFAULT_PAYMENTS",
- "EXPENSE_LEDGER",
- "FINES",
- "LEGAL_EXPENSES",
- "MONEY_ORDERS",
- "OFFICE",
- "OTHER",
- "PROFIT_DEDUCTION",
- "TAXES"
]
}, - {
- "mainCategory": "TRANSFERS",
- "subCategories": [
- "RENT_INCOMES",
- "GIFTS_DONATIONS",
- "BANK_TRANSFERS",
- "SAVINGS",
- "INVESTMENTS",
- "REFUNDS",
- "OTHER",
- "WINNINGS"
]
}, - {
- "mainCategory": "TRAVELS_TRANSPORTATION",
- "subCategories": [
- "BUSES",
- "CAR_BIKE_SHARING",
- "CAR_RENTAL",
- "FLIGHTS",
- "FUEL",
- "HOTELS",
- "OTHER",
- "PARKING_URBAN_TRANSPORTS",
- "SHIP_FERRIES",
- "TAXIS",
- "TOLLS",
- "TRAINS",
- "TRAVELS_HOLIDAYS",
- "VEHICLE_MAINTENANCE"
]
}, - {
- "mainCategory": "WAGES",
- "subCategories": [
- "OTHER",
- "PENSION",
- "PROFESSIONAL_COMPENSATION",
- "SALARY"
]
}
]
}
Return one or more KPIs of a person or account.
By specifying includeHistory
query parameter and a KPI name (parameter kpi
), the operation returns the
history of the KPI.
email profile
) personId | string Unique identifier of the person to retrieve the KPI of. |
accountId | string Unique identifier of the account to retrieve the KPIs of. |
kpi | string Example: kpi=MONTHLY_TOTAL_OUTFLOW_MEAN Name of the KPI to filter by. |
includeHistory | boolean If |
from | string <date> Example: from=2021-04-29 History interval start date when |
to | string <date> Example: to=2021-06-12 History interval end date when |
Retrieve KPIs succeeded.
Error occurred.
Development environment
Production environment
{- "kpis": [
- {
- "kpi": "AVERAGE_BALANCE",
- "value": "700.00",
- "referenceTimestamp": "2021-03-27T23:59:59.999+0000",
- "status": "ALL_DATA_PROCESSED",
- "isAssumed": false
}
]
}
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.
email profile
) List of available KPIs.
Retrieve KPIs failed for invalid inputs.
Error occurred.
Development environment
Production environment
{- "kpis": [
- {
- "name": "MONTHLY_TOTAL_OUTFLOW",
- "description": "Sum of monthly expenses",
- "category": "SPENDING_INDICATORS",
- "types": [
- "ACCOUNT",
- "PERSON"
]
}
]
}
Create a new loan product in the Platform.
email profile
) 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 |
conditions required | Array of objects (Contition) |
fees | Array of objects (Fee) |
scheduledActivation | object (Activation) |
Loan product created.
Error occurred.
Development environment
Production environment
{- "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"
}
}
{- "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"
}
}
Return all the loan products created by the partner in the Platform.
email profile
) loanProductStatus | string Enum: "ACTIVE" "INACTIVE" Example: loanProductStatus=ACTIVE The status of th loan product |
Loan products retrieved.
Error occurred.
Development environment
Production environment
{- "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"
}
}
]
}
Return a loan product by its unique identifier.
email profile
) loanProductId required | string <uuid> Example: 123e4567-e89b-12d3-a456-426614174000 Unique identifier of a loan product. |
Loan product retrieved.
Error occurred.
Development environment
Production environment
{- "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"
}
}
Update a loan product. The loan product can be updated if is not active or activated in the past.
email profile
) loanProductId required | string <uuid> |
name required | string Loan product name |
conditions required | Array of objects (Contition) |
fees | Array of objects (Fee) |
scheduledActivation | object (Activation) |
Loan product updated.
Error occurred.
Development environment
Production environment
{- "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"
}
}
Change loan product scheduled activation.
email profile
) loanProductId required | string |
scheduledActivation | object (Activation) |
Loan product schedule activation updated.
Error occurred.
Development environment
Production environment
{- "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"
}
}
Given the amount and/or the number of instalments, return the monthly payments for a loan product.
email profile
) loanProductId required | string |
amountValue required | string Example: amountValue=1000 |
numberOfMonthlyInstalments | integer Example: numberOfMonthlyInstalments=6 |
Loan product simaulation calculated
Error occurred.
Development environment
Production environment
{- "loanSimulations": [
- {
- "numberOfInstalments": 7,
- "grossAnnualRate": 6.83,
- "instalments": [
- {
- "amount": 34.26
}
]
}
]
}
Changes the status of a given loan product.
email profile
) loanProductId required | string |
status | string Enum: "ACTIVE" "INACTIVE" Status of the loan product |
Loan product status changed.
Error occurred.
Development environment
Production environment
{- "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"
}
}
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 |
Create a new loan.
email profile
) 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 |
Loan product created.
Error occurred.
Development environment
Production environment
{- "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.
email profile
) 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 retrivied.
Error occurred.
Development environment
Production environment
{- "loanProducts": [
- {
- "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.
email profile
) loanId required | string Example: d4618120-96d1-11eb-a8b3-0242ac130009 Unique identifier of a loan. |
Loan retrivied.
Error occurred.
Development environment
Production environment
{- "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.
email profile
) 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 |
numberOfInstalments | integer The number of instalments for the loan |
instalmentsDueDates | Array of strings <date> Instalments due dates of the loan |
Loan retrivied.
Error occurred.
Development environment
Production environment
{- "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.
email profile
) 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 |
Loan retrivied.
Error occurred.
Development environment
Production environment
{- "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"
}
]
}