The Tax Setting object ​
Attributes ​
object(string) String representing the object’s type. Objects of the same type share the same value.defaults(object) Default configuration to be used on Stripe Tax calculations.defaults.provider(enum) The tax calculation provider this account uses. Defaults tostripewhen not using a third-party provider.defaults.tax_behavior(enum, nullable) Default tax behavior used to specify whether the price is considered inclusive of taxes or exclusive of taxes. If the item’s price has a tax behavior set, it will take precedence over the default tax behavior. Possible enum values:exclusiveTaxes are calculated on top of the line item amount.inclusiveTaxes are included in the line item amount.inferred_by_currencyStripe will use the price currency to define whether the tax should be added on top of the price (excluded) or included in the price.
defaults.tax_code(string, nullable) Default tax code used to classify your products and prices.
head_office(object, nullable) The place where your business is located.head_office.address(object) The location of the business for tax purposes.head_office.address.city(string, nullable) City, district, suburb, town, or village.head_office.address.country(string, nullable) Two-letter country code (ISO 3166-1 alpha-2).head_office.address.line1(string, nullable) Address line 1, such as the street, PO Box, or company name.head_office.address.line2(string, nullable) Address line 2, such as the apartment, suite, unit, or building.head_office.address.postal_code(string, nullable) ZIP or postal code.head_office.address.state(string, nullable) State, county, province, or region (ISO 3166-2).
livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.status(enum) The status of the TaxSettings. Possible enum values:activeTaxSettingshave the required information and ready for tax calculations.pendingTaxSettingsmissing some required information and not ready for tax calculations. Checkstatus_detailsfield for more.
status_details(object) Information about the status.status_details.active(object, nullable) If status isactive, this hash contains further details about the Settings.status_details.pending(object, nullable) If status ispending, this hash contains further details about the Settings.status_details.pending.missing_fields(array of strings, nullable) The list of missing fields that are required to perform calculations. It includes the entryhead_officewhen the status ispending. It is recommended to set the optional values even if they aren’t listed as required for calculating taxes. Calculations can fail if missing fields aren’t explicitly provided on every call.
The Tax Setting object ​
json
{
"object": "tax.settings",
"defaults": {
"tax_behavior": null,
"tax_code": "txcd_10000000"
},
"head_office": {
"address": {
"city": null,
"country": "US",
"line1": null,
"line2": null,
"postal_code": null,
"state": "CA"
}
},
"livemode": false,
"status": "active",
"status_details": {
"active": {}
}
}