Development discussions around Shopify APIs
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
This appears to be true for many of the APIs. I just ran into this on a straight node query as well
query LineItemQuery($id: ID!) {
node(id: $id) {
... on CalculatedOrder {
lineItems(first: 30) {
edges {
node {
id
quantity
variant {
id
}
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
totalOutstandingSet {
shopMoney {
amount
}
presentmentMoney {
amount
}
}
}
}
}
{"id": "gid://shopify/CalculatedOrder/12190548143"}
{
"errors": [
{
"message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 8c0d8d3b-c9c1-4d5d-8929-78477c64808e (include this in support requests).",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"requestId": "8c0d8d3b-c9c1-4d5d-8929-78477c64808e"
}
}
]
}
User | RANK |
---|---|
44 | |
16 | |
9 | |
9 | |
7 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023