Pricefx REST API Reference
- Calculate a Pricelist
The Pricefx Backend API
Request
Creates a revision of the Price List.
| Required Permission | Roles with the Required Permission |
|---|---|
| PRICELIST_ADD | Administer Price Lists (PB_PRICELISTS), Manage Price Lists (PB_PRICELISTSEDITOR) |
Specifies parameter names and values used for formula computation.
A flag to indicate if manual overrides should be preserved in the revision.
Specifies whether the original product filter criteria (if still available/applicable) should be used.
A flag to indicate if only items with price changes should be written to the revision.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricelistmanager.add/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricelistmanager.add/{id}
- 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/pricelistmanager.add/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"priceListName": "PriceList01",
"targetDate": "2021-11-10T14:46:08.508Z",
"errorMode": "SKIP",
"keepManualOverrides": true,
"useFilter": true,
"writeOnlyChangedItems": true,
"configuration": {
"shotgunModeEnabled": false,
"notifyWhenFinished": "EMAIL",
"plTypeTypeId": null,
"preferencesSource": 2147490401,
"sortKeys": null,
"defaultFormulaOverride": "PriceList",
"resultElementName": "ListPrice",
"matrixFormulaName": null,
"matrixElementName": null,
"uomOverrideElementName": null,
"currencyOverrideElementName": null,
"elementNames": [
"ListPrice"
],
"hiddenElementNames": [],
"formulaParameters": {}
},
"override": null
}
}'{ "response": { "node": "<node>", "startRow": 0, "data": [ … ], "endRow": 4, "totalRows": 4, "status": 0 } }
Request
Calculates the Price List specified by id in the path parameter.
| Required Permission | Roles with the Required Permission |
|---|---|
| PRICELIST_UPDATE | Administer Price Lists (PB_PRICELISTS), Manage Price Lists (PB_PRICELISTSEDITOR) |
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricelistmanager.calculate/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricelistmanager.calculate/{id}
- 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/pricelistmanager.calculate/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"fullListRecalc": false
}
}'{ "response": { "node": "pricefx-cluster-app-frontend-85cd8bf896-9x45v", "data": [ … ], "status": 0 } }
Request
Updates the Price List Item (PLI) of the Pricelist specified by id in the path parameter.
| Required Permission | Roles with the Required Permission |
|---|---|
| PRICELIST_UPDATE | Administer Price Lists (PB_PRICELISTS), Manage Price Lists (PB_PRICELISTSEDITOR) |
The type code is PLI.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricelistmanager.update/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricelistmanager.update/{id}
- 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/pricelistmanager.update/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "string",
"comments": "string",
"manualResultPrice": "string"
},
"oldValues": {
"typedId": "string",
"listLabel": "string",
"resultPrice": 0,
"priceChangePct": 0,
"attribute83": "string",
"attribute82": "string",
"attribute81": "string",
"attribute80": "string",
"attribute89": "string",
"attribute88": "string",
"sku": "string",
"attribute87": "string",
"attribute86": "string",
"calculationResults": [
{
"resultName": "string",
"resultLabel": "string",
"result": "string",
"excludeFromExport": true,
"warnings": [
"string"
],
"alertMessage": "string",
"alertType": "CRITICAL",
"displayOptions": 0,
"formatType": "NUMERIC",
"suffix": "string",
"resultType": "string",
"cssProperties": "string",
"userGroup": "string",
"resultGroup": "string",
"overrideValueOptions": [
"string"
],
"overrideAllowEmpty": true,
"labelTranslations": "string",
"overridable": true,
"overridden": true,
"resultDescription": "string"
}
],
"attribute85": "string",
"attribute84": "string",
"unitOfMeasure": "string",
"targetDate": "2019-08-24T14:15:22Z",
"allowedOverrides": "string",
"version": 0,
"alerts": "string",
"attribute9": "string",
"attribute94": "string",
"attribute8": "string",
"attribute93": "string",
"attribute92": "string",
"attribute91": "string",
"attribute5": "string",
"attribute90": "string",
"attribute4": "string",
"attribute7": "string",
"attribute6": "string",
"attribute1": "string",
"attribute14": "string",
"attribute13": "string",
"attribute3": "string",
"attribute12": "string",
"attribute2": "string",
"attribute11": "string",
"attribute99": "string",
"attribute10": "string",
"attribute98": "string",
"attribute97": "string",
"attribute96": "string",
"attribute95": "string",
"updateDate": "2019-08-24",
"itemExtensions": {},
"attribute19": "string",
"attribute18": "string",
"attribute17": "string",
"attribute16": "string",
"attribute15": "string",
"manualOverrides": "string",
"attribute25": "string",
"attribute24": "string",
"currency": "string",
"attribute23": "string",
"attribute22": "string",
"attribute21": "string",
"attribute20": "string",
"createDate": "2019-08-24T14:15:22Z",
"attribute29": "string",
"attribute28": "string",
"attribute27": "string",
"attribute26": "string",
"completeResultsAvailable": true,
"attribute36": "string",
"attribute35": "string",
"attribute34": "string",
"attribute33": "string",
"attribute32": "string",
"attribute31": "string",
"attribute30": "string",
"key2": "string",
"attribute39": "string",
"lastUpdateDate": "2019-08-24T14:15:22Z",
"attribute38": "string",
"attribute37": "string",
"attribute47": "string",
"attribute46": "string",
"attribute45": "string",
"attribute44": "string",
"attribute43": "string",
"attribute42": "string",
"attribute41": "string",
"attribute40": "string",
"priceChange": 0,
"updatedBy": 0,
"attribute49": "string",
"attribute48": "string",
"attribute50": "string",
"attribute100": "string",
"calculatedResultPrice": 0,
"attribute58": "string",
"attribute57": "string",
"attribute56": "string",
"attribute55": "string",
"attribute54": "string",
"attribute53": "string",
"attribute52": "string",
"allCalculationResults": [
{
"property1": "string",
"property2": "string"
}
],
"attribute51": "string",
"attribute59": "string",
"attribute61": "string",
"attribute60": "string",
"previousPrice": 0,
"attribute69": "string",
"attribute68": "string",
"attribute67": "string",
"attribute66": "string",
"attribute65": "string",
"attribute64": "string",
"attribute63": "string",
"attribute62": "string",
"workStatus": "string",
"manualResultPrice": 0,
"comments": "string",
"pricelistId": 0,
"warnings": "string",
"approvalState": 0,
"label": "string",
"attribute72": "string",
"attribute71": "string",
"attribute70": "string",
"createdBy": 0,
"attribute79": "string",
"attribute78": "string",
"attribute77": "string",
"attribute76": "string",
"attribute75": "string",
"attribute74": "string",
"lastUpdateBy": 0,
"attribute73": "string"
},
"operationType": "string",
"textMatchStyle": "string"
}'{ "response": { "node": "pricefx-cluster-app-frontend-5fcf48565-lz98n", "data": [ … ], "status": 0 } }
See the Key-Value Database Storage Knowledge Base article for more details.
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