Pricefx REST API Reference
Pricefx REST API
/Pricefx API Reference/- Update a Price List Type
List Price Lists
Get a Price List
List Price List Items
Create a Revision
Calculate a Pricelist
Update a Pricelist Detail
Create a Price List
Submit a Price List
Revoke a Price List
Delete a Price List Item
Delete a Price List
Assign Customers
List Customer Assignments
List Price List Types
Delete a Price List Type
Add a Price List Type
Update a Price List Type
The Pricefx Backend API
Download OpenAPI description
Overview
URL
Pricefx
Languages
Servers
Mock server
https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi
URL:
https://{baseUrl}/pricefx/{partition}
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/add/PLTT
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/PLTT
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/add/PLTT \
-H 'Content-Type: application/json' \
-d '{
"operationType": "add",
"textMatchStyle": "exact",
"data": {
"uniqueName": "PLType5",
"label": "Price List Type 5",
"targetDate": "2030-01-01",
"userGroupViewDetails": "[Actin] Watchers Analyst",
"userGroupEdit": "[Actin] Watchers Manager",
"userGroupCanUseType": "[Actin] Watchers Contributor",
"headerFormulaName": "Attribute Based Pricing Logic Header",
"dimensionType": "SIMPLE",
"calculationFormulaName": "OptimizedPricingLogic",
"typeConfiguration": {
"relativeTargetDateDays": 3,
"headerInputs": [
{
"name": "input",
"label": "input",
"type": "INTEGERUSERENTRY",
"value": 10,
"inputs": []
}
],
"shotgunModeEnabled": false,
"resultElementName": "ListPrice",
"productFilterCriteria": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "sku",
"operator": "inSet",
"value": [
"B-0001",
"B-0002"
]
}
]
},
"uomOverrideElementName": "Cost",
"currencyOverrideElementName": "",
"errorMode": "SKIP",
"notifyWhenFinished": "EMAIL",
"calculationLogicInputs": [
{
"name": "Configuration",
"label": "Configuration",
"url": "ConfiguratorWithOptionsInputEntries",
"type": "CONFIGURATOR",
"value": {},
"inputs": [],
"parameterConfig": {},
"formattingOptions": {}
},
{
"name": "warning",
"label": "Add Warning?",
"type": "BOOLEANUSERENTRY",
"value": {},
"inputs": []
},
{
"name": "Quantity",
"label": "Quantity",
"type": "USERENTRY",
"value": 100,
"inputs": [],
"parameterConfig": {
"dataType": "float"
}
},
{
"name": "MassiveDiscount",
"label": "MassiveDiscount",
"lookupTableId": "2147483653",
"url": "/lookuptablemanager.fetch/2147483653",
"type": "LOOKUP",
"inputs": [],
"parameterConfig": {},
"formattingOptions": {}
},
{
"name": "Customer",
"label": "Customer",
"lookupTableId": "2147483653",
"url": "/fetch/C/",
"type": "CUSTOMER",
"inputs": [],
"parameterConfig": {},
"formattingOptions": {}
},
{
"name": "Decimal Places",
"label": "Decimal Places?",
"type": "OPTION",
"inputs": [],
"parameterConfig": {
"dataType": "integer",
"inputType": "drop-down"
},
"formattingOptions": {},
"valueOptions": [
"0",
"1",
"2",
"3",
"4",
"5"
]
},
{
"name": "Surcharge",
"label": "Surcharge",
"type": "MULTITIERENTRY",
"valueHint": "each^^^€",
"inputs": [],
"parameterConfig": {},
"formattingOptions": {}
}
],
"elementNames": [
"ListPrice",
"ProductGroup",
"BusinessUnit",
"Cost",
"CustomerType"
],
"hiddenElementNames": [
"Strech"
],
"userCanToggleVisibility": [
"ListPrice"
],
"overridableFields": [
"calculationLogic"
],
"calcLogicInputsOverridableFields": [
"Input A"
]
},
"customActionLogics": {
"key1": "value"
},
"contextualActions": {
"key2": "value"
},
"buttonsConfiguration": {
"key3": "value"
}
}
}'Response
application/json
{ "response": { "data": [ … ], "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/update/PLTT
- URL:https://companynode.pricefx.com/pricefx/companypartition/update/PLTT
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/update/PLTT \
-H 'Content-Type: application/json' \
-d '{
"operationType": "update",
"textMatchStyle": "exact",
"data": {
"version": 0,
"typedId": "2.PLTT",
"uniqueName": "New Name for Price List Type 2",
"label": "Price List Type 1 Label",
"createdByName": "john.doe",
"lastUpdateByName": "john.doe",
"targetDate": "2030-01-01",
"userGroupEdit": "Group B",
"userGroupViewDetails": "Group A",
"userGroupCanUseType": "Group C",
"typeConfiguration": {
"elementNames": [
"testFormula",
"ElementB",
"resultPrice"
],
"resultElementName": "resultPrice",
"shotgunModeEnabled": true
},
"buttonsConfiguration": {},
"headerFormulaName": "Header Formula",
"dimensionType": "SIMPLE",
"calculationFormulaName": "Formula A",
"matrixFormulaName": "Matrix Keys Generation Formula",
"matrixFormulaElementName": "Element",
"customActionLogics": "{\"key1\": \"value\"}",
"contextualActions": {},
"createDate": "2024-09-09T15:51:55",
"createdBy": 2147492568,
"lastUpdateDate": "2024-09-09T15:51:55",
"lastUpdateBy": 2147492568,
"id": 2
},
"oldValues": {
"version": 0
}
}'Response
application/json
{ "response": { "data": [ … ], "status": 0 } }
See the Key-Value Database Storage Knowledge Base article for more details.
Operations
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.
Comments