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 |
---|---|
6 | |
5 | |
5 | |
5 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022