#order missing metadata in store.

10 messages ยท Page 1 of 1 (latest)

slim sail
#

I am using medusaClient.orders.retrieve(id)and the returned order does not have meta data. The same order in the admin client does have metadata.

I tried medusaClient.orders.retrieve(id, { fields: ["metadata"] }) with no luck.

mint oar
#

The metadata is indeed not part of the allowed fields in the store. You can have sensible data that you don't want the store to receive. What was the use case?

slim sail
#

if the order is a reservation. or if it contains a service.

#

I am also finding out that "canceled_at" is not included >.< I can totally understand metadata not being sent its used internally and not granted to be safe data to send to the client being that you dont need auth to access the order. Correct?

mint oar
#

There is the status on the order for that , so you can display the status to the customer

slim sail
#

right totally I am going to just be cool with that. I was looking in the order on the admin dashboard and thought it would be nice to show the time stamp. But at the end of the day the user should not care when it happened lol ๐Ÿ˜„

mint oar
#

Ahah I see, at the same time, it might not be a bad idea to create an issue to allow the *_at to be returned in the store api ๐Ÿ‘

#

If you want to create a timeline for example

slim sail
#

true ๐Ÿ˜„

mint oar
#

Also, on the order, you have access to the cart. Would you be able to access the metadata from the cart for your use case?