DraftOrderCreateInput Input Type
No description
input DraftOrderCreateInput {
billingAddress: AddressInput
user: ID
userEmail: String
discount: PositiveDecimal
shippingAddress: AddressInput
shippingMethod: ID
voucher: ID
voucherCode: String
customerNote: String
channelId: ID
redirectUrl: String
externalReference: String
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
lines: [OrderLineCreateInput!]
}
Fields
DraftOrderCreateInput.billingAddress ● AddressInput input miscellaneous
Billing address of the customer.
DraftOrderCreateInput.user ● ID scalar miscellaneous
Customer associated with the draft order.
DraftOrderCreateInput.userEmail ● String scalar miscellaneous
Email address of the customer.
DraftOrderCreateInput.discount ● PositiveDecimal scalar miscellaneous
Discount amount for the order.
DEPRECATED: this field will be removed in Saleor 4.0. Providing a value for the field has no effect. Use orderDiscountAdd mutation instead.
DraftOrderCreateInput.shippingAddress ● AddressInput input miscellaneous
Shipping address of the customer.
DraftOrderCreateInput.shippingMethod ● ID scalar miscellaneous
ID of a selected shipping method.
DraftOrderCreateInput.voucher ● ID scalar miscellaneous
ID of the voucher associated with the order.
DraftOrderCreateInput.voucherCode ● String scalar miscellaneous
A code of the voucher associated with the order.
Added in Saleor 3.18DraftOrderCreateInput.customerNote ● String scalar miscellaneous
A note from a customer. Visible by customers in the order summary.
DraftOrderCreateInput.channelId ● ID scalar miscellaneous
ID of the channel associated with the order.
DraftOrderCreateInput.redirectUrl ● String scalar miscellaneous
URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.
DraftOrderCreateInput.externalReference ● String scalar miscellaneous
External ID of this order.
DraftOrderCreateInput.metadata ● [MetadataInput!] list input miscellaneous
Order public metadata.
Added in Saleor 3.21 (unreleased)DraftOrderCreateInput.privateMetadata ● [MetadataInput!] list input miscellaneous
Order private metadata.
Added in Saleor 3.21 (unreleased)DraftOrderCreateInput.lines ● [OrderLineCreateInput!] list input orders
Variant line input consisting of variant ID and quantity of products.
Member Of
draftOrderCreate mutation