26 January 2023
QuotesOrdersGraphQL
With the new 
purchaseOrderNumber field, Buyers are now able to track their purchase throughout the order creation process with their Purchase Order Number. To support B2B scenarios, this new field is also supported on all types related to Quotes.Changes:
- [API] Added optional field 
purchaseOrderNumberto OrderFromCartDraft, OrderImportDraft, QuoteRequestDraft, QuoteRequest, StagedQuote, Quote, Order. - [API] Added 
setPurchaseOrderNumberupdate action to Orders and Order Edits APIs. - [API] Added PurchaseOrderNumberSet message.
 - [GraphQL API] Changed the 
QuoteRequestDrafttype:- Input field 
purchaseOrderNumberwas added toQuoteRequestDrafttype 
 - Input field 
 - [GraphQL API] Changed the 
OrderCartCommandtype:- Input field 
purchaseOrderNumberwas added toOrderCartCommandtype 
 - Input field 
 - [GraphQL API] Changed the 
ImportOrderDrafttype:- Input field 
purchaseOrderNumberwas added toImportOrderDrafttype 
 - Input field 
 - [GraphQL API] Changed the 
StagedOrderUpdateActiontype:- Input field 
setPurchaseOrderNumberwas added toStagedOrderUpdateActiontype 
 - Input field 
 - [GraphQL API] Changed the 
StagedQuotetype:- Added the 
purchaseOrderNumberfield to theStagedQuotetype. 
 - Added the 
 - [GraphQL API] Changed the 
OrderUpdateActiontype:- Input field 
setPurchaseOrderNumberwas added toOrderUpdateActiontype 
 - Input field 
 - [GraphQL API] Changed the 
Quotetype:- Added the 
purchaseOrderNumberfield to theQuotetype. 
 - Added the 
 - [GraphQL API] Changed the 
Ordertype:- Added the 
purchaseOrderNumberfield to theOrdertype. 
 - Added the 
 - [GraphQL API] Changed the 
QuoteRequesttype:- Added the 
purchaseOrderNumberfield to theQuoteRequesttype. 
 - Added the 
 
The following changes were introduced in terms of GraphQL SDL:
extend type StagedQuote {
  purchaseOrderNumber: String
}
extend type Quote {
  purchaseOrderNumber: String
}
extend type Order {
  purchaseOrderNumber: String
}
extend type QuoteRequest {
  purchaseOrderNumber: String
}
extend input QuoteRequestDraft {
  purchaseOrderNumber: String
}
extend input OrderCartCommand {
  purchaseOrderNumber: String
}
extend input ImportOrderDraft {
  purchaseOrderNumber: String
}
extend input StagedOrderUpdateAction {
  setPurchaseOrderNumber: SetStagedOrderPurchaseOrderNumber
}
extend input OrderUpdateAction {
  setPurchaseOrderNumber: SetOrderPurchaseOrderNumber
}
type PurchaseOrderNumberSet implements MessagePayload & OrderMessagePayload {
  purchaseOrderNumber: String
  oldPurchaseOrderNumber: String
  type: String!
}
input SetOrderPurchaseOrderNumber {
  purchaseOrderNumber: String
}
input SetStagedOrderPurchaseOrderNumber {
  purchaseOrderNumber: String
}
type SetStagedOrderPurchaseOrderNumberOutput implements StagedOrderUpdateActionOutput {
  type: String!
  purchaseOrderNumber: String
}