Modifying the order return status

urigrise
Shopify Partner
1 0 0

Hello Shopify Community, I'm looking for guidance on how to modify the order return status via API. I've tried using both the REST API and GraphQL, but haven't been successful.

 

My use case includes calling the refund api call but without a transaction I'd like to cancel, as the money does not go back to the customer via Shopify.

 

Any help or examples would be greatly appreciated. Thank you!

 

My (non working) code:

 

{
  "query": "mutation {
    orderUpdate(input: {id: \"gid://shopify/Order/$ORDER_ID\", returnStatus: RETURNED}) {
      order {
        id
        returnStatus
      }
      userErrors {
        field
        message
      }
    }
  }"
}
'{
  "order": {
    "id": $ORDER_ID,
    "financial_status": "paid"  // Tried also order_return_status

  }
}'

 

 

Replies 0 (0)