# No route found for Order-Return State Transition

**URL:** <https://forum.shopware.com/t/no-route-found-for-order-return-state-transition/104808>\
**Category:** Programming (EN)\
**Created:** [12. August 2024 um 18:58 UTC](https://forum.shopware.com/t/no-route-found-for-order-return-state-transition/104808 "2024-08-12T18:58:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![katSp](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@katSp](https://forum.shopware.com/u/katSp)\
**Post date:** [12. August 2024 um 18:58 UTC](https://forum.shopware.com/t/no-route-found-for-order-return-state-transition/104808/1 "2024-08-12T18:58:10Z")

</div>

I’m trying to change the state of an order-return as described here

> **[Order Management | Admin API](https://shopware.stoplight.io/docs/admin-api/fdd24cc76f22d-order-management#order-return-state-transition)**
>
> The order resource enables merchants to process orders they receive from customers. Powered by Stoplight.

but all I get as a return is „404 Route not found“.

I tried  
POST /api/\_action/order\_return/{returnId}/state/in\_progress  
And also tried all other possible mentioned states for order-return, but none of them are working.  
I need to change it to „done“ in the end, but as far as I know I can’t go there directly from „open“  
and need to go past „in\_progress“.

I can see via  
GET /api/order-return/{returnId}/state  
that the current state is „open“.  
So I also assume that the returnId must be correct or that should fail as well.

Any idea what else could result in this error or what I’m not seeing?  
Tested it with a dev-setup for Beyond as I know it isn’t available in the Community addition.  
The state-transitions work fine for „order“ and „order\_delivery“, but I can’t get them to to work for the returns.  
Any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [13. August 2024 um 08:19 UTC](https://forum.shopware.com/t/no-route-found-for-order-return-state-transition/104808/2 "2024-08-13T08:19:26Z")

</div>

1x reicht.

Viele Grüße

---

<div class="post-metadata">

**Author:** ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)\
**Post date:** [13. August 2024 um 08:19 UTC](https://forum.shopware.com/t/no-route-found-for-order-return-state-transition/104808/3 "2024-08-13T08:19:50Z")

</div>


