Skip to main content
POST
/
v1
/
quotes
/
cost
/
preview
Monthly payment preview
curl --request POST \
  --url https://api.prets.io/v1/quotes/cost/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Prets-Organization: <prets-organization>' \
  --data '
{
  "currency": "EUR",
  "totalInclTax": 12500,
  "address": {
    "postalCode": "1000 AA",
    "houseNumber": "42",
    "city": "Brussels",
    "street": "Kerkstraat",
    "houseNumberAddition": "A"
  },
  "lineItems": [
    {
      "externalId": "QUOTE-2024-001-PV",
      "totalInclTax": 12500,
      "totalExclTax": 10330.58,
      "unitPrice": 250,
      "productIdentifiers": {
        "brand": "Enphase",
        "manufacturerPartNumber": "SE7600H-US",
        "globalTradeItemNumber": "0885629362058"
      },
      "incentiveCodes": [
        "ISDE-2024-WP",
        "PROV-NH-2024"
      ],
      "description": "<string>",
      "totalNameplateCapacity": 13500,
      "totalNameplatePower": 5000
    }
  ]
}
'
{
  "data": {
    "content": [
      {
        "value": "<string>"
      }
    ],
    "representativeExamples": [
      {
        "loanAmount": 123,
        "numInstallments": 123,
        "monthlyCost": 123,
        "totalPayable": 123,
        "nominalAnnualRate": 123,
        "annualCostRate": 123,
        "lender": {
          "name": "<string>"
        },
        "content": [
          {
            "value": "<string>"
          }
        ],
        "lineItems": [
          {
            "externalId": "<string>",
            "monthlyCost": 123
          }
        ]
      }
    ]
  },
  "links": {
    "loanIndicationWidget": {
      "png": "<string>",
      "url": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.prets.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Prets-Organization
string
required

Merchant organization slug for catalog eligibility.

Minimum string length: 1
Example:

"prets"

Accept-Language
string

BCP 47 language tag; defaults to nl-NL

Example:

"nl-NL"

Body

application/json

Indicative financing cost preview

currency
enum<string>
required

Quote currency (currently EUR only)

Available options:
EUR
Example:

"EUR"

totalInclTax
number
required

Quote total including tax in EUR

Required range: x >= 0
Example:

12500

address
object

Installation address; when omitted, eligibility may be broader where rules allow

lineItems
object[]

Quote line items. When supplied, each representativeExample includes a lineItems[] breakdown pro-rating its monthlyCost across the lines.

Response

Indicative representative examples and response-level content (text_warning). Per-example lineItems present when the request included lineItems.

Indicative financing cost preview

data
object
required