TaxCalculationContext
The context provided when tax lines are calculated and retrieved. This context is later passed to the underlying tax provider.
addressobjectRequiredThe customer's address
addressobjectRequiredaddress.country_codestringRequiredThe ISO 2 character currency code.
customer.idstringRequiredThe ID of the customer.
customer.emailstringRequiredThe email of the customer.
customer.customer_groupsstring[]RequiredThe groups that the customer belongs to.
address.province_codenull | stringThe province code.
address.address_1stringThe first line of the address.
address.address_2null | stringThe second line of the address
address.citystringThe city.
address.postal_codestringThe postal code.
customerobjectThe customer's details.
customerobjectis_returnbooleanWhether the tax lines are calculated for an order return.
Was this section helpful?