orderEditSetQuantity throwing an exception when requesting totalOutstandingSet

longinoa
New Member
12 0 0
        mutation removeLineItem($id: ID!, $lineItemId: ID!) {
            orderEditSetQuantity(id: $id, lineItemId: $lineItemId, quantity: 0) {
                calculatedOrder {
                    id
                    lineItems(first: 30) {
                        edges {
                            node {
                                id
                            }
                        }
                        pageInfo {
                            hasNextPage,
                            hasPreviousPage
                        }
                    }
                    totalOutstandingSet {
                        presentmentMoney {
                            amount
                        },
                        shopMoney {
                            amount
                        }
                    }
                },
                userErrors {
                    field,
                    message
                }
            }
        }

{"id":"gid://shopify/CalculatedOrder/7828865199","lineItemId":"gid://shopify/CalculatedLineItem/9196210520239"}
{"errors":[{"message":"Internal error. Looks like something went wrong on our end.\nRequest ID: cf3bbfd0-3473-4c44-bf35-01eb58b3e1b9 (include this in support requests).","extensions":{"code":"INTERNAL_SERVER_ERROR","requestId":"cf3bbfd0-3473-4c44-bf35-01eb58b3e1b9"}}]}

 

If i remove the totalOutstandingSet {...} the query works correctly

0 Likes