Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi there. I have been trying out the new graphql to "create return" on one of my order.
Might be a stupid mistake that I am doing but I keep getting "Order Not Found" error despite checking everything.
mutation returnCreate($returnInput: ReturnInput!) {
returnCreate(returnInput: $returnInput) {
return {
id
order {
id
}
returnLineItems {
edges {
node {
quantity
returnReason
}
}
}
}
userErrors {
field
message
}
}
}
{
"returnInput": {
"orderId": "gid://shopify/Order/6734729478294",
"requestedAt": "2025-05-17T10:30:00Z",
"returnLineItems": [
{
"fulfillmentLineItemId": "gid://shopify/FulfillmentLineItem/13213632888982",
"quantity": 1,
"restockingFee": {
"percentage": 2.5
},
"returnReason": "SIZE_TOO_SMALL",
"returnReasonNote": "This size didn't fit"
}
],
"returnShippingFee": {
"amount": {
"amount": "30.00",
"currencyCode": "INR"
}
}
}
}
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025