Skip to content

The Pricefx Backend API

Pricefx REST API Reference

Languages
Servers
Mock server
https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi
URL:
https://{baseUrl}/pricefx/{partition}

General

Operations

Products

Operations

Product Extensions

Operations

Product Image

Operations

Customers

Operations

Customer Extensions

Operations

Sellers

Operations

Seller Extensions

Operations

Condition Records

Operations

Competition Data

Operations

Imports

Operations

Data Change Requests

Operations

Lookup Tables / Company Parameters

Operations

User Admin

Operations

Authentication

Operations

Admin Tools

Operations

Logics

Operations

Logs

Operations

Custom Forms

Operations

Calculated Field Sets

Operations

Jobs & Tasks

Operations

Data Manager

Operations

Actions

Operations

Action Types

Operations

Price Lists

Operations

Manual Price Lists

Operations

Live Price Grids

Operations

Calculation Grids

Operations

Visual Configuration

Operations

Quotes

Operations

Contracts (Agreements & Promotions)

Operations

Visual Configuration

Operations

Rebate Agreements

Operations

Rebate Calculations

Operations

Rebate Record Group

Operations

Sales Compensations

Operations

Claim Types

Operations

Claims

Operations

Optimization

Operations

Recalculate Items of a Parallel Calculation

Request

Executes a recalculation of the item as a background task (JST) with the id of the last calculation JST (copies calculation results from the previous JST).
Use a filter in your request to specify items with CREATED or FAILED status. Cannot be used on items with the CALCULATED status.
Fails if called for anything else than a Parallel Calculation.
Returns two elements within the data array – the JST (Job Status Tracker) object (the calculation status of the newly created calculation) and the updated ModelObject object.

Security
basic or X-PriceFx-jwt
Path
typedIdstringrequired

The typedId of the Model Object you want to recalculate the step for.

Example: 123.MO
stepNamestringrequired

Enter the name of the step you want to calculate.

Enum"definition""configuration""results""projections""parallel"
Example: definition
calcNamestringrequired

The name of the calculation you want to recalculate.

Bodyapplication/json
dataobjectrequired
data.​criteriaArray of objectsrequired
data.​criteria[].​_constructorstringrequired
data.​criteria[].​operatorstringrequired
data.​criteria[].​criteriaArray of objectsrequired
data.​criteria[].​criteria[].​fieldNamestringrequired
data.​criteria[].​criteria[].​operatorstringrequired
data.​criteria[].​criteria[].​valueArray of stringsrequired
Items Enum"FAILED""CREATED"
Example: ["FAILED"]
curl -i -X POST \
  -u <username>:<password> \
  'https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/optimization.modelcalcexec/123.MO/definition/{calcName}/item' \
  -H 'Content-Type: application/json' \
  -d '{
    "data": {
      "criteria": [
        {
          "_constructor": "AdvancedCriteria",
          "operator": "and",
          "criteria": [
            {
              "fieldName": "status",
              "operator": "iEquals",
              "value": [
                "FAILED"
              ]
            }
          ]
        }
      ]
    }
  }'

Responses

OK

Bodyapplication/json
responseobject
Response
application/json
{ "response": { "node": "pricefx-cluster-app-frontend-6689766d7c-6bzmz", "data": [], "status": 0 } }

Save a Model

Request

Saves a Model Object of the step. Returns the updated ModelObject object.

Security
basic or X-PriceFx-jwt
Path
typedIdstringrequired

The typedId of the Model Object you want to save.

Example: 123.MO
stepNamestringrequired

Enter the name of the step you want to save. Steps are defined in the Model Class that is associated to the Model Object.

Enum"definition""configuration""results""projections"
Example: definition
Bodyapplication/json

The data property can only contain the state field, all the rest fields will be ignored (and cannot be updated even with update/MO endpoint).

oldValuesobjectrequired
oldValues.​versionintegerrequired
dataobject(ModelObject)

The Type code is MO.

curl -i -X POST \
  -u <username>:<password> \
  https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/optimization.modelsave/123.MO/definition \
  -H 'Content-Type: application/json' \
  -d '{
    "oldValues": {
      "version": 11
    },
    "data": {
      "state": {
        "configuration": {
          "advanced": {
            "Advanced": {
              "MaxSteps": 500,
              "MaxDurationMinutes": 0,
              "AutoStop": true,
              "Profiling": false
            }
          },
          "boundaries": {
            "Boundaries": {
              "SpecificAdjustmentMinPercent": -10,
              "SpecificAdjustmentMaxPercent": 10,
              "OnInvoiceDiscountMinPercent": 0,
              "OnInvoiceDiscountMaxPercent": 30,
              "OffInvoiceDiscountMinPercent": 0,
              "OffInvoiceDiscountMaxPercent": 30,
              "InvoicePriceMaxDecreasePercent": 16,
              "InvoicePriceMaxIncreasePercent": 15
            }
          },
          "objectives": {
            "Objectives": {
              "RevenueMarginMixCoeff": 1,
              "CustomerGroupRevenueTarget": [],
              "ProductGroupVolumeTarget": []
            }
          }
        }
      }
    }
  }'

Responses

OK. Returns the updated Model Object.

Bodyapplication/json
responseobject
Response
application/json
{ "response": { "node": "node", "data": [], "status": 0 } }

Submit a Model

Request

Submits a Model for approval. Returns the submited ModelObject object.

Note: A scheduled Model cannot be submitted. Required permission: MODELOBJECT_UPDATE

Security
basic or X-PriceFx-jwt
Path
typedIdstringrequired

The typedId of the Model Object you want to submit.

Example: 123.MO
Bodyapplication/json
object
curl -i -X POST \
  -u <username>:<password> \
  https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/optimization.modelsubmit/123.MO \
  -H 'Content-Type: application/json' \
  -d '{}'

Responses

OK. Returns the Model Object.

Bodyapplication/json
responseobject
Response
application/json
{ "response": { "node": "pricefx-cluster-app-frontend-7d7d8875d-7jn6c", "data": [], "status": 0 } }

Workflow

Operations

Workflow Delegation

Operations

Attachments

To upload a file you need to perform the following actions using endpoints in this category:

  1. Create an Upload Slot
  2. Upload a File
  3. Delete an Upload Slot
Operations

Product Image

Operations

Configuration

Operations

Internationalization

Operations

Metadata

Operations

Clicmanager

Clicmanager (CLIC = "Calculable Line Item Collection") endpoints are used in the REACT version to manipulate Quote/Agreements & Promotions (Contract)/Rebate Agreement/Compensation Plan objects.

Operations

Comments

Operations

Notifications

Operations

Heartbeat

Operations

Key-Value Store

See the Key-Value Database Storage Knowledge Base article for more details.

Operations

Entities

Here you can find all fields of the corresponding entity (represented by the type code).
Use the /metadata.describe endpoint to find out the correct data type of the field that is used in your partition.

otherSchemas

Schemas