All things Shopify and commerce
Is there a way to create a DraftOrder or complete an Order, and setting a specific publication sales channel with graphql?
Something like:
mutation draftOrderCreate($items: DraftOrderInput!) {
draftOrderCreate(input: $items) {
draftOrder {
id
order {
id
}
status
}
userErrors {
field
message
}
}
}
And a variable:
{
"items": {
"email": "123@mail.com",
"publication": {
"id": "gid://shopify/Publication/12345678910",
"name": "Some Sales Channel"
},
"lineItems": [
{
"variantId": "gid://shopify/ProductVariant/10987654321",
"quantity": 1
}
]
}
}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025