CPQ API QuoteModel

The Quote model represents a CPQ quote data model in Salesforce CPQ.

Required Editions
Available in: Salesforce CPQ Summer ’16 and later
NameTypeDescription
recordSBQQ__Quote__cThe record that this model represents.
lineItemsQuoteLineModel[]The lines that this quote contains.
lineItemGroupsQuoteLineGroupModel[]The groups that this quote contains.
nextKeyIntegerThe next key to use for new groups or lines. To keep keys unique, do not lower this value.
applyAdditionalDiscountLastBooleanCorresponds to the field SBQQ__Quote__c.ApplyAdditionalDiscountLast__c.
applyPartnerDiscountFirstBooleanCorresponds to the field SBQQ__Quote__c.ApplyPartnerDiscountFirst__c.
channelDiscountsOffListBooleanCorresponds to the field SBQQ__Quote__c.ChannelDiscountsOffList__c.
customerTotalDecimalSBQQ__Quote__c.SBQQ__CustomerAmount__c is a roll-up summary field, so its accuracy is guaranteed only after a quote has been saved. In the meantime, its current value is stored in customerTotal.
netTotalDecimalSBQQ__Quote__c.SBQQ__NetAmount__c is a roll-up summary field, so its accuracy is guaranteed only after a quote has been saved. In the meantime, its current value is stored in netTotal.
netNonSegmentTotalDecimalThe net total for all non-multidimensional quote lines.
1public class QuoteModel {
2    public SBQQ__Quote__c record;
3    public QuoteLineModel[] lineItems;
4    public QuoteLineGroupModel[] lineItemGroups;
5    public Integer nextKey;
6    public Boolean applyAdditionalDiscountLast;
7    public Boolean applyPartnerDiscountFirst;
8    public Boolean channelDiscountsOffList;
9    public Decimal customerTotal;
10    public Decimal netTotal;
11    public Decimal netNonSegmentTotal;
12}