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

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