Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Modifying the order return status

Modifying the order return status

urigrise
Shopify Partner
3 0 1

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)