Tax Module Options

In this guide, you'll learn about the options of the Tax Module.

providers#

The providers option is an array of either tax module providers or path to a file that defines a tax provider.

When the Medusa application starts, these providers are registered and can be used to retrieve tax lines.

medusa-config.ts
1import { Modules } from "@medusajs/framework/utils"2
3// ...4
5module.exports = defineConfig({6  // ...7  modules: [8    {9      resolve: "@medusajs/tax",10      options: {11        providers: [12          {13            resolve: "./path/to/my-provider",14            id: "my-provider",15            options: {16              // ...17            },18          },19        ],20      },21    },22  ],23})

The objects in the array accept the following properties:

  • resolve: A string indicating the package name of the module provider or the path to it.
  • id: A string indicating the provider's unique name or ID.
  • options: An optional object of the module provider's options.
Was this page helpful?
Ask Anything
Ask any questions about Medusa. Get help with your development.
You can also use the Medusa MCP server in Cursor, VSCode, etc...
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break