- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
getItemTaxLinesStep - Medusa Core Workflows Reference
This documentation provides a reference to the getItemTaxLinesStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step retrieves the tax lines for an order or cart's line items and shipping methods.
Note: You can retrieve an order, cart, item, shipping method, and address details using Query,
or useQueryGraphStep.
Example#
Input#
GetItemTaxLinesStepInput
GetItemTaxLinesStepInputThe data to retrieve tax lines for an order or cart's line items and shipping methods.
GetItemTaxLinesStepInput
GetItemTaxLinesStepInputorderOrCart
CartWorkflowDTO | OrderWorkflowDTOThe order or cart details.
orderOrCart
CartWorkflowDTO | OrderWorkflowDTOitems
CartLineItemDTO[] | OrderLineItemDTO[]The order or cart's items.
items
CartLineItemDTO[] | OrderLineItemDTO[]shipping_methods
CartShippingMethodDTO[] | OrderShippingMethodDTO[]The order or cart's shipping methods.
shipping_methods
CartShippingMethodDTO[] | OrderShippingMethodDTO[]force_tax_calculation
booleanOptionalWhether to re-calculate taxes. Enabling this may require sending
requests to third-party services, depending on the implementation of the
tax provider associated with the cart or order's region.
force_tax_calculation
booleanOptionalis_return
booleanOptionalWhether the tax lines are for an order return.
is_return
booleanOptionalThe shipping address of the order.
Output#
WorkflowDataProperties
WorkflowDataProperties<object>
WorkflowDataProperties
WorkflowDataProperties<object>lineItemTaxLines
ItemTaxLineDTO[]
lineItemTaxLines
ItemTaxLineDTO[]shippingMethodsTaxLines
ShippingTaxLineDTO[]
shippingMethodsTaxLines
ShippingTaxLineDTO[]Was this page helpful?