Tax xC extension points
We can use the tax_integration_custom extension point to integrate with an external tax system to calculate sales and shipping tax. The following table identifies the extension point that we can use for integrating with an external tax system.
Extension point Where the extension point is used Extension code implementation tips Request, Response formats Sample extension code location tax_integration_custom The calculate cart operation (POST cart/calculate or POST cart/{cartId}/calculate) or the pre-checkout cart operation (POST cart/@self/precheckout) calls the tax_integration_custom extension point to calculate tax. Tax_integration_custom is called once to calculate sales tax, with the costs and discounts of the order items as inputs; and once to calculate shipping tax, with the freights of the order items as inputs. When costs and discounts are supplied, the tax_integration_custom extension code should call the tax system to calculate the sales tax of each order item and set it as the order item's total tax. When freights are supplied, the tax_integration_custom extension code should call the tax system to calculate the shipping tax of each order item and set it as the order item's total tax. TaxIntegrationCustomCmdUEInput, TaxIntegrationCustomCmdUEOutput The taxIntegrationOrderCus method in workspace_dir/commerceue-app/src/main/java/com/ibm/commerce/order/ue/rest/OrderResource.java For an example of registering the extension code and assigning the code to the extension point, see Enable tax integration extensions.