QuoteLineItem
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
The user must have “Edit” permissions on Quote records in order to create or update quote line items on a quote. The user must have “Edit” permissions on Quote records to delete a quote line item.
Some of the fields are available when Subscription Management is enabled.
Fields
BillingFrequency
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Description: The time period that indicates how often the quote line item is billed. This field is available in API version 55.0 and later. This field is available when Subscription Management is enabled.
-
Possible values:
- Annual
- Monthly
BindingInstanceTargetId
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
-
Description: Specifies the add on product target ID for a usage-based quote
line item, order Item, or asset allocation.
This field is a polymorphic relationship field.
- Relationship Name: BindingInstanceTarget
- Refers To: Asset, QuoteLineItem
CurrencyIsoCode
- Type: picklist
- Properties: Defaulted on create, Filter, Group, Restricted picklist, Sort
-
Description: Available only for organizations enabled for multiple
currencies. Contains the ISO code for any currency allowed by
the organization. If the organization has multicurrency and a
Pricebook2 is specified on the quote, then the currency value of
this field must match the currency of the PricebookEntry objects
for any associated quote line items.
This value is copied from the related Quote and can't be changed.
Description
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Text description of the line item. Limit: 225 characters.
Discount
DiscountAmount
- Type: currency
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The fixed amount discount to apply to the quote line item. Available in API version 59.0 and later.
Division
- Type: picklist
- Properties: Defaulted on create, Filter, Group, Restricted picklist, Sort
- Description: A logical segment of your organization's data. For example, if your company is organized into different business units, you could create a division for each business unit, such as “North America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division permission enabled.
EffectiveGrantDate
- Type: date
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The date on which the resources associated with the quote line item are granted.
EndDate
- Type: picklist
- Properties: Defaulted on create, Filter, Group, Restricted picklist, Sort
- Description: If the quote line item is sold on subscription, this field indicates the date on which the subscription ends. This field is available in API version 55.0 and later. This field is available if Subscription Management is enabled in your org. You can indicate a subscription’s length using either StartDate and EndDate, or by using StartDate and SubscriptionTerm. If you provide a value for both EndDate and SubscriptionTerm, EndDate is used to determine the subscription’s length.
EndQuantity
- Type: double
- Properties: Filter, Nillable, Sort
- Description: If the quote line item is sold on a subscription, this field indicates the end quantity when the subscription ends. This field is available in API version 60.0 and later. This field is available with Subscription Management.
IsPrimarySegment
- Type: boolean
- Properties: Defaulted on create, Filter, Group, Sort
- Description: Indicates whether the segment for the order item is a primary segment (true) or not (false).
- Default value: false
HasQuantitySchedule
- Type: boolean
- Properties: Defaulted on create, Filter, Group, Sort
- Description: Read-only. Indicates whether the opportunity line item that the quote line item is synced with has a quantity schedule.
HasRevenueSchedule
- Type: boolean
- Properties: Defaulted on create, Filter, Group, Sort
- Description: Read-only. Indicates whether the opportunity line item that the quote line item is synced with has a revenue schedule. If this object has a revenue schedule, the GrandTotal and TotalPrice fields can't be updated. In addition, the Quantity field can't be updated if this object has a quantity schedule. The system ignores any attempt to update this field. The update isn't rejected but the updated value is ignored.
HasSchedule
- Type: boolean
- Properties: Defaulted on create, Filter, Group, Sort
- Description: Read-only. Indicates whether the line item uses schedules.
LastReferencedDate
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.
LastViewedDate
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The timestamp when the current user last viewed this record or list view. If this value is null, the user only accessed this record or list view (LastReferencedDate) but not viewed it.
LineNumber
- Type: string
- Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
- Description: Read-only. An automatically generated number identifying the quote line item. In the form of QL-XXXXX.
ListPrice
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: Read-only. Corresponds to the UnitPrice on the PricebookEntry that is associated with this line item, which can be in the standard price book or a custom price book. A client application can use this information to show whether the unit price (or sales price) of the line item differs from the price book entry list price.
ListPriceTotal
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The ListPrice times the Quantity. This field is a calculated field.
NetTotalPrice
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The price after all adjustments, inclusive of quantity, prorated for the duration of the subscription. This field is a calculated field equal to TotalAdjustmentAmount plus TotalLineAmount. This field is available in API version 56.0 and later. This field is available with Subscription Management.
NetUnitPrice
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The unit price after all price adjustments are applied.
OpportunityLineItemId
ParentQuoteLineItemId
- Type: reference
- Properties: Filter, Group, Nillable, Sort
-
Description: The unique identifier of the related line item in the parent
quote.
This field is populated by the API during creation of the quote line item.
This field is available in version 58.0 and later. This field is available when Subscription Management is enabled.
This field is a relationship field.
- Relationship Name: ParentQuoteLineItem
- Relationship Type: Lookup
- Refers To: QuoteLineItem
PartnerDiscountPercent
- Type: percent
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The partner’s discount percent applied to the quote lines. Available in API version 59.0 and later.
PartnerUnitPrice
- Type: currency
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The unit price after applying the discount given to the partner for the quote line item. Available in API version 59.0 and later.
PeriodBoundary
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Description: The period boundary helps determine the start and end date of the billing periods. This field is available in API version 55.0 and later. This field is available with Subscription Management.
-
Possible values:
- AlignToCalendar—the period starts on the first day of the term unit; for example, the first day of the month.
- Anniversary—The start date determines the boundary. For example, if a monthly subscription starts on September 13, the subscription starts on the 13th day of each month.
- DayOfPeriod—the period starts on the day indicated by PeriodBoundaryDay.
- LastDayOfPeriod—the period starts on the last day of the pricing term unit.
PeriodBoundaryDay
- Type: int
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Required when PeriodBoundary is DayOfPeriod. Indicates day of the week or month that marks the period boundary. Must be an integer from 1 through 31. This field is available in API version 55.0 and later. This field is available with Subscription Management.
PeriodBoundaryStartMonth
- Type: picklist
- Properties: Create, Filter, Group, Restricted picklist, Nillable, Sort, Update
- Description: The field is populated based on input in the StartDate, PeriodBoundary, and PeriodBoundaryDay when BillingFrequency is Annual and PricingTermUnit is Annual or by manual user entry.
-
Possible values:
- 1-January
- 2-February
- 3-March
- 4-April
- 5-May
- 6-June
- 7-July
- 8-August
- 9-September
- 10-October
- 11-November
- 12-December
PricebookEntryId
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: Required. ID of the associated PricebookEntry. Exists only for orgs with Products enabled. In API 38.0 and earlier, if Product2Id is populated with PricebookEntryId data, you receive an error message. In API 39.0 and later, Product2Id is nulled, and PricebookEntryId is populated with the PricebookEntryId data.
PricingContractId
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
-
Description: The contract used for pricing that's associated with the quote
line item.
This field is a relationship field.
- Relationship Name: PricingContract
- Refers To: Contract
PriceWaterfallIdentifier
- Type: string
- Properties: Filter, Group, Nillable, Sort
- Description: The price waterfall identifier generated by Salesforce Pricing that's associated with the pricing of the detail record. Available in API version 60.0 and later.
PricingTerm
- Type: int
- Properties: Filter, Group, Nillable, Sort
- Description: The number of terms in the subscription. For example, if a monthly subscription is priced yearly, this field is 12. This field is available in API version 55.0 and later. This field is available with Subscription Management.
PricingTermCount
- Type: double
- Properties: Filter, Nillable, Sort
- Description: A calculated field indicating the number of pricing terms in the subscription. This field is available in API version 55.0 and later. This field is available with Subscription Management.
PricingTermUnit
- Type: picklist
- Properties: Filter, Group, Nillable, Restricted picklist, Sort
- Description: The unit of time for the pricing term. This field is available in API version 55.0 and later. This field is available with Subscription Management.
-
Possible values:
- Annual—Available in API version 58.0 and later. UI label is Years.
- Months.
Product2Id
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: Required. ID of the Product2 associated with this QuoteLineItem. In API 38.0 and earlier, if Product2Id is populated with PricebookEntryId data, you receive an error message. In API 39.0 and later, Product2Id is made null, and PricebookEntryId is populated with the PricebookEntryId data.
ProductInstanceIdentifier
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The ID of the product instance that’s added to a quote. Each quote line item created for the same product instance has the same product instance identifier value.
ProductSellingModelId
- Type: reference
- Properties: Filter, Group, Nillable, Sort
-
Description: The ID of the related product selling model. This field is
available in API version 55.0 and later. This field is available
with Subscription Management.
This field is a relationship field.
- Relationship Name: ProductSellingModel
- Relationship Type: Lookup
- Refers To: ProductSellingModel
ProrationPolicyId
- Type: reference
- Properties: Filter, Group, Nillable, Sort
-
Description: The ID of the related proration policy. This field is available in
API version 55.0 and later. This field is available with
Subscription Management.
This field is a relationship field.
- Relationship Name: ProrationPolicy
- Relationship Type: Lookup
- Refers To: ProrationPolicy
Quantity
- Type: double
- Properties: Create, Filter, Sort, Update
- Description: Required. The number of units for the line item.
QuantityUnitOfMeasureId
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort
-
Description: The unit of measure for the quantity, start quantity, and end
quantity.
This field is a relationship field.
- Relationship Name: QuantityUnitOfMeasure
- Refers To: UnitOfMeasure
QuoteActionId
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
-
Description: The ID of the related quote action. This field is available in API
version 58.0 and later. This field is available with Subscription
Management and Revenue Lifecycle Management.
This field is a relationship field.
- Relationship Name: QuoteAction
- Relationship Type: Lookup
- Refers To: QuoteAction
QuoteId
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: Required. ID of the associated Quote.
RampIdentifier
- Type: string
- Properties: Filter, Group, Nillable, Sort
- Description: The ramp ID used to group order item segments.
SegmentIdentifier
- Type: string
- Properties: Filter, Group, idLookup, Nillable, Sort
- Description: The ID of the segment.
SegmentName
- Type: string
- Properties: Filter, Group, Nillable, Sort
- Description: The name of the order item segment.
SegmentType
SellingModelType
- Type: picklist
- Properties: Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
- Description: Indicates whether the quote line item is sold as a one-time purchase, an evergreen subscription, or as a termed subscription. This field is available in API version 55.0 and later. This field is available with Subscription Management.
- Default value: OneTime
-
Possible values:
- Evergreen
- OneTime
- TermDefined
ServiceDate
- Type: date
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The date when the product revenue is recognized and the product quantity is shipped.
SortOrder
- Type: int
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: The value of where the line item is in the sorted order, such as 1, 2, 3. The SortOrder value determines the order in which a quote line item displays in the Quote Line Items related list and the Quote PDF. Client applications can use this value to match the sort order in Salesforce. This field is only available in API versions 21.0 and greater.
StandardTaxAmount
- Type: currency
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The tax amount for the standard term.
StartDate
- Type: date
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: If the quote line item is sold on subscription, this field indicates the date on which the subscription starts. This field is available in API version 55.0 and later. This field is available with Subscription Management.
StartQuantity
- Type: double
- Properties: Create, Filter, Nillable, Sort
- Description: If the quote line item is sold on a subscription, this field indicates the item quantity when the subscription starts. This field is available in API version 60.0 and later. This field is available with Subscription Management.
StartingPriceTotal
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The starting unit price times the quantity.
StartingUnitPriceSource
- Type: picklist
- Properties: Filter, Group, Nillable, Restricted picklist, Sort
- Description: Indicates whether the starting unit price was entered manually or calculated. This field is available in API version 55.0 and later. This field is available with Subscription Management.
-
Possible values:
- Manual
- System
- Inherited
Status
- Type: dynamic picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- Description: Represents the status of the Quote Line Item. This field is available in API version 60.0 and later. The QuoteLineItemStatus permission is required to access this field.
- Default value: In Progress
-
Possible values:
- In Progress
- Pending
- Approved
- Rejected
SubscriptionTerm
- Type: int
- Properties: Filter, Group, Nillable, Restricted picklist, Sort
- Description: The number of terms in the subscription. You can indicate a subscription’s length using either StartDate and EndDate, or by using StartDate and SubscriptionTerm. If you provide a value for both EndDate and SubscriptionTerm, EndDate is used and SubscriptionTerm is ignored.
SubscriptionTermUnit
Subtotal
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The line item's Quantity multiplied by the UnitPrice.
TaxTreatmentId
- Type: reference
- Properties: Filter, Group, Nillable, Sort
-
Description: The ID of the tax treatment associated with the quote line item.
Available in API version 60.0 and later.
This field is a relationship field.
- Relationship Name: TaxTreatment
- Relationship Type: Lookup
- Refers To: TaxTreatment
TotalAdjustmentAmount
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The sum of the adjustments applied to the quote line item, inclusive of quantity, prorated for the duration of the subscription. This field is available in API version 56.0 and later. This field is available with Subscription Management.
TotalLineAmount
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The total price of the quote line item, before price adjustments, inclusive of quantity, prorated for the duration of the subscription. This price is a calculated field equal to TotalPrice times Quantity times PricingTermCount. This field is available in API version 56.0 and later. This field is available with Subscription Management.
TotalPrice
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: Read-only. Calculated by applying the Discount to the Subtotal. This field is nillable, but you can't set both TotalPrice and to null in the same update. To insert the for a quote line item via the API (given only a unit price and the quantity), calculate this field as the unit price multiplied by the quantity. This field is read only if the quote line item has a revenue schedule.
TotalPriceWithTax
- Type: currency
- Properties: Filter, Nillable, Sort
- Description: The sum of TotalPrice and TotalTaxAmount. This field is available in API version 55.0 and later. This field is available with Subscription Management.
TotalTaxAmount
- Type: currency
- Properties: Filter, Nillable, Sort
-
Description: the total amount of tax for the quote line item. his field is
available in API version 55.0 and later. This field is available
with Subscription Management.
This field is a calculated field.
UnitPrice
- Type: currency
- Properties: Create, Filter, Sort, Update
- Description: Required. The price per unit for the quote line item.
ValidationResult
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
-
Description: Specifies whether the quote line item was configured and priced by
Revenue Lifecycle Management.
A quote can be activated only after all its quote line items are configured and priced by Revenue Lifecycle Management.
Available in API version 60.0 and later.
-
Possible values:
- Warning—Indicates that the quote line item wasn’t configured and priced by Revenue Lifecycle Management.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.
- QuoteLineItemChangeEvent (API version 44.0)
- Change events are available for the object.
- QuoteLineItemHistory (API version 57.0)
- History is available for tracked fields of the object.