Pricefx REST API Reference
- List Custom Form Types
The Pricefx Backend API
A Custom Form header logic that defines the inputs, calculation results or a custom header. For embedded Custom Forms, it also defines communication with the parent object.
Sets whether the Custom Form will be standalone or embedded in a module.
List of entities, which are allowed to embed this custom form type (Quote, standalone Custom Form). This is meaningful only when embedded is true.
Applies to standalone Custom Forms. Select a module in whose main menu you want to have this Custom Form available.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/add/CFOT
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/CFOT
- 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/CFOT \
-H 'Content-Type: application/json' \
-d '{
"operation": "add",
"data": {
"uniqueName": "CFOT01",
"label": "CustomFormType01",
"headerFormulaName": "cflogic",
"embedded": false,
"configuration": {
"default": {
"name": "default",
"translationKey": "common_default",
"icon": "compress-arrows",
"tabs": {
"details": {
"name": "details",
"translationKey": "dynamicTab_details",
"type": "details",
"icon": "file-info-alt"
}
}
}
},
"module": "PRICESETTING"
}
}'{ "response": { "node": "string", "data": { … }, "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/fetch/CFOT
- URL:https://companynode.pricefx.com/pricefx/companypartition/fetch/CFOT
- 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/CFOT \
-H 'Content-Type: application/json' \
-d '{
"endRow": 300,
"oldValues": null,
"operationType": "fetch",
"startRow": 0,
"textMatchStyle": "exact",
"data": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "module",
"operator": "equals",
"value": "QUOTING"
}
]
}
}'{ "response": { "node": "pricefx-cluster-app-frontend-7f5685597f-7p2tn", "startRow": 0, "data": [ … ], "endRow": 1, "totalRows": 1, "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/update/CFOT
- URL:https://companynode.pricefx.com/pricefx/companypartition/update/CFOT
- 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/CFOT \
-H 'Content-Type: application/json' \
-d '{
"oldValues": {
"version": 3,
"typedId": "7.CFOT",
"uniqueName": "CFOT",
"label": "MyCustomFormType",
"headerFormulaName": "cflogic",
"embedded": false,
"module": "QUOTING",
"configuration": {
"default": {
"icon": "compress-arrows",
"name": "default",
"tabs": {
"details": {
"icon": "file-info-alt",
"name": "details",
"type": "details",
"translationKey": "dynamicTab_details"
}
},
"translationKey": "common_default"
}
},
"createDate": "2022-05-20T15:02:00",
"createdBy": 2147490696,
"lastUpdateDate": "2022-05-23T10:18:46",
"lastUpdateBy": 2147490696
},
"operationType": "update",
"textMatchStyle": "exact",
"data": {
"embedded": true,
"configuration": null,
"module": null,
"supportedParentTypeCodes": null,
"typedId": "7.CFOT",
"workflowFormulaName": null
}
}'{ "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