Pricefx REST API Reference
Pricefx REST API
/Pricefx API Reference/- List Compensation Types
Get a Quote/Contract/Rebate Agreement/Compensation Plan Header
Add a Compensation Type
Update a Compensation Type
Delete a Compensation Type
Add a Condition Type
List Condition Types
Update a Condition Type
Delete a Condition Type
Upsert a Compensation Plan
List Compensation Plans
List CLIC Objects
Update a Quote/Contract/Rebate Agreement/Compensation Plan
Delete a Compensation Plan
Duplicate a Compensation Plan
Recalculate a Quote/Contract/Rebate Agreement/Compensation Plan
Add a Calculation
List Calculations
Save Calculation
Run a Calculation
Delete a Calculation
Save a Compensation Record
List Compensation Records
Update a Compensation Record
Revoke a Compensation Record
List Accrual Records
Send a Document to Sign
Get a Signed Document
Get a Signature Status
Update CLIC Line Items
Delete All Line Items
Import Line Items (w/o Input Types)
Undo Compensation Plan Revocation
Undo Compensation Record Revocation
List Compensation Types
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/COHT
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/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/add/COHT \
-H 'Content-Type: application/json' \
-d '{
"data": {
"uniqueName": "The Test Compensation Type",
"headerFormulaName": "SC_CompensationHeader",
"workflowFormulaName": "SC_SalesCompensationAgreement",
"configuration": null,
"scRecordWorkflowFormulaName": "SC_AgreementRecord"
},
"operation": "add"
}'Response
application/json
{ "response": { "node": "node", "data": [ … ], "status": 0 } }
Request
Retrieves Compensation Types from the Compensation Header Types table. A filter can be applied.
Security
basic or X-PriceFx-jwt
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/fetch/COHT
- URL:https://companynode.pricefx.com/pricefx/companypartition/fetch/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/fetch/COHT \
-H 'Content-Type: application/json' \
-d '{
"endRow": 300,
"oldValues": null,
"operationType": "fetch",
"startRow": 0,
"textMatchStyle": "exact",
"data": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "uniqueName",
"operator": "iEquals",
"value": "The Test Compensation Type"
}
]
}
}'Response
application/json
{ "response": { "node": "node1", "startRow": 0, "data": [ … ], "endRow": 1, "totalRows": 1, "status": 0 } }
Request
Updates a Compensation Type in the Compensation Header Types table. The version property must be provided within the oldValues.
Security
basic or X-PriceFx-jwt
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/update/COHT
- URL:https://companynode.pricefx.com/pricefx/companypartition/update/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/update/COHT \
-H 'Content-Type: application/json' \
-d '{
"data": {
"headerFormulaName": "SC_CompensationHeader2",
"typedId": "54.COHT"
},
"oldValues": {
"version": 0,
"typedId": "54.COHT",
"uniqueName": "The Test Compensation Type 2",
"headerFormulaName": "SC_CompensationHeader",
"workflowFormulaName": "SC_SalesCompensationAgreement",
"configuration": {},
"scRecordWorkflowFormulaName": "SC_AgreementRecord",
"createDate": "2022-06-17T10:14:15",
"createdBy": 1687,
"lastUpdateDate": "2022-06-17T10:14:15",
"lastUpdateBy": 1687
},
"operationType": "update",
"textMatchStyle": "exact"
}'Response
application/json
{ "response": { "node": "string", "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