CallAction

Calls an internal endpoint set up on the FintechOS platform. This allows you to access internal methods and functions through the API.

Syntax

Copy
POST <<i>host_address</i>>api/openApi/CallAction/[?culture=<localization>]
Content-Type: application/json
            
{
    "ApiInfo": {
        "Token": <<i>access_token</i>>
    },
    "Request": {
        <"ActionName"|"ActionID">: <<i>endpoint_name</i>|<i>endpoint_id</i>>
        [,"Data": {<input_parameters>}]
    }
}
 
Parameter Description
host_address URL of the FintechOS platform server.
access_token Access token used to connect to the API endpoint. For details, see GetToken.
endpoint_name Name of the endpoint you wish to access on the FintechOS platform. To be used in conjunction with the ActionName parameter.
endpoint_id ID of the endpoint you wish to access on the FintechOS platform. To be used in conjunction with the ActionID parameter.

FintechOS recommends using the ActionName parameter when calling an internal endpoint. The ActionID parameter is provided mostly for backward compatibility.
input_parameters Key-value pairs of any input parameters to be passed to the internal endpoint in JSON format. Double quotes that enclose string parameter values must be escaped with backslash characters, e.g.: \"string value\".
culture Optional parameter used to set the localization context for the server-side script behind the endpoint, e.g. "?culture=ro-RO". When the script is triggered, this applies the corresponding localization values to the ebsResource objects within the script.

Response

The response indicates the result of the code execution, depending on the endpoint's function.

Examples