Add Products to a Quote

post/quotemanager.addproducts

Adds specified product items to the quote. The quote is recalculated after the items are added.

Required Permission Roles with the Required Permission
QUOTE_UPDATE Edit Quoting (PRICESHOP_EDIT), Administer Quoting (PRICESHOP_QUOTEADMIN), Manage Quoting (PRICESHOP)
Securitybasic or X-PriceFx-jwt
Request
Request Body schema: application/json
required
object
required
object
version
required
number
typedId
required
string non-empty
uniqueName
required
string non-empty
label
required
string non-empty
targetDate
required
string non-empty
workflowStatus
required
string non-empty
headerText
required
string non-empty
required
Array of objects non-empty unique
Array (non-empty)
name
required
string non-empty
label
required
string non-empty
lookupTableId
any
url
required
string non-empty
type
required
string non-empty
value
required
string non-empty
valueHint
required
string non-empty
readOnly
any
filter
any
parameterGroup
any
required
any
labelTranslations
any
addUnknownValues
any
typedId
any
alwaysEditable
any
inputs
Array of objects
parameterConfig
object
formattingOptions
object
valueOptions
any
required
object
gridViewState
any
openFolders
any
selectedNodes
any
outputs
required
Array of objects
lastUpdateByName
required
string non-empty
createdByName
required
string non-empty
submittedByName
any
calculationStatus
required
number
dirty
required
boolean
refreshInputs
required
boolean
nodeId
any
userGroupEdit
any
userGroupViewDetails
any
serverMessages
any
additionalInfo1
any
additionalInfo2
any
additionalInfo3
any
additionalInfo4
any
numberOfAttachments
required
number
creationWorkflowStatus
any
creationWorkflowCurrentStep
any
creationWorkflowStepCount
any
creationWorkflowStepLabel
any
signature
any
lineItems
required
Array of objects
expiryDate
required
string non-empty
externalRef
any
customerId
required
string non-empty
customerName
required
string non-empty
customerGroup
any
quoteStatus
required
string non-empty
renderInfo
any
serverMessagesExtended
any
approvalRequiredEmailAttachmentsJson
any
hasWorkflowHistory
required
boolean
approvedByName
any
deniedByName
any
createDate
required
string non-empty
createdBy
required
number
lastUpdateDate
required
string non-empty
lastUpdateBy
required
number
supersededBy
any
prevRev
any
rootUniqueName
required
string non-empty
quoteType
required
string non-empty
status
required
string non-empty
parent
any
skus
required
Array of strings
Responses
200

Example response

