Order Module
The Order Module is the @medusajs/medusa/order
NPM package that provides order-related features in your Medusa and Node.js applications.
How to Use Order Module's Service#
You can use the Order Module's main service by resolving from the Medusa container the resource Modules.ORDER
imported from @medusajs/framework/utils
.
For example:
Features#
Order Management#
Store and manage your orders to retriev, create, cancel, and perform other operations.
Draft Orders#
Allow merchants to create orders on behalf of their customers as draft orders that later are transformed to regular orders.
Apply Promotions#
Apply promotions or discounts to the order's items and shipping methods by adding adjustment lines that are factored into their subtotals.
Returns, Exchanges, and Claims#
Return or exchange items, with version-based control over the order's timeline.
Was this page helpful?