Pricefx REST API Reference
Pricefx REST API
/Pricefx API Reference/- Delete a Calculation
Get a Quote/Contract/Rebate Agreement/Compensation Plan Header
Add a Compensation Type
List Compensation Types
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
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
Delete a Calculation
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}
Request
Starts the calculation job (JST) of the calculation set. Returns the JobStatusTracker object.
Security
basic or X-PriceFx-jwt
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/calculationrecord.calculateset
- URL:https://companynode.pricefx.com/pricefx/companypartition/calculationrecord.calculateset
- 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/calculationrecord.calculateset \
-H 'Content-Type: application/json' \
-d '{
"data": {
"version": 7,
"typedId": "8.CORSC",
"label": "SC_records2",
"compensationRecordSetId": 1,
"compensationRecordSetLabel": "Sales Compensations",
"calculationConfig": {
"feederInputParams": [],
"inputParams": [],
"mappingParams": [],
"outputElements": []
},
"createDate": "2022-06-24T09:12:39",
"createdBy": 1687,
"lastUpdateDate": "2022-06-24T11:23:35",
"lastUpdateBy": 1687,
"status": "CANCELLED",
"isDefault": false,
"incremental": true,
"shouldSubmit": false,
"valid": true
}
}'Response
application/json
{ "response": { "node": "node1", "data": [ … ], "status": 0 } }
Request
Deletes the specified CompensationRecordSetCalculation object. Returns the deleted object in the response.
Security
basic or X-PriceFx-jwt
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/clicmanager.deleteCompensationCalculation
- URL:https://companynode.pricefx.com/pricefx/companypartition/clicmanager.deleteCompensationCalculation
- 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/clicmanager.deleteCompensationCalculation \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "8.CORSC"
}
}'Response
application/json
{ "response": { "node": "node1", "data": [ … ], "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/compensationrecord.save
- URL:https://companynode.pricefx.com/pricefx/companypartition/compensationrecord.save
- 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/compensationrecord.save \
-H 'Content-Type: application/json' \
-d '{
"data": {
"compensationRecord": {
"typedId": "string",
"resultPrice": 0,
"endDate": null,
"workflowStatus": "DRAFT",
"intgStatus": "string",
"payoutDate": null,
"priceChangePct": 0,
"attribute83": "string",
"attribute82": "string",
"intgStatusDetails": "string",
"attribute81": "string",
"attribute80": "string",
"sourceIdNoRev": "string",
"rank": 0,
"attribute89": "string",
"attribute88": "string",
"sku": "string",
"attribute87": "string",
"attribute86": "string",
"calculationResults": [
{
"resultName": "string",
"resultLabel": "string",
"result": {},
"excludeFromExport": true,
"warnings": [
"string"
],
"alertMessage": "string",
"alertType": "CRITICAL",
"displayOptions": 0,
"formatType": "NUMERIC",
"suffix": "string",
"resultType": "string",
"cssProperties": "string",
"userGroup": "string",
"resultGroup": "string",
"overrideValueOptions": [
null
],
"overrideAllowEmpty": true,
"labelTranslations": "string",
"overridable": true,
"overridden": true,
"resultDescription": "string"
}
],
"attribute85": "string",
"attribute84": "string",
"unitOfMeasure": "string",
"agreementTerms": {
"Target": "string",
"Compensation": "string",
"Payment Period": "string",
"property1": {},
"property2": {}
},
"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",
"messages": [
"string"
],
"attribute13": "string",
"userGroupEdit": "string",
"attribute3": "string",
"attribute12": "string",
"attribute2": "string",
"attribute11": "string",
"attribute99": "string",
"attribute10": "string",
"attribute98": "string",
"attribute97": "string",
"startDate": "2019-08-24T14:15:22Z",
"attribute96": "string",
"status": "DRAFT",
"attribute95": "string",
"formulaName": "string",
"itemExtensions": {},
"agreementClass": "string",
"attribute19": "string",
"attribute18": "string",
"attribute17": "string",
"attribute16": "string",
"attribute15": "string",
"sellerName": "string",
"manual": true,
"calculationDate": "2019-08-24T14:15:22Z",
"manualOverrides": "string",
"calculationBaseAsAdvancedFilterCriteria": {
"_constructor": "string",
"property1": {},
"property2": {}
},
"parentTypedId": "string",
"attribute25": "string",
"submittedByName": "string",
"attribute24": "string",
"currency": "string",
"attribute23": "string",
"attribute22": "string",
"attribute21": "string",
"attribute20": "string",
"createDate": "2019-08-24T14:15:22Z",
"calculationBase": {
"includedCustomerGroups": [
{}
],
"includedProductGroups": [
{}
],
"includedSellerReferences": [
{}
],
"excludedCustomerGroups": [
{}
],
"excludedproductGroups": [
{}
],
"excludedSellerReferences": [
{}
],
"includedTimePeriods": [
{
"timeUnit": "DAY",
"startDate": "2019-08-24T14:15:22Z",
"endDate": "2019-08-24T14:15:22Z",
"single": true
}
],
"excludedTimePeriods": [
{}
],
"otherFilters": [
"string"
],
"dateDimFieldName": "string"
},
"approvalRequiredEmailAttachments": [
null
],
"attribute29": "string",
"compensationStatus": "DRAFT",
"attribute28": "string",
"attribute27": "string",
"attribute26": "string",
"lineId": "string",
"completeResultsAvailable": "s",
"attribute36": "string",
"attribute35": "string",
"attribute34": "string",
"attribute33": "string",
"attribute32": "string",
"attribute31": "string",
"intgStatusErpReference": "string",
"attribute30": "string",
"sourceId": "string",
"seller": {
"sellerId": "string",
"sellerName": "string"
},
"key2": "string",
"attribute39": "string",
"inputs": [
{
"name": "string",
"label": "string",
"lookupTableId": "string",
"url": "string",
"type": "string",
"value": {},
"valueHint": "string",
"readOnly": true,
"filter": {
"property1": {},
"property2": {}
},
"parameterGroup": "string",
"required": true,
"labelTranslations": "string",
"addUnknownValues": true,
"typedId": "string",
"alwaysEditable": true,
"inputs": [
{}
],
"parameterConfig": {
"property1": {},
"property2": {}
},
"formattingOptions": {
"property1": {},
"property2": {}
},
"valueOptions": [
"string"
]
}
],
"lastUpdateDate": "2019-08-24T14:15:22Z",
"attribute38": "string",
"attribute37": "string",
"compensationHeaderType": "string",
"compensationRecordSetLabel": "string",
"deniedByName": "string",
"attribute47": "string",
"attribute46": "string",
"userGroupViewDetails": "string",
"approvedByName": "string",
"attribute45": "string",
"attribute44": "string",
"attribute43": "string",
"attribute42": "string",
"attribute41": "string",
"attribute40": "string",
"priceChange": 0,
"agreementInputs": [
{}
],
"customerGroup": {
"label": "string",
"customerFieldName": "string",
"customerFieldLabel": "string",
"customerFieldValue": "string",
"customerFilterCriteria": {
"property1": {},
"property2": {}
}
},
"attribute49": "string",
"attribute48": "string",
"attribute50": "string",
"attribute100": "string",
"uniqueName": "string",
"calculatedResultPrice": 0,
"name": "string",
"attribute58": "string",
"attribute57": "string",
"attribute56": "string",
"attribute55": "string",
"productFilterString": "string",
"hasWorkflowHistory": true,
"attribute54": "string",
"attribute53": "string",
"attribute52": "string",
"allCalculationResults": [
{
"property1": {},
"property2": {}
}
],
"attribute51": "string",
"calculationBaseJson": "string",
"approvalDate": "2019-08-24T14:15:22Z",
"recordSetLabel": "string",
"attribute59": "string",
"description": "string",
"compensationRecordSetId": 0,
"attribute61": "string",
"attribute60": "string",
"customerFilterString": "string",
"previousPrice": 0,
"attribute69": "string",
"formulaElementGroup": "string",
"attribute68": "string",
"attribute67": "string",
"calculatedWithErrorsMsg": "SUCCESS",
"attribute66": "string",
"attribute65": "string",
"attribute64": "string",
"attribute63": "string",
"attribute62": "string",
"workStatus": "string",
"manualResultPrice": 0,
"compensationConditionType": "string",
"comments": "string",
"warnings": "string",
"approvalState": "NOT_APPROVED",
"label": "string",
"calculatedMsg": "SUCCESS",
"agreementInputsAsMap": {
"property1": {},
"property2": {}
},
"attribute72": "string",
"attribute71": "string",
"attribute70": "string",
"productGroup": {
"label": "string",
"productFieldName": "string",
"productFieldLabel": "string",
"productFieldValue": "string",
"productFilterCriteria": {
"property1": {},
"property2": {}
}
},
"createdBy": 0,
"calculationStatus": 0,
"attribute79": "string",
"attribute78": "string",
"attribute77": "string",
"attribute76": "string",
"attribute75": "string",
"attribute74": "string",
"lastUpdateBy": 0,
"attribute73": "string"
}
}
}'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