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
}
]
}
}
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024