Pricefx REST API Reference
- Update a Manual Price List Item
The Pricefx Backend API
Specify ids of the items you want to update.
Can be either one of these valid operators: + - * If omitted, the provided value is set (= operator). Otherwise the specified operation is applied.
The new value of the field. If omitted, the field is set to null.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/manualpricelistmanager.massedit/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/manualpricelistmanager.massedit/{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/manualpricelistmanager.massedit/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"filterCriteria": {
"_constructor": "AdvancedCriteria",
"operator": "and",
"criteria": [
{
"fieldName": "id",
"operator": "inSet",
"value": [
"94",
"95"
],
"_constructor": "AdvancedCriteria"
}
]
},
"massEditRecords": [
{
"fieldName": "currency",
"massEditOperator": "=",
"fieldValue": "USD",
"precision": null
}
]
}
}'{ "response": { "node": "string", "data": [ … ], "status": 0 } }
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/manualpricelistmanager.update/{id}/recalculate
- URL:https://companynode.pricefx.com/pricefx/companypartition/manualpricelistmanager.update/{id}/recalculate
- 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/manualpricelistmanager.update/{id}/recalculate' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"typedId": "111.MPLI",
"currency": "USD"
},
"oldValues": {
"version": 2,
"typedId": "111.MPLI",
"sku": "B-0003",
"label": "Rise of the Phoenix",
"unitOfMeasure": "",
"currency": "EUR",
"comments": null,
"pricelistId": 226,
"lastUpdateByName": "admin",
"createdByName": null,
"createDate": "2023-06-02T10:29:21",
"createdBy": 2147490696,
"lastUpdateDate": "2023-06-02T10:29:21",
"lastUpdateBy": 2147490696,
"attribute1": null,
"attribute2": null,
"attribute3": null,
"attribute4": null,
"attribute5": null,
"attribute6": null,
"attribute7": null,
"attribute8": null,
"attribute9": null,
"attribute10": null,
"attribute11": null,
"attribute12": null,
"attribute13": null,
"attribute14": null,
"attribute15": null,
"attribute16": null,
"attribute17": null,
"attribute18": null,
"attribute19": null,
"attribute20": null,
"attribute21": null,
"attribute22": null,
"attribute23": null,
"attribute24": null,
"attribute25": null,
"attribute26": null,
"attribute27": null,
"attribute28": null,
"attribute29": null,
"attribute30": null,
"_key": "111.MPLI",
"_level": 0
},
"operationType": "update",
"textMatchStyle": "exact"
}'{ "response": { "node": "string", "data": [ … ], "status": 0 } }
Request
Adds or updates a product in the specified Manual Price List.
To add a new product that does not exist, specify the sku parameter in the request.
To update an existing product, specify the sku or typedId parameter of the existing product. The /integrate method performs a partial update – it does not delete values from fields that have not been specified in the update request.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/manualpricelistmanager.integrate/{id}
- URL:https://companynode.pricefx.com/pricefx/companypartition/manualpricelistmanager.integrate/{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/manualpricelistmanager.integrate/{id}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"sku": "P00110101",
"label": "tofu",
"currency": "USD",
"comments": "The final version."
}
}'- listProductsResponseExample_resultFields
- listProductsResponseExample_valueFields
- listProductsResponseExample
{ "response": { "node": "node", "startRow": 0, "data": [ … ], "endRow": 8, "totalRows": 8, "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