17 August 2022
CartsOrdersPricing and DiscountsGraphQL
You can now set the price mode for a Custom Line Item when adding the Custom Line Item to a Cart.
Previously, new Custom Line Items had the 
Standard price mode set by default for backwards compatibility. You could only change the price mode on an existing Custom Line Item with the Change CustomLineItem Price Mode update action.Changes:
- [API] Added optional 
priceModefield to CustomLineItemDraft and CustomLineItemImportDraft. - [API] Added 
priceModefield to Add CustomLineItem update action on Cart and OrderEdit. - [GraphQL API] Changed the 
CustomLineItemDraftOutputtype:- Added the 
priceModefield to theCustomLineItemDraftOutputtype. 
 - Added the 
 - [GraphQL API] Changed the 
CustomLineItemImportDrafttype:- Input field 
priceModewas added toCustomLineItemImportDrafttype 
 - Input field 
 - [GraphQL API] Changed the 
AddCartCustomLineItemtype:- Input field 
priceModewas added toAddCartCustomLineItemtype 
 - Input field 
 - [GraphQL API] Changed the 
AddStagedOrderCustomLineItemtype:- Input field 
priceModewas added toAddStagedOrderCustomLineItemtype 
 - Input field 
 - [GraphQL API] Changed the 
CustomLineItemDrafttype:- Input field 
priceModewas added toCustomLineItemDrafttype 
 - Input field 
 
The following changes were introduced in terms of GraphQL SDL:
extend type CustomLineItemDraftOutput {
  priceMode: CustomLineItemPriceMode!
}
extend input CustomLineItemImportDraft {
  priceMode: CustomLineItemPriceMode
}
extend input AddCartCustomLineItem {
  priceMode: CustomLineItemPriceMode = Standard
}
extend input AddStagedOrderCustomLineItem {
  priceMode: CustomLineItemPriceMode = Standard
}
extend input CustomLineItemDraft {
  priceMode: CustomLineItemPriceMode
}