---
schema_version: "1"
id: caae08777a04947eb06526c1c40bd2181f123d52949a45eba41d3f37eadbdeb3
title: HeaderTaxAddressesRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 658b0f61a2db9f67e17321fa0ddd4fa7967f777ac5745aa7b3c902030f736444
description: Captures the address values that are applicable for the quote or order transaction.Learn more about the constructors available with the HeaderTaxAddressesRequest class.Constructor for initializing the required addresses of the tax addresses request such as the ship from, ship to, sold to, and bill to addresses. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.Learn more about the available properties with the HeaderTaxAddressesRequest class.Specifies the billTo address for a line item on which tax was calculated.Specifies the shipFrom address for a line item on which tax was calculated.Specifies the shipTo address for a line item on which tax was calculated.Specifies the soldTo address for a line item on which tax was calculated.Address used by the tax engine when calculating tax for a line item.Learn more about the available methods with the HeaderTaxAddressesRequest class.Maintains the integrity of lists of type HeaderTaxAddressesRequest by determining the equality of external objects in a list. This method is dynamic and is based on the equals() method in Java.Maintains the integrity of lists of type TaxAddressesRequest by determining the uniqueness of the external objects in a list.Converts a value to a string.
---
# HeaderTaxAddressesRequest Class

Captures the address values that are applicable for the quote or order transaction.

## Namespace

[CommerceTax](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_commercetax.htm "Manage the communication between Salesforce and an external tax engine.")

- **[HeaderTaxAddressesRequest Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_constructors)**  
    Learn more about the constructors available with the HeaderTaxAddressesRequest class.
- **[HeaderTaxAddressesRequest Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_properties)**  
    Learn more about the available properties with the HeaderTaxAddressesRequest class.
- **[HeaderTaxAddressesRequest Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_methods)**  
    Learn more about the available methods with the HeaderTaxAddressesRequest class.

## HeaderTaxAddressesRequest Constructors

Learn more about the constructors available with the HeaderTaxAddressesRequest class.

The HeaderTaxAddressesRequest class includes these constructors.

- **[HeaderTaxAddressesRequest(shipFrom, shipTo, soldTo, billTo, taxEngineAddress)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_ctor)**  
    Constructor for initializing the required addresses of the tax addresses request such as the ship from, ship to, sold to, and bill to addresses. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

### HeaderTaxAddressesRequest(shipFrom, shipTo, soldTo, billTo, taxEngineAddress)

Constructor for initializing the required addresses of the tax addresses request such as the ship from, ship to, sold to, and bill to addresses. This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

#### Signature

global HeaderTaxAddressesRequest(commercetax.TaxAddressRequest shipFrom, commercetax.TaxAddressRequest shipTo, commercetax.TaxAddressRequest soldTo, commercetax.TaxAddressRequest billTo, commercetax.TaxAddressRequest taxEngineAddress)

#### Parameters

- **shipFrom**:
    
    Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")
    
    Address where a line item was shipped from.
- **shipTo**:
    
    Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")
    
    Address where a line item was shipped to.
- **soldTo**:
    
    Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")
    
    Address of the line item's buyer.
- **billTo**:
    
    Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")
    
    Person or group who was billed
    
    for the line item.
- **taxEngineAddress**:
    
    Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")
    
    Address that the tax engine uses to calculate tax.

## HeaderTaxAddressesRequest Properties

Learn more about the available properties with the HeaderTaxAddressesRequest class.

The HeaderTaxAddressesRequest class includes these properties.

- **[billTo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_billTo)**  
    Specifies the billTo address for a line item on which tax was calculated.
- **[shipFrom](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_shipFrom)**  
    Specifies the shipFrom address for a line item on which tax was calculated.
- **[shipTo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_shipTo)**  
    Specifies the shipTo address for a line item on which tax was calculated.
- **[soldTo](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_soldTo)**  
    Specifies the soldTo address for a line item on which tax was calculated.
- **[taxEngineAddress](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_taxEngineAddress)**  
    Address used by the tax engine when calculating tax for a line item.

### billTo

Specifies the billTo address for a line item on which tax was calculated.

#### Signature

global commercetax.TaxAddressRequest billTo {get; set;}

#### Property Value

Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

### shipFrom

Specifies the shipFrom address for a line item on which tax was calculated.

#### Signature

global commercetax.TaxAddressRequest shipFrom {get; set;}

#### Property Value

Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

### shipTo

Specifies the shipTo address for a line item on which tax was calculated.

#### Signature

global commercetax.TaxAddressRequest shipTo {get; set;}

#### Property Value

Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

### soldTo

Specifies the soldTo address for a line item on which tax was calculated.

#### Signature

global commercetax.TaxAddressRequest soldTo {get; set;}

#### Property Value

Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

### taxEngineAddress

Address used by the tax engine when calculating tax for a line item.

#### Signature

global commercetax.TaxAddressRequest taxEngineAddress {get; set;}

#### Property Value

Type: [TaxAddressRequest](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_TaxAddressRequest.htm#apex_class_commercetax_TaxAddressRequest "Contains address details used for tax calculation.")

## HeaderTaxAddressesRequest Methods

Learn more about the available methods with the HeaderTaxAddressesRequest class.

The HeaderTaxAddressesRequest class includes these methods.

- **[equals(obj)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_equals)**  
    Maintains the integrity of lists of type HeaderTaxAddressesRequest by determining the equality of external objects in a list. This method is dynamic and is based on the equals() method in Java.
- **[hashCode()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_hashCode)**  
    Maintains the integrity of lists of type TaxAddressesRequest by determining the uniqueness of the external objects in a list.
- **[toString()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_commercetax_HeaderTaxAddressesRequest.htm#apex_commercetax_HeaderTaxAddressesRequest_toString)**  
    Converts a value to a string.

### equals(obj)

Maintains the integrity of lists of type HeaderTaxAddressesRequest by determining the equality of external objects in a list. This method is dynamic and is based on the equals() method in Java.

#### Signature

global Boolean equals(Object obj)

#### Parameters

- **obj**:
    
    Type:
    
    Object External object whose key is to be validated.

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### hashCode()

Maintains the integrity of lists of type TaxAddressesRequest by determining the uniqueness of the external objects in a list.

#### Signature

global Integer hashCode()

#### Return Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### toString()

Converts a value to a string.

#### Signature

global String toString()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")