Pricefx REST API Reference
Pricefx REST API
/Pricefx API Reference/- Update a Configuration Storage
Add a Configuration Storage
Get a Configuration Storage
Delete a Configuration Storage
Deploy a Configuration Storage
Update a Configuration St...
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/JCS
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/JCS
- 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/JCS \
-H 'Content-Type: application/json' \
-d '{
"operationType": "add",
"textMatchStyle": "exact",
"data": {
"name": "NewStrategy",
"label": "NewStrategy",
"jsonStorage": "{\"blocks\":{\"languageVersion\":0,\"blocks\":[{\"type\":\"strategy_custom\",\"inputs\":{\"PRICE\":{\"shadow\":{\"type\":\"math_number\",\"fields\":{\"NUM\":0}}}},\"id\":\"root\"}]},\"variables\":[]}",
"storageType": "STRATEGY"
}
}'Response
application/json
{ "response": { "node": "pricefx-cluster-app-frontend-6b88584c79-dd656", "data": [ … ], "status": 0 } }
Bodyapplication/json
The type code is JCS. Stores configuration for Strategy Designer and Formula Designer.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/update/JCS
- URL:https://companynode.pricefx.com/pricefx/companypartition/update/JCS
- 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/JCS \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "6.JCS",
"jsonStorage": "{\"blocks\":{\"languageVersion\":0,\"blocks\":[{\"type\":\"strategy_custom\",\"id\":\"root\",\"x\":5,\"y\":5,\"deletable\":false,\"extraState\":{\"variablesConnected\":false},\"fields\":{\"NAME\":\"Strategy\",\"VARIABLES_VISIBLE\":false},\"inputs\":{\"PRICE\":{\"shadow\":{\"type\":\"math_number\",\"id\":\"v{M-:wNRC^(^n$J#amFx\",\"fields\":{\"NUM\":2}}}}}]}}"
},
"oldValues": {
"version": 1
}
}'Response
application/json
{ "response": { "node": "pricefx-cluster-app-frontend-7f9df9bb9-dsmcx", "data": [ … ], "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/fetch/JCS
- URL:https://companynode.pricefx.com/pricefx/companypartition/fetch/JCS
- 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/JCS \
-H 'Content-Type: application/json' \
-d '{
"oldValues": null,
"operationType": "fetch",
"textMatchStyle": "exact",
"data": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "storageType",
"operator": "equals",
"value": "STRATEGY",
"_constructor": "AdvancedCriteria"
}
]
},
"sortBy": [
"-lastUpdateDate"
]
}'Response
application/json
{ "response": { "status": 0, "startRow": 0, "node": "pricefx-cluster-app-frontend-85ff9ccf66-hk7k7", "data": [ … ], "endRow": 2 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/add/JCS
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/JCS
- 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/JCS \
-H 'Content-Type: application/json' \
-d '{
"operationType": "add",
"textMatchStyle": "exact",
"data": {
"name": "NewStrategy",
"label": "NewStrategy",
"jsonStorage": "{\"blocks\":{\"languageVersion\":0,\"blocks\":[{\"type\":\"strategy_custom\",\"inputs\":{\"PRICE\":{\"shadow\":{\"type\":\"math_number\",\"fields\":{\"NUM\":0}}}},\"id\":\"root\"}]},\"variables\":[]}",
"storageType": "STRATEGY"
}
}'Response
application/json
{ "response": { "node": "pricefx-cluster-app-frontend-6b88584c79-dd656", "data": [ … ], "status": 0 } }
Bodyapplication/json
The type code is JCS. Stores configuration for Strategy Designer and Formula Designer.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/update/JCS
- URL:https://companynode.pricefx.com/pricefx/companypartition/update/JCS
- 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/JCS \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "6.JCS",
"jsonStorage": "{\"blocks\":{\"languageVersion\":0,\"blocks\":[{\"type\":\"strategy_custom\",\"id\":\"root\",\"x\":5,\"y\":5,\"deletable\":false,\"extraState\":{\"variablesConnected\":false},\"fields\":{\"NAME\":\"Strategy\",\"VARIABLES_VISIBLE\":false},\"inputs\":{\"PRICE\":{\"shadow\":{\"type\":\"math_number\",\"id\":\"v{M-:wNRC^(^n$J#amFx\",\"fields\":{\"NUM\":2}}}}}]}}"
},
"oldValues": {
"version": 1
}
}'Response
application/json
{ "response": { "node": "pricefx-cluster-app-frontend-7f9df9bb9-dsmcx", "data": [ … ], "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/fetch/JCS
- URL:https://companynode.pricefx.com/pricefx/companypartition/fetch/JCS
- 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/JCS \
-H 'Content-Type: application/json' \
-d '{
"oldValues": null,
"operationType": "fetch",
"textMatchStyle": "exact",
"data": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "storageType",
"operator": "equals",
"value": "STRATEGY",
"_constructor": "AdvancedCriteria"
}
]
},
"sortBy": [
"-lastUpdateDate"
]
}'Response
application/json
{ "response": { "status": 0, "startRow": 0, "node": "pricefx-cluster-app-frontend-85ff9ccf66-hk7k7", "data": [ … ], "endRow": 2 } }
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