Introduction
The Medusa data provider enables you to build Refine applications with Medusa, a set of commerce tools and modules that can be used to build unique commerce experiences.Installation
Install the Medusa data provider package:Setup
Set up Medusa backend
First, set up a Medusa backend following the Medusa documentation.
Basic Usage
Get List
Fetch a list of resources from Medusa:Get One
Fetch a single resource by ID:Create
Create a new resource:Update
Update an existing resource:Delete
Delete a resource:Authentication
The Medusa data provider includes built-in authentication support:Login
Logout
Working with Products
List Products
Product Variants
Product Images
Managing Orders
List Orders
Update Order Status
Managing Customers
List Customers
Customer Details
Inventory Management
Update Inventory
Regions and Shipping
List Regions
Shipping Options
Complete Example
Admin Dashboard Example
Here’s a complete admin dashboard example:Filtering
Medusa supports various filter operators:Supported Resources
The Medusa data provider supports the following resources:products: Product managementorders: Order managementcustomers: Customer managementvariants: Product variantsregions: Regional settingsshipping-options: Shipping configurationcollections: Product collectionsdiscounts: Discount managementgift-cards: Gift card management
Next Steps
Data Providers Overview
Learn about other data providers
Medusa Documentation
Explore Medusa features