Pricefx REST API Reference
- List Condition Types
The Pricefx Backend API
The CompensationConditionType object. The type code is COCT.
Defines which logic will be used to calculate particular Compensation Condition Type and what parameters (in attributeX fields) will be available to the logic when it executes.
Whether you use a different logic for various Compensation Condition Types or the same logic, depends on how much different the processes behind the various Compensation Condition Types are.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/add/COCT
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/COCT
- 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/COCT \
-H 'Content-Type: application/json' \
-d '{
"data": {
"uniqueName": "SingleTargetAmount",
"label": "Single Target Amount",
"formulaName": "SC_Compensation",
"attribute1": "Header Level",
"attribute3": "Annually",
"attribute4": "Fixed Amount",
"attribute5": 2,
"attribute9": "Annual",
"attribute11": "Non-Cumulative"
},
"operationType": "add"
}'{ "response": { "node": "node1", "data": [ … ], "status": 0 } }
Request
Retrieves one or more (based on filter settings) Condition Types from the Compensation Condition Types table.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/fetch/COCT
- URL:https://companynode.pricefx.com/pricefx/companypartition/fetch/COCT
- 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/fetch/COCT \
-H 'Content-Type: application/json' \
-d '{
"endRow": 0,
"oldValues": {},
"operationType": "string",
"startRow": 0,
"textMatchStyle": "string",
"data": {
"_constructor": "string",
"operator": "string",
"criteria": [
{
"fieldName": "string",
"operator": "string",
"value": 0
}
]
}
}'{ "response": { "node": "node1", "startRow": 0, "data": [ … ], "endRow": 1, "totalRows": 1, "status": 0 } }
Request
Updates a Condition Type in the Compensation Condition Types table. The version property must be provided within the oldValues.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/update/COCT
- URL:https://companynode.pricefx.com/pricefx/companypartition/update/COCT
- 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/COCT \
-H 'Content-Type: application/json' \
-d '{
"data": {
"uniqueName": "test_updated",
"label": "test - updated",
"userGroupEdit": "Administrators",
"userGroupViewDetails": "PricingManagers",
"typedId": "18.COCT"
},
"oldValues": {
"version": 2,
"typedId": "18.COCT",
"uniqueName": "test",
"label": "test",
"userGroupEdit": null,
"userGroupViewDetails": null,
"formulaName": null,
"waterfallElement": null,
"createDate": "2022-06-20T09:46:41",
"createdBy": 2147490696,
"lastUpdateDate": "2022-06-21T09:31:35",
"lastUpdateBy": 2147490696,
"attribute1": null,
"attribute2": null,
"attribute3": null,
"attribute4": null,
"attribute5": null,
"attribute6": null,
"attribute7": null,
"attribute8": null,
"attribute9": null,
"attribute10": null,
"attribute11": null,
"attribute12": null,
"attribute13": null,
"attribute14": null,
"attribute15": null,
"attribute16": null,
"attribute17": null,
"attribute18": null,
"attribute19": null,
"attribute20": null,
"attribute21": null,
"attribute22": null,
"attribute23": null,
"attribute24": null,
"attribute25": null,
"attribute26": null,
"attribute27": null,
"attribute28": null,
"attribute29": null,
"attribute30": null
},
"operationType": "update",
"textMatchStyle": "exact"
}'{ "response": { "node": "node", "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