Pricefx REST API Reference
- Count Mass Action Items
The Pricefx Backend API
Request
Performs a mass workflow action on specified Price Grid Items based on filter settings.
Example:
Approves only products where activePrice = 250.
{
"data":{
"_constructor":"AdvancedCriteria",
"operator":"and",
"criteria":[
{
"fieldName":"activePrice",
"operator":"equals",
"value":250
}
],
"workflowAction":"APPROVED",
"comment":"Approved."
}
}| Required Permission | Roles with the Required Permission |
|---|---|
| PRICEGRID_UPDATE | Edit LPG & Add Products (PB_PRICEGRIDEDITOR_ADD_SKU), Edit LPG (PB_PRICEGRIDEDITOR), Administer LPG (PB_PRICEGRIDS) |
Specify the criteria for which you want to filter the data.
Specify columns (fields) you want to apply the workflow action to.
Specify an operator of the filter criteria.
Specify the workflow action you want to perform.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricegridmanager.massaction/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricegridmanager.massaction/{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.massaction/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "activePrice",
"operator": "equals",
"value": 11
}
],
"workflowAction": "SUBMITTED",
"comment": ""
}
}'{ "response": { "node": "string", "data": null, "status": 0 } }
Request
Returns a number of Price Grid Items that would be affected by the mass action operation.
totalRows value = number of affected items.
| Required Permission | Roles with the Required Permission |
|---|---|
| PRICEGRID_UPDATE | Edit LPG & Add Products (PB_PRICEGRIDEDITOR_ADD_SKU), Edit LPG (PB_PRICEGRIDEDITOR), Administer LPG (PB_PRICEGRIDS) |
Specify an operator of the filter criteria.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricegridmanager.massactioncount/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricegridmanager.massactioncount/{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.massactioncount/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "currency",
"operator": "iEquals",
"value": "USD"
}
],
"workflowAction": "SUBMITTED"
}
}'{ "response": { "node": "string", "data": null, "totalRows": 0, "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/pricegridmanager.convert2pl/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/pricegridmanager.convert2pl/{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.convert2pl/{id}'{ "response": { "node": "<node>", "csrfToken": "<token>", "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