Pricefx REST API Reference
- Delete Objects
The Pricefx Backend API
The object's type code. See the list of Type Codes.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/resetcolumn/{TypeCode}/{columnName}
- URL:https://companynode.pricefx.com/pricefx/companypartition/resetcolumn/{TypeCode}/{columnName}
- 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/resetcolumn/{TypeCode}/{columnName}'{ "response": { "node": "string", "csrfToken": "string", "data": null, "status": 0 } }
Request
Deletes multiple objects based on filter settings.
Please Note: Invalid filter clauses are ignored. This could potentially lead to a full table truncate (the whole type without filter is deleted)! Use the forcefilter variant to enforce a filter in all cases!
The object's type code. See the list of Type Codes.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/delete/{TypeCode}/batch/forcefilter
- URL:https://companynode.pricefx.com/pricefx/companypartition/delete/{TypeCode}/batch/forcefilter
- 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/{TypeCode}/batch/forcefilter' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"filterCriteria": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "currency",
"operator": "iEquals",
"value": "EUR"
}
]
}
}
}'{ "response": { "node": "string", "data": [ … ], "status": 0 } }
Request
Creates an object. Only one object can be added per request (unless batched).
Information: Some object types may be blocked from being added by the update command as special processing is done by a dedicated manager command.
The object's type code. See the list of Type Codes.
The initial values of the object. The request needs to contain all fields that are part of the business key for that object and all non-nullable fields.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/add/{TypeCode}
- URL:https://companynode.pricefx.com/pricefx/companypartition/add/{TypeCode}
- 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/{TypeCode}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"sku": "product001",
"label": "The Label 99",
"currency": "USD",
"formulaName": "PriceList",
"attribute1": "123",
"attribute2": "2"
},
"operation": "add"
}'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