GraphQL ReturnCreate Notify Customer is not working

Hi everyone, when we try to create a return and send notifications to customers through GraphQL, we successfully can send the request, the status of the order is changed in admin, but the customer is not notified for some reason. Does anyone know how to fix it? The most crusial part is to notify customer.

returnCreate(returnInput: $returnInput) {
    return {
      id
      status
      returnLineItems(first: 1) {
        edges {
          node {
            id
            returnReason
            customerNote
          }
        }
      }
      order {
        id
      }
    }
    userErrors {
      field
      message
    }
  }
}
{
  "returnInput": {
    "notifyCustomer": true,
    "orderId": "gid://shopify/Order/5539718136121",
    "returnLineItems": [
      {
        "fulfillmentLineItemId": "gid://shopify/FulfillmentLineItem/12285018603833",
        "quantity": 1,
        "returnReason": "WRONG_ITEM",
        "returnReasonNote": "Sorry, I ordered the wrong item. Could I get a refund or store credit?"
      }
    ]
  }
}

Any help would be appreciated. Thank you so much

Hey @FerhatCengiz ! Thanks for bringing this to our attention.

I tested as well, with a near identical mutation as you shared here and was also not able to send a notification, even with “notifyCustomer”: true, .

This has been brought to our developers to investigate further. I don’t have a timeline on a resolution. I would recommend to keep an eye on the specific returnCreate docs and our developers changelog in the event there are changes to this specific mutation.

Hope that helps

  • Kyle G.

Thank you for your reply Kyle, I appreciate your answer. I have one more question, are there any chance that we can use notify customer on requestReturn aswell?

Would be perfect to have.

Thanks.

Hey @FerhatCengiz that’s a great suggestion. I can see how that would be useful to ensure to the buyer that the request is acknowledged.

I’ve passed that suggestion on to our product teams!

Thanks!

  • Kyle G.

Hi Kyle, I also have this problem. Has your team come up with any solutions?

Hi @petr2 ,

I can confirm that this behaviour is still occurring on my test store as well, and at this time there is no current solutions to this. Our developers are aware of this issue and are looking into resolving this further. That said due to the technical nature of issues such as these and the various parts of the platform a fix may affect, we are unable to provide any estimated timeframes for when this behaviour will be resolved, though I can assure you are developers are working on this with the correct priority as quickly as possible!

Hi everyone, I have tried this mutation to creat a return but I have a wired error.

the error says the fulfillment line item id nnot found, I m sure i have inserted the correct fulfillment line item ID, and the order ID. any idea please ?

Dear shopify support team can you help in this.

here is my mutation :

mutation = ‘’’
mutation returnCreate($returnInput: ReturnInput!) {
returnCreate(returnInput: $returnInput) {
return {
id
status
returnLineItems(first: 1) {
edges {
node {
id
returnReason
customerNote
}
}
}
order {
id
}
}
userErrors {
field
message
}
}
}
‘’’

Using the correct fulfillmentLineItemId

variables = {
“returnInput”: {
“notifyCustomer”: True,
“orderId”: “gid://shopify/Order/6173298426186”,
“returnLineItems”: [
{
“fulfillmentLineItemId”: “gid://shopify/FulfillmentLineItem/15876747952458”,
“quantity”: 1,
“returnReason”: “WRONG_ITEM”,
“returnReasonNote”: “Sorry, I ordered the wrong item. Could I get a refund or store credit?”
}
]
}
}

and here is the response

{
  "data": {
    "returnCreate": {
      "return": null,
      "userErrors": [
        {
          "field": [
            "returnInput",
            "returnLineItems",
            "0",
            "fulfillmentLineItemId"
          ],
          "message": "Fulfillment Line Item was not found."
        }
      ]
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 14,
      "actualQueryCost": 10,
      "throttleStatus": {
        "maximumAvailable": 2000.0,
        "currentlyAvailable": 1990,
        "restoreRate": 100.0
      }
    }
  }
}
Data:
{
  "returnCreate": {
    "return": null,
    "userErrors": [
      {
        "field": [
          "returnInput",
          "returnLineItems",
          "0",
          "fulfillmentLineItemId"
        ],
        "message": "Fulfillment Line Item was not found."
      }
    ]
  }
}

Hi! Is there any progress on this matter? We have the same issue that we need to send return-notifications to users using the ReturnCreate mutation..

Thank you