GET api/Brokerage/FinanceCalculator/{brokerageId}/{term}/{price}
Retrieve a list of finance products, based on provided term and price. Available for PL broker users. Does not require authentication.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| brokerageId | globally unique identifier |
Required |
|
| term | integer |
Required |
|
| price | decimal number |
Required |
Body Parameters
None.
Response Information
Resource Description
Possible error responses: 1. {"BrokerageId", "ErrorMessage": "Brokerage with id = {guid} does not exist in the database."}, 2. {"Term", "ErrorMessage": "The term field has to be a positive integer."}, 3. {"Price", "ErrorMessage": "The price field has to be a positive number."}
BrokerageResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| SelectedProductId | globally unique identifier |
None. |
|
| Products | Collection of BrokerageFinanceCalculatorProductViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"SelectedProductId": "c78bb13b-3ce1-4aa0-8571-2382a1a5e3c3",
"Products": [
{
"Id": "efd0a76c-b9aa-4a49-a6ab-cf657d67926e",
"APR": 2.1,
"MonthlyCost": 3.0,
"TotalRepayment": 4.0,
"Term": 5,
"InterestRate": 6.0
},
{
"Id": "efd0a76c-b9aa-4a49-a6ab-cf657d67926e",
"APR": 2.1,
"MonthlyCost": 3.0,
"TotalRepayment": 4.0,
"Term": 5,
"InterestRate": 6.0
}
]
}
text/html
Sample:
{"SelectedProductId":"c78bb13b-3ce1-4aa0-8571-2382a1a5e3c3","Products":[{"Id":"efd0a76c-b9aa-4a49-a6ab-cf657d67926e","APR":2.1,"MonthlyCost":3.0,"TotalRepayment":4.0,"Term":5,"InterestRate":6.0},{"Id":"efd0a76c-b9aa-4a49-a6ab-cf657d67926e","APR":2.1,"MonthlyCost":3.0,"TotalRepayment":4.0,"Term":5,"InterestRate":6.0}]}
application/xml, text/xml
Sample:
<BrokerageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OmniPort.API.Services.APIResponses.FinanceCalculatorResponses">
<Products xmlns:d2p1="http://schemas.datacontract.org/2004/07/OmniPort.ViewModel">
<d2p1:BrokerageFinanceCalculatorProductViewModel>
<d2p1:APR>2.1</d2p1:APR>
<d2p1:Id>efd0a76c-b9aa-4a49-a6ab-cf657d67926e</d2p1:Id>
<d2p1:InterestRate>6</d2p1:InterestRate>
<d2p1:MonthlyCost>3</d2p1:MonthlyCost>
<d2p1:Term>5</d2p1:Term>
<d2p1:TotalRepayment>4</d2p1:TotalRepayment>
</d2p1:BrokerageFinanceCalculatorProductViewModel>
<d2p1:BrokerageFinanceCalculatorProductViewModel>
<d2p1:APR>2.1</d2p1:APR>
<d2p1:Id>efd0a76c-b9aa-4a49-a6ab-cf657d67926e</d2p1:Id>
<d2p1:InterestRate>6</d2p1:InterestRate>
<d2p1:MonthlyCost>3</d2p1:MonthlyCost>
<d2p1:Term>5</d2p1:Term>
<d2p1:TotalRepayment>4</d2p1:TotalRepayment>
</d2p1:BrokerageFinanceCalculatorProductViewModel>
</Products>
<SelectedProductId>c78bb13b-3ce1-4aa0-8571-2382a1a5e3c3</SelectedProductId>
</BrokerageResponse>