Execute a Logic Without a Context in a Service

post/formulamanager.executeformulaservice/{uniqueName}

Executes a logic and returns results.

The main difference between this and the other executeformula endpoint is that with formulamanager.executeformulaservice the logic context is preserved for subsequent calls or reused if already exists. This allows the logic to build up a cache, as e.g. api.global survives between calls. The system limits the lifetime of such a service as well as the number of available running service instances. To avoid concurrency issues, there is NO parallel execution of this service. Parallel API requests will be brought into an order. If they cannot be executed within a rather short timeframe, the request will fail. Hence it is paramount that especially subsequent requests are executed quickly (by using caching). Use the output=rawjson parameter in the URL, for example /formulamanager.executeformula/QuoteLogic?output=rawjson in order to return the result in the simple JSON format as "resultName":result.

Securitybasic or X-PriceFx-jwt
Request
path Parameters
uniqueName
required
string

The name (uniqueName) of the logic you want to execute.

Request Body schema: application/json
data
object

Provide inputs for the logic as key-value pairs.

Responses
200

Example response

Response Schema: application/json
object
node
string non-empty
Array of objects non-empty unique
Array (non-empty)
object
status
number
Request samples
application/json
{
  • "data": {
    • "priority": "high",
    • "quantity": 14,
    • "map": {
      • "key": "value"
      }
    }
}
Response samples
application/json
{
  • "response": {
    • "node": "node",
    • "data": [
      • {
        • "formula": {
          }
        }
      ],
    • "status": 0
    }
}