Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add customer note to draft orders api

IKarbowiak920b729f1fc2
diff --git a/saleor/graphql/order/mutations/draft_orders.py b/saleor/graphql/order/mutations/draft_orders.py
index c7bf1d00fb..f82cb78bf0 100644
--- a/saleor/graphql/order/mutations/draft_orders.py
+++ b/saleor/graphql/order/mutations/draft_orders.py
@@ -52,6 +52,9 @@ class DraftOrderInput(InputObjectType):
voucher = graphene.ID(
description="ID of the voucher associated with the order.", name="voucher"
)
+ customer_note = graphene.String(
+ description="A note from a customer. Visible by customers in the order summary."
+ )
class DraftOrderCreateInput(DraftOrderInput):
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 67503ff600..9baff5b425 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -1483,6 +1483,7 @@ input DraftOrderCreateInput {
shippingAddress: AddressInput
shippingMethod: ID
voucher: ID
+ customerNote: String
lines: [OrderLineCreateInput]
}
@@ -1500,6 +1501,7 @@ input DraftOrderInput {
shippingAddress: AddressInput
shippingMethod: ID
voucher: ID
+ customerNote: String
}
type DraftOrderLineDelete {