Pricefx REST API Reference
Pricefx REST API
/Pricefx API Reference/- Update a Live Price Grid Type
Submit Products
List Live Price Grids
Get a Live Price Grid
List Live Price Grid Items
Copy a Price Grid
Mass Edit Price Grid Items
Update a Live Price Grid Item
Update a Live Price Grid Item (No Recalculation)
Delete a Price Grid Item
Deny a Live Price Grid Item
Delete a Price Grid Item (Filter)
Add Price Grid Items to a Price Grid
Calculate a Price Grid
Cancel a Calculation
Perform a Mass Action
Count Mass Action Items
Convert to Price List
Delete a Live Price Grid
Assign Customers
List Customer Assignments
List Live Price Grid Types
Delete a Live Price Grid Type
Add a Live Price Grid Type
Download a Live Price Grid Excel File
Update a Live Price Grid...
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/PGTT
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/PGTT
- 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/PGTT \
-H 'Content-Type: application/json' \
-d '{
"operationType": "add",
"textMatchStyle": "exact",
"data": {
"uniqueName": "Price Grid Type 1",
"label": "Price Grid Type 1 Label",
"targetDate": "2030-01-01",
"userGroupViewDetails": "Group A",
"userGroupEdit": "Group B",
"userGroupCanUseType": "Group C",
"headerFormulaName": "Header Formula",
"dimensionType": "MATRIX",
"calculationFormulaName": "Formula A",
"matrixFormulaName": "Matrix Keys Generation Formula",
"matrixFormulaElementName": "Element 123",
"typeConfiguration": {
"relativeTargetDateDays": 3,
"preferencesSource": "123",
"headerInputs": [
{
"name": "input",
"label": "input",
"type": "INTEGERUSERENTRY",
"value": 10,
"inputs": []
}
],
"shotgunModeEnabled": false,
"allowColumnTypeChange": false,
"resultElementName": "resultPrice",
"dynamicItemMode": "ADD_ONLY",
"productFilterCriteria": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "sku",
"operator": "inSet",
"value": [
"B-0001",
"B-0002"
]
}
]
},
"uomOverrideElementName": "SecretFormula",
"currencyOverrideElementName": "currencyElement",
"autoApproveElementName": "resultPrice",
"manualResultExpiryElementName": "ElementB",
"maxIncreasePct": 1,
"maxDecreasePct": 2,
"calculationLogicInputs": [
{
"name": "Configuration",
"label": "Configuration",
"url": "ConfiguratorWithOptionsInputEntries",
"type": "CONFIGURATOR",
"value": {},
"inputs": [],
"parameterConfig": {},
"formattingOptions": {}
},
{
"name": "warning",
"label": "Add Warning?",
"type": "BOOLEANUSERENTRY",
"value": false,
"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": [
"testFormula",
"ElementB",
"resultPrice",
"SecretFormula",
"currencyElement"
],
"hiddenElementNames": [
"SecretFormula"
],
"approvalTriggerFields": [
"SecretFormula"
],
"userCanToggleVisibility": [
"SecretFormula"
],
"approvalMappings": [
"testFormula"
],
"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/PGTT
- URL:https://companynode.pricefx.com/pricefx/companypartition/update/PGTT
- 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/PGTT \
-H 'Content-Type: application/json' \
-d '{
"operationType": "update",
"textMatchStyle": "exact",
"data": {
"typedId": "7.PGTT",
"uniqueName": "Simple Price Grid Type 1 - New Name",
"label": "Simple Price Grid 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"
],
"dynamicItemMode": "ADD_ONLY",
"resultElementName": "resultPrice"
},
"buttonsConfiguration": {},
"headerFormulaName": "Header Formula",
"dimensionType": "SIMPLE",
"calculationFormulaName": "Formula A",
"matrixFormulaName": "Matrix Keys Generation Formula",
"matrixFormulaElementName": "Element",
"customActionLogics": "{key1=value}",
"contextualActions": {},
"createDate": "2024-10-08T12:21:41",
"createdBy": 2147492568,
"lastUpdateDate": "2024-10-08T12:21:41",
"lastUpdateBy": 2147492568,
"id": 7
},
"oldValues": {
"version": 0,
"typedId": "7.PGTT",
"uniqueName": "Simple Price Grid Type 1",
"label": "Simple Price Grid 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"
],
"dynamicItemMode": "ADD_ONLY",
"resultElementName": "resultPrice"
},
"buttonsConfiguration": {},
"headerFormulaName": "Header Formula",
"dimensionType": "SIMPLE",
"calculationFormulaName": "Formula A",
"matrixFormulaName": "Matrix Keys Generation Formula",
"matrixFormulaElementName": "Element",
"customActionLogics": "{key1=value}",
"contextualActions": {},
"createDate": "2024-10-08T12:21:41",
"createdBy": 2147492568,
"lastUpdateDate": "2024-10-08T12:21:41",
"lastUpdateBy": 2147492568,
"id": 7
}
}'Response
- application/json
- application/xml
{ "response": { "data": [ … ], "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricegridmanager.fetchxls/{id1}/{id2}/{id3}/{id4}/{id5}/{id6}/{id7}/{id8}/{id9}/{id10}/{id11}/{id12}/{id13}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricegridmanager.fetchxls/{id1}/{id2}/{id3}/{id4}/{id5}/{id6}/{id7}/{id8}/{id9}/{id10}/{id11}/{id12}/{id13}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricegridmanager.fetchxls/{id1}/{id2}/{id3}/{id4}/{id5}/{id6}/{id7}/{id8}/{id9}/{id10}/{id11}/{id12}/{id13}?templateName=string'Response
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
<root>string</root>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