I want to add product to my quote and taking help with this official document: https://developer.salesforce.com/docs/atlas.en-us.cpq_dev_api.meta/cpq_dev_api/cpq_api_add_products.htm
I'm passing JSON Body like this:
{"context": "{\"quote\":{\"record\":{\"attributes\":{\"type\":\"SBQQ__Quote__c\",\"url\":\"/services/data/v59.0/sobjects/SBQQ__Quote__c/a0q2w000004pwTlAAI\"},\"Name\":\"Q-00129\",\"Id\":\"a0q2w000004pwTlAAI\"},\"nextKey\":2,\"netTotal\":0.00,\"lineItems\":[{\"record\":{\"attributes\":{\"type\":\"SBQQ__Product__c\",\"SBQQ__Quote__c\":\"a0q2w000004pwTlAAI\",\"SBQQ__Product__c\":\"01t2w00000EwsmzAAB\",\"SBQQ__Number__c\":1,\"SBQQ__Quantity__c\":2.00,\"SBQQ__NetTotal__c\":99.76 },\"productQuantityEditable\": true,\"productHasDimensions\": false,\"key\": 2,\"descriptionLocked\": false}}],\"lineItemGroups\":[],\"customerTotal\":0.00},\"products\":[],\"groupKey\":0, \"ignoreCalculate\": true}"}
I'm getting status 200, but it does not reflect any update to my quote. Can anyone help with it?
Thanks in Advance!
Hi ,
After all, saving was a different API.
I used the following lineItems.
{ \"record\": {\"attributes\": { \"type\": \"SBQQ__QuoteLine__c\"},\"SBQQ__Product__c\": \"01tHp00000BClT6IAL\" }, \"productQuantityEditable\": true, \"productHasDimensions\": false, \"key\": 1, \"descriptionLocked\": false}Save API Body
{"saver": "SBQQ.QuoteAPI.QuoteSaver", "model": "{\"record\":{\"attributes\":{\"type\":\"SBQQ__Quote__c\",\"url\":\"/services/data/v59.0/sobjects/SBQQ__Quote__c/a0qHp00000QQMOpIAP\"},\"Name\":\"Q-00000\",\"Id\":\"a0qHp00000QQMOpIAP\"},\"nextKey\":2,\"netTotal\":0.00,\"lineItems\":[{ \"record\": {\"attributes\": { \"type\": \"SBQQ__QuoteLine__c\"},\"SBQQ__Product__c\": \"01tHp00000BClT6IAL\" }, \"productQuantityEditable\": true, \"productHasDimensions\": false, \"key\": 1, \"descriptionLocked\": false}],\"lineItemGroups\":[],\"customerTotal\":0.00}"}Postman