Response Schema: application/json
object
node
string non-empty
Array of objects non-empty unique
Array (non-empty)
version
number
typedId
string non-empty
uniqueName
string non-empty
label
string non-empty
targetDate
string non-empty
workflowStatus
string non-empty
headerText
string non-empty
Array of objects non-empty unique
object
outputs
Array of objects
lastUpdateByName
string non-empty
createdByName
string non-empty
submittedByName
string non-empty
calculationStatus
number
dirty
boolean
refreshInputs
boolean
nodeId
any
userGroupEdit
any
userGroupViewDetails
any
serverMessages
Array of any
additionalInfo1
any
additionalInfo2
any
additionalInfo3
any
additionalInfo4
any
numberOfAttachments
number
creationWorkflowStatus
any
creationWorkflowCurrentStep
any
creationWorkflowStepCount
any
creationWorkflowStepLabel
any
signature
any
Array of objects non-empty unique
expiryDate
string non-empty
externalRef
any
customerId
string non-empty
customerName
string non-empty
customerGroup
any
quoteStatus
string non-empty
renderInfo
any
serverMessagesExtended
Array of any non-empty unique
approvalRequiredEmailAttachmentsJson
any
hasWorkflowHistory
boolean
approvedByName
string non-empty
deniedByName
any
createDate
string non-empty
createdBy
number
lastUpdateDate
string non-empty
lastUpdateBy
number
supersededBy
any
prevRev
string non-empty
rootUniqueName
string non-empty
quoteType
any
status
string non-empty
status
number
Request samples
application/json
{
  • "data": {
    • "quote": {
      • "version": 3,
      • "typedId": "2147491354.Q",
      • "uniqueName": "P-2147491354",
      • "label": "New Quote 2021",
      • "targetDate": "2021-11-02",
      • "workflowStatus": "DRAFT",
      • "headerText": "<p>Quote 2021</p>",
      • "inputs": [
        • {
          }
        ],
      • "viewState": {
        • "gridViewState": null,
        • "openFolders": null,
        • "selectedNodes": null
        },
      • "outputs": [ ],
      • "lastUpdateByName": "admin",
      • "createdByName": "admin",
      • "submittedByName": null,
      • "calculationStatus": 0,
      • "dirty": false,
      • "refreshInputs": false,
      • "nodeId": null,
      • "userGroupEdit": null,
      • "userGroupViewDetails": null,
      • "serverMessages": null,
      • "additionalInfo1": null,
      • "additionalInfo2": null,
      • "additionalInfo3": null,
      • "additionalInfo4": null,
      • "numberOfAttachments": 0,
      • "creationWorkflowStatus": null,
      • "creationWorkflowCurrentStep": null,
      • "creationWorkflowStepCount": null,
      • "creationWorkflowStepLabel": null,
      • "signature": null,
      • "lineItems": [ ],
      • "expiryDate": "2021-11-30",
      • "externalRef": null,
      • "customerId": "00003",
      • "customerName": "Kate Smith",
      • "customerGroup": null,
      • "quoteStatus": "DRAFT",
      • "renderInfo": null,
      • "serverMessagesExtended": null,
      • "approvalRequiredEmailAttachmentsJson": null,
      • "hasWorkflowHistory": false,
      • "approvedByName": null,
      • "deniedByName": null,
      • "createDate": "2021-11-02T16:41:33",
      • "createdBy": 2147490696,
      • "lastUpdateDate": "2021-11-02T16:41:33",
      • "lastUpdateBy": 2147490696,
      • "supersededBy": null,
      • "prevRev": null,
      • "rootUniqueName": "P-2147491354",
      • "quoteType": "default",
      • "status": "DRAFT"
      },
    • "parent": null,
    • "skus": [
      • "11111",
      • "22222",
      • "33333"
      ]
    }
}
Response samples
application/json
{
  • "response": {
    • "node": "e2e-templates-node",
    • "data": [
      • {
        • "version": 5,
        • "typedId": "2147491345.Q",
        • "uniqueName": "P-2147491340-REV-3",
        • "label": "Quote01",
        • "targetDate": "2021-11-01",
        • "workflowStatus": "NO_APPROVAL_REQUIRED",
        • "headerText": "<p>Quote message.</p>",
        • "inputs": [
          ],
        • "viewState": {
          },
        • "outputs": [ ],
        • "lastUpdateByName": "admin",
        • "createdByName": "admin",
        • "submittedByName": "admin",
        • "calculationStatus": 0,
        • "dirty": false,
        • "refreshInputs": false,
        • "nodeId": null,
        • "userGroupEdit": null,
        • "userGroupViewDetails": null,
        • "serverMessages": [
          ],
        • "additionalInfo1": null,
        • "additionalInfo2": null,
        • "additionalInfo3": null,
        • "additionalInfo4": null,
        • "numberOfAttachments": 0,
        • "creationWorkflowStatus": null,
        • "creationWorkflowCurrentStep": null,
        • "creationWorkflowStepCount": null,
        • "creationWorkflowStepLabel": null,
        • "signature": null,
        • "lineItems": [
          ],
        • "expiryDate": "2021-11-01",
        • "externalRef": null,
        • "customerId": "00003",
        • "customerName": "Kate Smith",
        • "customerGroup": null,
        • "quoteStatus": "OFFER",
        • "renderInfo": null,
        • "serverMessagesExtended": [
          ],
        • "approvalRequiredEmailAttachmentsJson": null,
        • "hasWorkflowHistory": false,
        • "approvedByName": "admin",
        • "deniedByName": null,
        • "createDate": "2021-11-02T14:01:54",
        • "createdBy": 2147490696,
        • "lastUpdateDate": "2021-11-02T14:06:06",
        • "lastUpdateBy": 2147490696,
        • "supersededBy": null,
        • "prevRev": "P-2147491340-REV-2",
        • "rootUniqueName": "P-2147491340",
        • "quoteType": null,
        • "status": "DRAFT"
        }
      ],
    • "status": 0
    }
}