Need help with Creating a Return with Graphql

Need help with Creating a Return with Graphql

CreativeBlaze
Shopify Partner
6 0 2

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"
}
}
}
}



Replies 0 (0)