Learn how to use the tax integration template to integrate with Composable Commerce.
Connect application templates are for development purposes. They require further customization before being used in production projects.
Implementation
The two applications within the tax integration template are:
- Tax calculator: calculates tax using an external tax provider based on the content of a Cart. This application is triggered automatically when a Cart is updated.
- Order sync: synchronizes Order data with an external tax provider for accounting and compliance purposes, such as filing tax returns.
The following graph illustrates a high-level overview of how the tax calculator and order sync applications function.
Choose a tax service provider
The first step is to choose an appropriate tax service provider. Consider factors such as ease of use, scalability, pricing, and the availability of APIs for integration. Most modern tax services provide comprehensive APIs and SDKs for this purpose. Once you've selected an tax service provider, set up and configure your account based on your requirements, such as API keys, templates, and domains.
Understand API Extensions, Subscriptions, and Messages
Create a Connect application
postDeploy
and preUndeploy
scripts to manage its API Extension. The order sync application also has postDeploy
and preUndeploy
scripts to manage its Subscription. Connect automatically executes these scripts during the deployment lifecycle.Conclusion
Integrating an tax service provider with commercetools Composable Commerce using the tax integration template enhances your application capability to engage with customers effectively, while the order sync application can also assist in automating your administrative tasks. By following the steps outlined above and following the best practices, you can set up a robust system for automatically updating tax values.