medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
26.27k stars 2.67k forks source link

API Ref(store): Issue in Get an Order #4858

Open onamkrverma opened 1 year ago

onamkrverma commented 1 year ago

Preliminary Checks

Issue Summary

In retrieve order store API endpoint, docs describe that returns is expandable parameter. but when I hit same api with expand returns then it throws this error { "type": "invalid_data", "message": "Relations [returns] are not valid" }

1.) screenshot of docs store API refs image ...

... 2.) screenshot of response with expand returns parameter

image

If I am doing anything wrong. Please guide me :)

How can this issue be resolved?

No response

Are you interested in working on this issue?

shahednasser commented 1 year ago

Thank you for reporting this issue. Seems like the returns are not allowed to be expanded in the store endpoints. @olivermrbl would this be something to consider to fix?