Pricefx REST API Reference
Pricefx REST API
/Pricefx API Reference/- Add a Claim Type
Update a Claim Type
Delete a Claim Type
List Claim Types
Add a Claim Type
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/CLT
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/CLT
- 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/CLT \
-H 'Content-Type: application/json' \
-d '{
"data": {
"uniqueName": "CLT01",
"label": "Claim Type 01",
"formulaName": "claimCalculation",
"sheetName": "DATA",
"validationStateElementName": "validationState",
"allocationFormulaName": "claimAllocation"
},
"operation": "add"
}'Response
application/json
{ "response": { "node": "node", "data": [ … ], "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/update/CLT
- URL:https://companynode.pricefx.com/pricefx/companypartition/update/CLT
- 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/CLT \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "12.CLT",
"configuration": {
"columns": {
"sku": {
"name": null,
"fieldFormatType": null,
"canEdit": true
}
}
}
},
"oldValues": {
"version": 0,
"typedId": "12.CLT",
"uniqueName": "CLT01",
"label": "Claim Type 01",
"formulaName": "claimCalculation",
"allocationFormulaName": "claimAllocation",
"validationStateElementName": "validationState",
"sheetName": "DATA",
"createDate": "2022-10-07T09:13:41",
"createdBy": 2147490187,
"lastUpdateDate": "2022-10-07T09:13:41",
"lastUpdateBy": 2147490187
},
"operationType": "update",
"textMatchStyle": "exact"
}'Response
application/json
{ "response": { "node": "node", "data": [ … ], "status": 0 } }
Request
Deletes a Claim Type. Specify the typedId of the Claim Type you want to delete in the request (see the request example).
Security
basic or X-PriceFx-jwt
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/delete/CLT
- URL:https://companynode.pricefx.com/pricefx/companypartition/delete/CLT
- 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/CLT \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "13.CLT"
}
}'Response
application/json
{ "response": { "node": "pricefx-cluster-app-frontend-57c6448bd-62zqf", "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