Skip to content

OrderModule

Module in @evolve-framework/medusa

Order history.

Everything here reads as the signed-in customer, so Medusa scopes results to their own orders. An order belonging to someone else is reported as not found rather than forbidden — confirming that an order exists is itself something worth not disclosing. Pass orderLinkSecret for orderBySignedLink, for an order page reached from an email without signing in.

import { OrderModule } from "@evolve-framework/medusa/modules";

Serves the Order part of the GraphQL API: orderByPublicId, orderBySignedLink.

new OrderModule(options?: OrderModuleOptions)
OptionTypeDescription
orderLinkSecret?string

The secret order links are signed with, the same one passed to createOrderLinkToken from @evolve-framework/core/order-link where the link is made. Without it orderBySignedLink answers null.

Extends AbstractModule<unknown>.

The same module on commercetools and sfcc.