NAV
shell

API

{
  "api_token": "i64kjZkMwoE2nnR36b6FKRi64kH8TG3z"
}

Solaris Finance Calculator API v1

All endpoints require api_token. Server will return a 422 Error if incorrect value is provided.

Get details

Example Request

curl -X GET "https://solaris.finance/api/v1/details?api_token=i64kjZkMwoE2nnR36b6FKRi64kH8TG3z"

Example Response

{
   "chattel": {
      "min": 5500,
      "max": 150000,
      "min_repayment": {
         "24": 259,
         "36": 179,
         "48": 139,
         "60": 116,
         "72": 100,
         "84": 88
      },
      "max_repayment": {
         "24": 7547,
         "36": 5198,
         "48": 4027,
         "60": 3326,
         "72": 2940,
         "84": 2610
      }
   }
}

The endpoint provides details required to request a quote.

This endpoint is a pre-requisite for GET /quote.

Get details - HTTP request

GET https://solaris.finance/api/v1/details

Get details - Query parameters

Parameter Type Description
api_token string Unique token provided by us to enable API access
rate_bracket string Provide rate bracket for details from specific financier (optional)
Valid options for rate_bracket
commercial_solar_tier_1
commercial_solar_tier_2
commercial_solar_tier_3
residential_solar
car_trucks
access_agricultural_construction
tools_of_trade
other_tertiary

Get quote

Example Request

curl -X GET "https://solaris.finance/api/v1/quote?api_token=i64kjZkMwoE2nnR36b6FKRi64kH8TG3z&new_bill=1000&old_bill=2000&system_cost=49000"

Example Response

{
  "data": {
    "24": {
      "repayment": 2510.32
    },
    "36": {
      "repayment": 1736.48
    },
    "48": {
      "repayment": 1350.69
    },
    "60": {
      "repayment": 1120.11
    },
    "72": {
      "repayment": 968.44
    },
    "84": {
      "repayment": 859.83
    }
  },
  "type": "chattel",
  "include_gst": "no",
  "system_cost": 53900,
  "system_cost_gst": {
    "excl_gst": 49000,
    "incl_gst": 53900
  },
  "doc_fee": 330,
  "show_graph": true,
  "applicable_date": "03/04/2018",
  "title": "Chattel Mortgage Quote",
  "legend": [
    "Term",
    "Repayment"
  ]
}

This endpoint retrieves quote details for specific system cost or repayment amount.

Get quote - HTTP request

GET https://solaris.finance/api/v1/quote

Get quote - Query parameters

Parameter Type Description
api_token string Unique token provided by us to enable API access
reverse boolean Whether to use standard or default calculator (default: false)
system_cost number Finance amount excluding any fees
Between: min/max from /details, required if not reverse
repayment number Expected monthly repayment amount including any fees
Between: min_repayment/max_repayment, required if reverse
term number Repayment term for requested amount
Allowed values can be fetched from /details endpoint
old_bill number Current energy bill (per month)
new_bill number Estimated energy bill with solar (per month)
new_bill must be lower than old_bill
rate_bracket string Provide rate bracket for quote from specific financier (optional)
Valid options for rate_bracket
commercial_solar_tier_1
commercial_solar_tier_2
commercial_solar_tier_3
residential_solar
car_trucks
access_agricultural_construction
tools_of_trade
other_tertiary

Errors

Example Error

{
  "message": "Something went wrong! Please email contact@solarisfinance.com.au"
}

The API uses the following error codes:

Error Code Meaning
404 Not Found
418 I'm a teapot
422 Unprocessable Entity
500 Internal Server Error

Slugs

Creating a referrers code

alt text

Slug types:

Furthermore, multiple slugs can be placed in the same URL. The order of the slugs does not matter

Create the application through the referral URL

When a broker or referrer sends their business the referral URL and access to this URL, it will redirect to another URL to create an application. After creating application success, this application will display and track by the referrer.

Technical Slug documentation

Depending on the type of code it will have a difference in prefix:

The order of the slugs does not matter.

Examples:

Access to referral URL => redirect to view create the application

After creating application success, besides information input from the form, the referral code will be saved into the field referrals of the applications table. This application will display and manage by the referrer.