Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

1. Create a calculation logic with input parameters

Assuming that we'll send the body request like this, which we need to pass the CustomerID and ProductID:

Now create a calculation logic, that returns any expected data, to receive request parameter, e.g ProductID, using api.input("ProductID")

2. Request the logic with POSTMAN

At first, encode with the Base64 the combined string with this format: partition_name/username:password

Assuming that you already have Postman, let's create a new POST request with the below configuration:

Endpoint: https://staging.pricefx.eu/pricefx/partition_name/formulamanager.executeformula/logic_name
Authorization Type: No Auth

Headers: Add 2 new pairs:

  • Authorization: Basic BASED_64_ENCODED_CREDENTIALS
  • Content-Type: application/json

Request body: would be the above JSON request

The response result will look like:


References: https://qa.pricefx.eu/pricefx-api/json/master.html#!/formula/executeformula


  • No labels