Hello,
We have been trying to edit an existing order with the Admin API . But api is working for some stores, but not for some stores.
Using orderEditBegin is giving me a null for calculatedOrder . Reference: https://help.shopify.com/en/api/guides/editing-orders#begin-order-editing
Request :
curl --location --request POST 'https://xxxxxxxxx.myshopify.com/admin/api/2022-10/graphql.json' \
--header 'Content-Type: application/graphql' \
--header 'X-Shopify-Access-Token: shpca_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--data-raw 'mutation beginEdit {
orderEditBegin(id: "gid://shopify/Order/5095223525614") {
calculatedOrder {
id
fulfilledLineItems: lineItems(first: 25, query: "editable:false") {
edges {
node {
id
title
quantity
hasStagedLineItemDiscount
calculatedDiscountAllocations {
discountApplication {
id
}
}
}
}
}
unfulfilledLineItems: lineItems(first: 25, query: "editable:true") {
edges {
node {
id
title
quantity
variant {
id
}
hasStagedLineItemDiscount
calculatedDiscountAllocations {
discountApplication {
id
}
}
}
}
}
}
}
}
'
Response :
{
"data": {
"orderEditBegin": {
"calculatedOrder": null
}
},
"extensions": {
"cost": {
"requestedQueryCost": 189,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 1000.0,
"currentlyAvailable": 990,
"restoreRate": 50.0
}
}
}
}