Pricefx REST API Reference
- Export an Excel File (XLSX)
The Pricefx Backend API
Request
Imports a list of Data Load definitions. Existing definitions will be updated.
Information: Omitting a property is equivalent to setting it to null. With one exception: a previously existing
incLoadDatewill be retained.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.importdataloads
- URL:https://companynode.pricefx.com/pricefx/companypartition/datamart.importdataloads
- 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/datamart.importdataloads \
-H 'Content-Type: application/json' \
-d '{
"data": {
"dataLoads": [
{
"typedId": "string",
"type": "string",
"targetName": "string",
"sourceName": "string",
"continuous": true,
"incremental": true,
"incLoadDate": "string",
"calculationMessages": [
{}
],
"valid": "string"
}
]
}
}'Request
Downloads an XLSX file. The returned file contains all definitions (meta) and the data. This is useful for importing the Data Source, Datamart, or Data Feed definitions + data in some other instance or partition.
Set this parameter to override the default timeout (60 seconds) of the query. The maximum allowed timeout is 300 seconds. The default timeout value and the maximum timeout value can be configured in the backend. Setting higher timeout can be useful, for example, when a query takes long time (e.g., when processing large tables).
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.exportdata/xlsx
- URL:https://companynode.pricefx.com/pricefx/companypartition/datamart.exportdata/xlsx
- 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/datamart.exportdata/xlsx?timeout=20' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"fieldCollections": [
"DMDS.Transactions"
],
"sanitize": true
}
}'Request
Downloads a ZIP file. The returned ZIP file contains Data Source, Datamart, or Data Feed definitions in the JSON file and data in the CSV file.
Set this parameter to override the default timeout (60 seconds) of the query. The maximum allowed timeout is 300 seconds. The default timeout value and the maximum timeout value can be configured in the backend. Setting higher timeout can be useful, for example, when a query takes long time (e.g., when processing large tables).
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/datamart.exportdata
- URL:https://companynode.pricefx.com/pricefx/companypartition/datamart.exportdata
- 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/datamart.exportdata?timeout=20' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"fieldCollections": [
"DMDS.Transactions"
],
"sanitize": true
}
}'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