Hi,
Today The draftOrderCreate method started failing suddenly on a store I manage. The endpoint that is calling the mutation on my hand hasn’t been modified for months and neither has the website.
Below I’ll show you the mutation, input and output I’m receiving.
Mutation:
mutation($input: DraftOrderInput!, $lineItemsFirst: Int, $metafieldsFirst: Int) {
draftOrderCreate(input: $input) {
draftOrder {
...draftOrder
lineItems(first: $lineItemsFirst) {
edges {
node {
...lineItem
discountedTotal
appliedDiscount {
title
amountV2 {
amount
currencyCode
}
value
valueType
}
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
}
}
Here’s the input/output:
input:
{
'lineItemsFirst': 50,
'metafieldsFirst': 8,
'input': {
'lineItems': [{
'variantId': 'gid://shopify/ProductVariant/26139281883200',
'quantity': 1,
'sku': '61514'
}]
}
}
output:
{
'draftOrderCreate': {
'draftOrder': None
}
}
Any ideas on what might be wrong? I’ve been looking into this for a few hours but I have no idea why it’s happening
