Simulator
Simulate client exposure
Simulate client exposure. Access is subject to the permissions, authentication, and branch requirements documented for this operation.
POST
/
simulator
/
exposure
/
simulate
Simulate client exposure
curl --request POST \
--url https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"client_reference": "<string>",
"currency": "<string>",
"requested_amount_cents": 123,
"monthly_income_cents": 123,
"monthly_fixed_obligations_cents": 123,
"requested_interest_rate": 123,
"funding_purpose": "<string>",
"property_value_amount_cents": 123,
"down_payment_amount_cents": 123,
"estimated_property_tax_amount_cents": 123,
"estimated_home_insurance_amount_cents": 123,
"estimated_private_mortgage_insurance_amount_cents": 123,
"estimated_hoa_fees_amount_cents": 123,
"tenor_months": 123,
"account_product_id": "<string>",
"card_program_id": "<string>",
"risk_markers": [
"<string>"
]
}
'import requests
url = "https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate"
payload = {
"client_reference": "<string>",
"currency": "<string>",
"requested_amount_cents": 123,
"monthly_income_cents": 123,
"monthly_fixed_obligations_cents": 123,
"requested_interest_rate": 123,
"funding_purpose": "<string>",
"property_value_amount_cents": 123,
"down_payment_amount_cents": 123,
"estimated_property_tax_amount_cents": 123,
"estimated_home_insurance_amount_cents": 123,
"estimated_private_mortgage_insurance_amount_cents": 123,
"estimated_hoa_fees_amount_cents": 123,
"tenor_months": 123,
"account_product_id": "<string>",
"card_program_id": "<string>",
"risk_markers": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client_reference: '<string>',
currency: '<string>',
requested_amount_cents: 123,
monthly_income_cents: 123,
monthly_fixed_obligations_cents: 123,
requested_interest_rate: 123,
funding_purpose: '<string>',
property_value_amount_cents: 123,
down_payment_amount_cents: 123,
estimated_property_tax_amount_cents: 123,
estimated_home_insurance_amount_cents: 123,
estimated_private_mortgage_insurance_amount_cents: 123,
estimated_hoa_fees_amount_cents: 123,
tenor_months: 123,
account_product_id: '<string>',
card_program_id: '<string>',
risk_markers: ['<string>']
})
};
fetch('https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'client_reference' => '<string>',
'currency' => '<string>',
'requested_amount_cents' => 123,
'monthly_income_cents' => 123,
'monthly_fixed_obligations_cents' => 123,
'requested_interest_rate' => 123,
'funding_purpose' => '<string>',
'property_value_amount_cents' => 123,
'down_payment_amount_cents' => 123,
'estimated_property_tax_amount_cents' => 123,
'estimated_home_insurance_amount_cents' => 123,
'estimated_private_mortgage_insurance_amount_cents' => 123,
'estimated_hoa_fees_amount_cents' => 123,
'tenor_months' => 123,
'account_product_id' => '<string>',
'card_program_id' => '<string>',
'risk_markers' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate"
payload := strings.NewReader("{\n \"client_reference\": \"<string>\",\n \"currency\": \"<string>\",\n \"requested_amount_cents\": 123,\n \"monthly_income_cents\": 123,\n \"monthly_fixed_obligations_cents\": 123,\n \"requested_interest_rate\": 123,\n \"funding_purpose\": \"<string>\",\n \"property_value_amount_cents\": 123,\n \"down_payment_amount_cents\": 123,\n \"estimated_property_tax_amount_cents\": 123,\n \"estimated_home_insurance_amount_cents\": 123,\n \"estimated_private_mortgage_insurance_amount_cents\": 123,\n \"estimated_hoa_fees_amount_cents\": 123,\n \"tenor_months\": 123,\n \"account_product_id\": \"<string>\",\n \"card_program_id\": \"<string>\",\n \"risk_markers\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"client_reference\": \"<string>\",\n \"currency\": \"<string>\",\n \"requested_amount_cents\": 123,\n \"monthly_income_cents\": 123,\n \"monthly_fixed_obligations_cents\": 123,\n \"requested_interest_rate\": 123,\n \"funding_purpose\": \"<string>\",\n \"property_value_amount_cents\": 123,\n \"down_payment_amount_cents\": 123,\n \"estimated_property_tax_amount_cents\": 123,\n \"estimated_home_insurance_amount_cents\": 123,\n \"estimated_private_mortgage_insurance_amount_cents\": 123,\n \"estimated_hoa_fees_amount_cents\": 123,\n \"tenor_months\": 123,\n \"account_product_id\": \"<string>\",\n \"card_program_id\": \"<string>\",\n \"risk_markers\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"client_reference\": \"<string>\",\n \"currency\": \"<string>\",\n \"requested_amount_cents\": 123,\n \"monthly_income_cents\": 123,\n \"monthly_fixed_obligations_cents\": 123,\n \"requested_interest_rate\": 123,\n \"funding_purpose\": \"<string>\",\n \"property_value_amount_cents\": 123,\n \"down_payment_amount_cents\": 123,\n \"estimated_property_tax_amount_cents\": 123,\n \"estimated_home_insurance_amount_cents\": 123,\n \"estimated_private_mortgage_insurance_amount_cents\": 123,\n \"estimated_hoa_fees_amount_cents\": 123,\n \"tenor_months\": 123,\n \"account_product_id\": \"<string>\",\n \"card_program_id\": \"<string>\",\n \"risk_markers\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"clientId": "<string>",
"createdByUserId": "<string>",
"accountProductId": "<string>",
"cardProgramId": "<string>",
"productType": "card_limit",
"currency": "<string>",
"requestedAmountCents": 123,
"requestedInterestRate": 123,
"recommendedAmountCents": 123,
"maxAmountCents": 123,
"tenorMonths": 123,
"decision": "approve",
"reasons": [
"<string>"
],
"policySnapshot": {},
"inputsSnapshot": {},
"createdAt": "2023-11-07T05:31:56Z"
},
"meta": {
"persisted": true,
"simulationToken": "<string>",
"simulationExpiresAt": "2023-11-07T05:31:56Z"
}
}Authorizations
Body
application/json
⌘I
Simulate client exposure
curl --request POST \
--url https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"client_reference": "<string>",
"currency": "<string>",
"requested_amount_cents": 123,
"monthly_income_cents": 123,
"monthly_fixed_obligations_cents": 123,
"requested_interest_rate": 123,
"funding_purpose": "<string>",
"property_value_amount_cents": 123,
"down_payment_amount_cents": 123,
"estimated_property_tax_amount_cents": 123,
"estimated_home_insurance_amount_cents": 123,
"estimated_private_mortgage_insurance_amount_cents": 123,
"estimated_hoa_fees_amount_cents": 123,
"tenor_months": 123,
"account_product_id": "<string>",
"card_program_id": "<string>",
"risk_markers": [
"<string>"
]
}
'import requests
url = "https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate"
payload = {
"client_reference": "<string>",
"currency": "<string>",
"requested_amount_cents": 123,
"monthly_income_cents": 123,
"monthly_fixed_obligations_cents": 123,
"requested_interest_rate": 123,
"funding_purpose": "<string>",
"property_value_amount_cents": 123,
"down_payment_amount_cents": 123,
"estimated_property_tax_amount_cents": 123,
"estimated_home_insurance_amount_cents": 123,
"estimated_private_mortgage_insurance_amount_cents": 123,
"estimated_hoa_fees_amount_cents": 123,
"tenor_months": 123,
"account_product_id": "<string>",
"card_program_id": "<string>",
"risk_markers": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
client_reference: '<string>',
currency: '<string>',
requested_amount_cents: 123,
monthly_income_cents: 123,
monthly_fixed_obligations_cents: 123,
requested_interest_rate: 123,
funding_purpose: '<string>',
property_value_amount_cents: 123,
down_payment_amount_cents: 123,
estimated_property_tax_amount_cents: 123,
estimated_home_insurance_amount_cents: 123,
estimated_private_mortgage_insurance_amount_cents: 123,
estimated_hoa_fees_amount_cents: 123,
tenor_months: 123,
account_product_id: '<string>',
card_program_id: '<string>',
risk_markers: ['<string>']
})
};
fetch('https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'client_reference' => '<string>',
'currency' => '<string>',
'requested_amount_cents' => 123,
'monthly_income_cents' => 123,
'monthly_fixed_obligations_cents' => 123,
'requested_interest_rate' => 123,
'funding_purpose' => '<string>',
'property_value_amount_cents' => 123,
'down_payment_amount_cents' => 123,
'estimated_property_tax_amount_cents' => 123,
'estimated_home_insurance_amount_cents' => 123,
'estimated_private_mortgage_insurance_amount_cents' => 123,
'estimated_hoa_fees_amount_cents' => 123,
'tenor_months' => 123,
'account_product_id' => '<string>',
'card_program_id' => '<string>',
'risk_markers' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate"
payload := strings.NewReader("{\n \"client_reference\": \"<string>\",\n \"currency\": \"<string>\",\n \"requested_amount_cents\": 123,\n \"monthly_income_cents\": 123,\n \"monthly_fixed_obligations_cents\": 123,\n \"requested_interest_rate\": 123,\n \"funding_purpose\": \"<string>\",\n \"property_value_amount_cents\": 123,\n \"down_payment_amount_cents\": 123,\n \"estimated_property_tax_amount_cents\": 123,\n \"estimated_home_insurance_amount_cents\": 123,\n \"estimated_private_mortgage_insurance_amount_cents\": 123,\n \"estimated_hoa_fees_amount_cents\": 123,\n \"tenor_months\": 123,\n \"account_product_id\": \"<string>\",\n \"card_program_id\": \"<string>\",\n \"risk_markers\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"client_reference\": \"<string>\",\n \"currency\": \"<string>\",\n \"requested_amount_cents\": 123,\n \"monthly_income_cents\": 123,\n \"monthly_fixed_obligations_cents\": 123,\n \"requested_interest_rate\": 123,\n \"funding_purpose\": \"<string>\",\n \"property_value_amount_cents\": 123,\n \"down_payment_amount_cents\": 123,\n \"estimated_property_tax_amount_cents\": 123,\n \"estimated_home_insurance_amount_cents\": 123,\n \"estimated_private_mortgage_insurance_amount_cents\": 123,\n \"estimated_hoa_fees_amount_cents\": 123,\n \"tenor_months\": 123,\n \"account_product_id\": \"<string>\",\n \"card_program_id\": \"<string>\",\n \"risk_markers\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v1/staff/simulator/exposure/simulate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"client_reference\": \"<string>\",\n \"currency\": \"<string>\",\n \"requested_amount_cents\": 123,\n \"monthly_income_cents\": 123,\n \"monthly_fixed_obligations_cents\": 123,\n \"requested_interest_rate\": 123,\n \"funding_purpose\": \"<string>\",\n \"property_value_amount_cents\": 123,\n \"down_payment_amount_cents\": 123,\n \"estimated_property_tax_amount_cents\": 123,\n \"estimated_home_insurance_amount_cents\": 123,\n \"estimated_private_mortgage_insurance_amount_cents\": 123,\n \"estimated_hoa_fees_amount_cents\": 123,\n \"tenor_months\": 123,\n \"account_product_id\": \"<string>\",\n \"card_program_id\": \"<string>\",\n \"risk_markers\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"clientId": "<string>",
"createdByUserId": "<string>",
"accountProductId": "<string>",
"cardProgramId": "<string>",
"productType": "card_limit",
"currency": "<string>",
"requestedAmountCents": 123,
"requestedInterestRate": 123,
"recommendedAmountCents": 123,
"maxAmountCents": 123,
"tenorMonths": 123,
"decision": "approve",
"reasons": [
"<string>"
],
"policySnapshot": {},
"inputsSnapshot": {},
"createdAt": "2023-11-07T05:31:56Z"
},
"meta": {
"persisted": true,
"simulationToken": "<string>",
"simulationExpiresAt": "2023-11-07T05:31:56Z"
}
}