Skip to main content
Skip to main content

TaxCalculationContext

TaxCalculationContext: Object

Information relevant to a tax calculation, such as the shipping address where the items are going.

Properties

shipping_addressAddress | nullRequired
The shipping address used in the cart.
customerCustomerRequired
The customer that the cart belongs to.
regionRegionRequired
The cart's region.
is_returnbooleanRequired
Whether the cart is used in a return flow.
shipping_methodsShippingMethod[]Required
The shipping methods used in the cart.
allocation_mapLineAllocationsMapRequired
The gift cards and discounts applied on line items. Each object key or property is an ID of a line item
Was this section helpful?