Simulation

Get minimum and maximum loan quotes for a given amount and instalments number.

Request

Endpoint

Sandbox: http://api.sandbox.soisy.it/api/shops/{shopId}/loan-quotes
Production: https://api.soisy.it/api/shops/{shopId}/loan-quotes

Accepted Methods

GET

Authentication

This API requires authorization with shopId and X-Auth-Token header .

Parameters

Parameter Mandatory Type Format Description
amount Yes Integer Loan amount to be requested, in euro cents
instalments Yes Integer Number of instalments, from 3 to 60
zeroInterestRate No Boolean Defaults on false

Response

This API returns a JSON object.

HTTP Response codes

Code Description
200 Returned when successful
400 A domain error occurred
403 Forbidden
500 System error

Valid response

{
    "min": {
        "fee": 1000,
        "interest": 2000,
        "interestRate": 5.5,
        "totalRepaid": 103000,
        "apr": 6.00,
        "instalmentAmount": 5000
    },
    "median": {
        "fee": 1000,
        "interest": 2500,
        "interestRate": 6.0,
        "totalRepaid": 103500,
        "apr": 7.00,
        "instalmentAmount": 5500
    }
    "max": {
        "fee": 1000,
        "interest": 3000,
        "interestRate": 8.0,
        "totalRepaid": 104000,
        "apr": 7.50,
        "instalmentAmount": 6000
    }
}

Error response

{
 'errors': {
     'domain': [
         0: 'Invalid data.'
         ]
     }
}