Pricefx REST API Reference
- Delete All Line Items
The Pricefx Backend API
Request
Updates specified line item fields of a CLIC object (Quote, Agreements & Promotions (Contract), Rebate Agreement, or Compensation Plan).
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/clicmanager.updatelineitems/{typedId}
- URL:https://companynode.pricefx.com/pricefx/companypartition/clicmanager.updatelineitems/{typedId}
- 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/clicmanager.updatelineitems/2147489828.Q \
-H 'Content-Type: application/json' \
-d '{
"data": {
"lineItems": [
{
"version": 1,
"typedId": "2147506890.QLI",
"inputs": [
{
"name": "Quantity",
"value": 2
},
{
"name": "Quantity",
"value": 5
}
]
}
]
}
}'{ "response": { "node": "pricefx-cluster-app-frontend-5db9bf487f-58sbn", "data": [ … ], "status": 0 } }
Request
Removes all line items from a specified CLIC (Quote,Agreements & Promotions (Contract), Rebate Agreement, Compensation Plan) object.
This action can be performed only on doucments in the DRAFT status.
If 'Recalculate after line item modification' option is set then the document is recalculated.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/clicmanager.removeallitems/{typedId}
- URL:https://companynode.pricefx.com/pricefx/companypartition/clicmanager.removeallitems/{typedId}
- 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/clicmanager.removeallitems/{typedId}' \
-H 'Content-Type: application/json' \
-d '{}'{ "response": { "node": "pricefx-cluster-app-frontend-657c8dd448-5w72q", "data": [ … ], "status": 0 } }
Request
Imports CLIC line items without specified input types, alowing to assign the input type to the line item using logic.
The input name of the imported line item in the API request is compared with the name of inputs generated by the line item logic. If those names are equal, the input type from the calculation logic is used.
- Mock serverhttps://api.pricefx.com/_mock/openapi/reference/pricefx-server_openapi/clicmanager.importlineitems/{typedId}
- URL:https://companynode.pricefx.com/pricefx/companypartition/clicmanager.importlineitems/{typedId}
- 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/clicmanager.importlineitems/{typedId}' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"parent": "ROOT",
"skus": [
{
"inputs": [
{
"name": "Integer Input",
"value": "123"
}
],
"label": "TEST",
"sku": "B-0006",
"folder": false
}
]
}
}'{ "response": { "node": "pricefx-cluster-app-frontend-79df676dd9-lr6pk", "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