Pricefx REST API Reference
- Add a Condition Type
The Pricefx Backend API
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/delete/COHT
- URL:https://companynode.pricefx.com/pricefx/companypartition/delete/COHT
- 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/delete/COHT \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "54.COHT"
}
}'{ "response": { "node": "node1", "data": [ … ], "status": 0 } }
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 } }
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