Pricefx REST API Reference
- Delete a Price Grid Item (Filter)
The Pricefx Backend API
Request
Sets the approvalState field to Denied.
| Required Permission | Roles with the Required Permission |
|---|---|
| PRICEGRID_SUBMIT | Edit LPG & Add Products (PB_PRICEGRIDEDITOR_ADD_SKU), Edit LPG (PB_PRICEGRIDEDITOR), Administer LPG (PB_PRICEGRIDS) |
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricegridmanager.reject/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricegridmanager.reject/{id}
- 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/pricegridmanager.reject/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"ids": [
"650.PGI"
]
}
}'{ "response": { "node": "<node>", "data": [ … ], "status": 0 } }
Request
Deletes a Live Price Grid Item based on filter settings.
Filter example:
Deletes only Price Grid Items where comments = "del".
{
"data": {
"filterCriteria": {
"operator": "and",
"criteria": [
{
"fieldName": "comments",
"operator": "iEquals",
"value": "del"
}
]
}
}
}| Required Permission | Roles with the Required Permission |
|---|---|
| PRICEGRID_REMOVE | Edit LPG & Add Products (PB_PRICEGRIDEDITOR_ADD_SKU), Administer LPG (PB_PRICEGRIDS) |
Specify an operator of the filter criteria.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricegridmanager.delete/{id}/batch
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricegridmanager.delete/{id}/batch
- 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/pricegridmanager.delete/{id}/batch' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"filterCriteria": {
"operator": "and",
"criteria": [
{
"fieldName": "comments",
"operator": "iEquals",
"value": "del"
}
]
}
}
}'Request
Adds products to the Live Price Grid.
Information: Only products that are not already in the Price Grid will be added. You can specify products by
skus(see the example 1 below) or by filter settings (see example 2).
Example 1:
Adds only products with specified SKUs.
{
"data":{
"skus":[
"p0001",
"p0002"
]
}
}Example 2:
Adds only products where formulaName = "CompetitionPricing".
{
"data":{
"filterCriteria":{
"operator":"and",
"criteria":[
{
"fieldName":"formulaName",
"operator":"iEquals",
"value":"CompetitionPricing"
}
]
}
}
}To add items without a recalculation, use the /pricegridmanager.add/{id}/norecalc endpoint.
| Required Permission | Roles with the Required Permission |
|---|---|
| PRICEGRID_ADD | Edit LPG & Add Products (PB_PRICEGRIDEDITOR_ADD_SKU), Administer LPG (PB_PRICEGRIDS) |
Specify an operator of the filter criteria.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricegridmanager.add/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricegridmanager.add/{id}
- 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/pricegridmanager.add/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"filterCriteria": {
"operator": "and",
"criteria": [
{
"fieldName": "formulaName",
"operator": "iEquals",
"value": "CompetitionPricing"
}
]
}
}
}'{ "response": { "node": "string", "data": null, "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