FTOS_BP_GetDiscountDetail

Returns the banking product's discount information based on its product discount id or its product discount name and product code.

Syntax

The FTOS_BP_GetDiscountDetail custom endpoint is called from within the Endpoint API endpoint. Visit the Endpoint API page for more details.

Copy
POST <host_address>/ftosapi/automation-processors/actions/ftos_bp_getdiscountdetail
Content-Type: application/json
            
{
  "discountName": "<discount_name>",
  "productCode": "<product_code>,
  "discountInput": {
    "Amount": <discount_input_amount>
    }
}

Here's a list of the available parameters:

Parameter Description
host_address URL of the FintechOS Platform server.
productDiscountId Mandatory when discountName is not sent, string. The id of the product discount.
discountName Mandatory when productDiscountId is not sent, string. The name of the product discount.
productCode Mandatory to be sent along with discountName, string. The name of the banking product.
discountInput Optional, json for formula input if necessary when no mapping was done for formula. The form of this json should look like the one in test formula. If use Banking Formula is checked, then the value is equal to the formula result.

Response

The response is an object with details about the provided discount from FTOS_BP_BankingProductDiscount and associated FTOS_BP_Discount. If use Banking Formula is checked, then the value is equal to the formula result.

Example