setOrderTaxLinesForItemsStep - Medusa Core Workflows Reference

This documentation provides a reference to the setOrderTaxLinesForItemsStep. It belongs to the @medusajs/medusa/core-flows package.

This step sets the tax lines of an order's items and shipping methods.

NoteYou can retrieve an order's details using Query, or useQueryGraphStep.

Example#

Code
1const data = setOrderTaxLinesForItemsStep({2  order: {3    id: "order_123",4    // other order details...5  },6  item_tax_lines: [7    {8      line_item_id: "orli_123",9      rate: 0.25,10      code: "VAT",11      name: "VAT",12      provider_id: "tax_provider_123",13    }14  ]15})

Input#

SetOrderTaxLinesForItemsStepInputSetOrderTaxLinesForItemsStepInput
The details of setting tax lines for an order's items and shipping methods.
The order's details.
item_tax_linesItemTaxLineDTO[]
The tax lines to set for the order's items.
shipping_tax_linesShippingTaxLineDTO[]
The tax lines to set for the order's shipping methods.
Was this page helpful?
Ask Anything
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