In Stax Bill, customers can have 2 addresses, one for their billing details and optionally one for shipping. These are used for recording the location of a sale and calculating taxes.
Special behaviors and additional adress fields are controlled by the CustomerAddressPreferences
The billing address must always exist on a customer before the shipping address. If a billing address is provided, but no shipping address, be sure to set useBillingAddressAsShippingAddress to true in the customer address preferences.
Address Object Fields
| Property | Type | Description |
|---|---|---|
customerAddressPreferenceId | Integer | The Fusebill generated ID of the customer this address object belongs to. |
companyName | String | The company name if applicable. |
line1 | String | Standard line 1 of an address. |
line2 | String | standard line 2 of an address. |
countryId | Integer | The ID of the country. Retrievable with the Read Country ID call. |
country | String | The name of the country. |
stateId | Integer | The ID of the state, province, or territory. Retrievable with the Read Country ID call. |
state | String | The name of the state, province, or territory. |
city | String | The city name. |
postalZip | String | The postal code or zip code. |
addressType | Enum: Shipping | In Fusebill a customer can have up to one billing and up to one shipping address |
valid | Boolean | Indicates the validity of the address. |
id | Integer | The Fusebill generated ID for this address object. |
uri | String | The full path to this resource. |
Simplified WorkflowsA customer address can also be added in the initial customer creation POST
