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 |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023