Creates or updates a Compensation Plan. Assigns new uniqueName
when a new Compensation Plan is created. To update a Compensation Plan, specify the existing uniqueName
.
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
{- "data": {
- "compensation": {
- "inputs": [
- {
- "label": "Customer(s)",
- "name": "CustomerGroup",
- "type": "CUSTOMERGROUP"
}, - {
- "label": "Product(s)",
- "name": "ProductGroup",
- "type": "PRODUCTGROUP"
}
], - "outputs": [ ],
- "lineItems": [ ],
- "label": "New Compensation Plan",
- "nodeId": 0,
- "compensationHeaderType": null,
- "userGroupEdit": null,
- "userGroupViewDetails": null,
- "startDate": "2022-06-22",
- "endDate": "2022-06-22",
- "targetDate": null,
- "externalRef": null,
- "viewState": { }
}
}
}
{- "response": {
- "node": "node",
- "data": [
- {
- "version": 4,
- "typedId": "6.CO",
- "uniqueName": "CO-6",
- "label": "New Compensation Plan",
- "targetDate": "2022-06-22",
- "workflowStatus": "DRAFT",
- "headerText": null,
- "inputs": [
- {
- "name": "CustomerGroup",
- "label": "Customer(s)",
- "lookupTableId": null,
- "url": null,
- "type": "CUSTOMERGROUP",
- "value": null,
- "valueHint": null,
- "readOnly": null,
- "filter": null,
- "parameterGroup": null,
- "required": null,
- "labelTranslations": null,
- "addUnknownValues": null,
- "typedId": null,
- "alwaysEditable": null,
- "inputs": [ ],
- "parameterConfig": { },
- "formattingOptions": { },
- "valueOptions": null
}, - {
- "name": "ProductGroup",
- "label": "Product(s)",
- "lookupTableId": null,
- "url": null,
- "type": "PRODUCTGROUP",
- "value": null,
- "valueHint": null,
- "readOnly": null,
- "filter": null,
- "parameterGroup": null,
- "required": null,
- "labelTranslations": null,
- "addUnknownValues": null,
- "typedId": null,
- "alwaysEditable": null,
- "inputs": [ ],
- "parameterConfig": { },
- "formattingOptions": { },
- "valueOptions": null
}
], - "viewState": {
- "gridViewState": null,
- "openFolders": null,
- "selectedNodes": null
}, - "outputs": [ ],
- "lastUpdateByName": "admin",
- "createdByName": "admin",
- "submittedByName": null,
- "calculationStatus": 0,
- "dirty": false,
- "refreshInputs": false,
- "nodeId": 0,
- "userGroupEdit": null,
- "userGroupViewDetails": null,
- "serverMessages": [
- "Compensation plan calculated successfully"
], - "additionalInfo1": null,
- "additionalInfo2": null,
- "additionalInfo3": null,
- "additionalInfo4": null,
- "numberOfAttachments": 0,
- "creationWorkflowStatus": null,
- "creationWorkflowCurrentStep": null,
- "creationWorkflowStepCount": null,
- "creationWorkflowStepLabel": null,
- "signature": null,
- "lineItems": [ ],
- "sellerGroup": null,
- "customerGroup": null,
- "startDate": "2022-06-22",
- "endDate": "2022-06-22",
- "payoutDate": "2022-06-22",
- "compensationRecordSetId": null,
- "compensationRecordSetLabel": null,
- "simulationSet": null,
- "simulationType": null,
- "status": "DRAFT",
- "compensationStatus": "DRAFT",
- "readOnlyLineItemClass": "net.pricefx.domain.CompensationReadOnlyLineItem",
- "formulaElementGroupReadOnly": "compensationReadOnly",
- "successfulCalculationMsg": "COMPENSATION_CALCULATED",
- "calculationWithErrorsMsg": "COMPENSATION_CALCULATED_WITHERRORS",
- "conditionTypeClass": "net.pricefx.domain.CompensationConditionType",
- "formulaElementGroup": "compensation",
- "approvalRequiredEmailAttachmentsJson": null,
- "renderInfo": null,
- "serverMessagesExtended": [
- {
- "key": null,
- "message": "Compensation plan calculated successfully"
}
], - "approvedByName": null,
- "deniedByName": null,
- "hasWorkflowHistory": false,
- "createDate": "2022-06-22T08:33:41",
- "createdBy": 2147490696,
- "lastUpdateDate": "2022-06-22T08:33:41",
- "lastUpdateBy": 2147490696,
- "supersededBy": null,
- "prevRev": null,
- "rootUniqueName": "CO-6",
- "compensationHeaderType": null
}
], - "status": 0
}
}