Skip to main content
Skip to main content

TaxCalculationContext

The context provided when tax lines are calculated and retrieved. This context is later passed to the underlying tax provider.

addressobjectRequired
The customer's address
address.country_codestringRequired
The ISO 2 character currency code.
customer.idstringRequired
The ID of the customer.
customer.emailstringRequired
The email of the customer.
customer.customer_groupsstring[]Required
The groups that the customer belongs to.
address.province_codenull | string
The province code.
address.address_1string
The first line of the address.
address.address_2null | string
The second line of the address
address.citystring
The city.
address.postal_codestring
The postal code.
customerobject
The customer's details.
is_returnboolean
Whether the tax lines are calculated for an order return.
Was this section helpful?