FTOS_BP_GetProductInsuranceList
Returns a product's list of insurances based on its name or id and the specified filters.
Syntax
The FTOS_BP_GetProductInsuranceList custom endpoint is called from within the Endpoint API endpoint. Visit the Endpoint API page for more details.
POST <host_address>/ftosapi/automation-processors/actions/FTOS_BP_GetProductInsuranceList
Content-Type: application/json
{
"productCode": "<product_code>",
"filterList": [
{
"name": "<filter_name>",
"value": <filter_value>
}
]
}
Here's a list of the available parameters:
| Parameter | Description |
|---|---|
| host_address | URL of the FintechOS Platform server. |
| productCode | Mandatory when productId is not sent, string. The code of the banking product. |
| productId | Mandatory when productCode is not sent, string. The id of the banking product. |
| filterList | Optional, JSON array of objects. It filters the list according to the parameters sent within each object: name, string and value, numeric. |
Response
The response is an array of objects with details about the insurance lists of the specified product, filtered according to your preferences.
Example
To view the details of a specific product's insurance lists, send the following request, changing the product code and filters according to your needs.
Request
POST https://your_FintechOS_server/ftosapi/automation-processors/actions/FTOS_BP_GetProductInsuranceList
Content-Type: application/json
{
"productCode":"TL_ADV",
"filterList":
[
{
"name":"Amount Insurance",
"value":400
}
]
}
Response
{
"Insurances": [
{
"ItemName": "Life Insurance Advanced Loan 2",
"ItemCode": "TLA_Ins2",
"InsuranceListId": "dab4afb5-db06-4660-92ee-cc7fd734d0cc",
"InsuranceListName": "I EUR"
}
]
}
To view the details of a specific product's insurance lists, send the following request, changing the product id and filters according to your needs.
Request
POST https://your_FintechOS_server/ftosapi/automation-processors/actions/FTOS_BP_GetProductInsuranceList
Content-Type: application/json
{
"productId":"EEC720BA-6C32-47AC-9050-3D9D759F043E",
"filterList":[{"name":"Amount Insurance","value":400}]
}
Response
{
"Insurances": [
{
"ItemName": "Life Insurance Advanced Loan 2",
"ItemCode": "TLA_Ins2",
"InsuranceListId": "dab4afb5-db06-4660-92ee-cc7fd734d0cc",
"InsuranceListName": "I EUR"
}
]
}