diff --git a/.changeset/khaki-socks-thank.md b/.changeset/khaki-socks-thank.md new file mode 100644 index 0000000000..6cb025ed75 --- /dev/null +++ b/.changeset/khaki-socks-thank.md @@ -0,0 +1,5 @@ +--- +"@medusajs/medusa": patch +--- + +fix(medusa): Remove items.refundable from the order default store fields diff --git a/packages/medusa/src/api/routes/store/orders/index.ts b/packages/medusa/src/api/routes/store/orders/index.ts index 6e8a3830a1..ab86fb08c1 100644 --- a/packages/medusa/src/api/routes/store/orders/index.ts +++ b/packages/medusa/src/api/routes/store/orders/index.ts @@ -108,7 +108,6 @@ export const defaultStoreOrdersFields = [ "currency_code", "tax_rate", "created_at", - "items.refundable", ] as (keyof Order)[] export const allowedStoreOrdersFields = [ @@ -124,6 +123,7 @@ export const allowedStoreOrdersFields = [ "refundable_amount", "gift_card_total", "gift_card_tax_total", + "items.refundable", ] /**