TaxCalculationContext
The context provided when tax lines are calculated and retrieved. This context is later passed to the underlying tax provider.
address
objectRequiredThe customer's address
address
objectRequiredaddress.country_code
stringRequiredThe ISO 2 character currency code.
customer.id
stringRequiredThe ID of the customer.
customer.email
stringRequiredThe email of the customer.
customer.customer_groups
string[]RequiredThe groups that the customer belongs to.
address.province_code
null | stringThe province code.
address.address_1
stringThe first line of the address.
address.address_2
null | stringThe second line of the address
address.city
stringThe city.
address.postal_code
stringThe postal code.
customer
objectThe customer's details.
customer
objectis_return
booleanWhether the tax lines are calculated for an order return.
Was this section helpful?