I am getting the following error from returnCreate GraphQL API:
query :
mutation returnCreate($returnInput: ReturnInput!) {
returnCreate(returnInput: $returnInput) {
return {
status
}
userErrors {
field
message
}
}
}
Request Payload:
{
“returnInput”: {
“exchangeLineItems”: [
{
“variantId”: “gid://shopify/ProductVariant/428086346713”,
“quantity”: 1
}
],
“notifyCustomer”: true,
“orderId”: “gid://shopify/Order/56843445209”,
“returnLineItems”: [
{
“fulfillmentLineItemId”: “gid://shopify/FulfillmentLineItem/120106911009”,
“quantity”: 1,
“returnReason”: “SIZE_TOO_LARGE”
}
]
}
}
Response:
{
“data”: {
“returnCreate”: {
“return”: null,
“userErrors”: [
{
“field”: [
“returnInput”,
“orderId”
],
“message”: “Exchange creation input is invalid.”
}
]
}
},
“extensions”: {
“cost”: {
“requestedQueryCost”: 10,
“actualQueryCost”: 10,
“throttleStatus”: {
“maximumAvailable”: 20000.0,
“currentlyAvailable”: 19990,
“restoreRate”: 1000.0
}
}
}
}