Skip to main content

draftOrderCreated Subscription

Event sent when new draft order is created.

Added in Saleor 3.20
This API is currently in Feature Preview and can be subject to changes at later point.
draftOrderCreated(
channels: [String!]
): DraftOrderCreated

Arguments

draftOrderCreated.channels ● [String!] list scalar miscellaneous

List of channel slugs. The event will be sent only if the order belongs to one of the provided channels. If the channel slug list is empty, orders that belong to any channel will be sent. Maximally 500 items.

Type

DraftOrderCreated object orders

Event sent when new draft order is created.