Submit a Calculation Grid Item

post/calculationgridmanager.accept/{id}

Submits the CalculationGridItems to the workflow.


Required Permission Roles with the Required Permission
CALCULATIONGRID_SUBMIT Edit Calculation Grid & Add Products (CALCULATIONGRID_ADD), Edit CG (PB_CALCULATIONGRIDEDITOR), Administer CG (PB_CALCULATIONGRIDS)
Securitybasic or X-PriceFx-jwt
Request
path Parameters
id
required
string

The id of the Calculation Grid you want to submit items for. You can retrieve the id of the CG, for example, by calling the /fetch/CG endpoint.

Request Body schema: application/json
required
object
ids
required
Array of objects

Specify typedIds of items you want to accept.

Responses
200

OK - In case that more than one item is passed in the request, the body will not contain any data ("data":null). For a single item, the new CalculationGridItem object is returned.

OK

Response Schema: application/json
object
node
string
Array of objects (CalculationGrid)
Array
lastUpdateByName
string or null <= 255 characters
createdByName
string or null <= 255 characters
updateDate
string or null <date>
typedId
string
configuration
string
relativeTargetDateDays
integer or null
lastUpdateDate
string <date-time>
numberOfSubmittedItems
integer
numberOfAutoApprovedItems
integer
locale
string or null <= 255 characters
numberOfDeniedItems
integer
calculationDate
string or null <date-time>
keyGenerationType
string <= 255 characters
Possible values: "DATA_DRIVEN" "LOGIC_DRIVEN" "MANUAL"
writeOnlyChangedItems
boolean
userGroupViewDetails
string or null <= 255 characters
id
integer
calculationGridType
string or null <= 255 characters
Possible values: "CG1" "CG2" "CG3" "CG4" "CG5" "CG6" null
createDate
string <date-time>
calculationMessages
string or null
updatedBy
integer
numberOfApprovedItems
integer
keySize
integer
targetDate
string <date>
label
string <= 255 characters
version
integer
partialCalculationDate
string or null <date-time>
numberOfOpenItems
integer
createdBy
integer
numberOfItems
integer
userGroupEdit
string or null <= 255 characters
nodeId
integer or null
keepManualOverrides
boolean
calculationStartDate
string or null <date-time>
lastUpdateBy
integer
status
string <= 255 characters
Possible values: "DRAFT" "PENDING" "SCHEDULED" "PROCESSING" "SCHEDULED_DIRTY" "ERROR" "READY" "CANCELLED"
approvalLevel
string <= 255 characters
Value: "LINE_ITEM"
status
integer
Request samples
application/json
{
  • "data": {
    • "ids": [
      • "12.CGI",
      • "13.CGI",
      • "17.CGI",
      • "18.CGI",
      • "19.CGI"
      ]
    }
}
Response samples
application/json
{
  • "response": {
    • "node": "pricefx-cluster-app-frontend-5459985ccb-cwdn6",
    • "data": [
      • {
        • "version": 0,
        • "typedId": "3.CG",
        • "targetDate": "2023-03-30",
        • "label": "CGtest",
        • "numberOfItems": 0,
        • "keepManualOverrides": false,
        • "writeOnlyChangedItems": false,
        • "configuration": "{\"logicDriven\":{\"keyGenerationLogic\":\"KeyLogic_CalculationGrid\",\"keyLogicElement\":\"KeyList_1Keys\"},\"keyHandlingMode\":\"auto\",\"calculationLogic\":\"SampleFlexibleCalculationGridLogic\",\"elementNames\":[\"KeySize\",\"Warning\",\"NumericLongResult\",\"DateResult\",\"MatrixResult\",\"PercentResult\",\"PXSearch\"],\"hiddenElementNames\":[],\"approvalTriggerFields\":[],\"approvalMappings\":{}}",
        • "numberOfApprovedItems": 0,
        • "numberOfOpenItems": 0,
        • "numberOfDeniedItems": 0,
        • "numberOfSubmittedItems": 0,
        • "numberOfAutoApprovedItems": 0,
        • "keySize": 0,
        • "keyGenerationType": "LOGIC_DRIVEN",
        • "updateDate": "2022-11-23",
        • "updatedBy": 2147490187,
        • "createDate": "2022-11-23T10:26:52",
        • "createdBy": 2147490187,
        • "lastUpdateDate": "2022-11-23T10:26:52",
        • "lastUpdateBy": 2147490187,
        • "status": "DRAFT",
        • "id": 3
        }
      ],
    • "status": 0
    }
}