Skip to content

Stripe: Update settings

Stripe tax.postTaxSettings: arguments, response, policy and SDK examples.

← Tax operations · Get started

Operation stripe.posttaxsettings

Provider route: POST /v1/tax/settings. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["tax"]["postTaxSettings"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.tax.postTaxSettings(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.tax.post_tax_settings(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
headersobjectOptionalAdditional keys: not allowed
headers.Idempotency-KeystringOptionalMinimum length: 1
Maximum length: 255
bodyobjectOptionalAdditional keys: not allowed
body.defaultsobjectOptionalDefault configuration to be used on Stripe Tax calculations.
body.defaults.tax_behaviorstringOptionalOne of: exclusive, inclusive, inferred_by_currency
body.defaults.tax_codestringOptional
body.expandarrayOptionalSpecifies which fields in the response should be expanded.
body.expand[]stringEach itemMaximum length: 5000
body.head_officeobjectOptionalThe place where your business is located.
body.head_office.addressobjectRequired within parent
body.head_office.address.citystringOptionalMaximum length: 5000
body.head_office.address.countrystringOptionalMaximum length: 5000
body.head_office.address.line1stringOptionalMaximum length: 5000
body.head_office.address.line2stringOptionalMaximum length: 5000
body.head_office.address.postal_codestringOptionalMaximum length: 5000
body.head_office.address.statestringOptionalMaximum length: 5000

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Update settings — response body

Referenced models: Update settings — response body

Update settings — response body
FieldTypePresenceDescription and constraints
$objectRootYou can use Tax `Settings` to manage configurations used by Stripe Tax calculations.

Related guide: [Using the Settings API](https://docs.stripe.com/tax/settings-api)
defaultsModelRequired within parentExpand Update settings — response body — defaults
head_officeJSONOptional
head_office (anyOf 1)JSONAlternativeThe place where your business is located.
head_office (anyOf 1) (anyOf 1)ModelAlternativeExpand Create a cardholder — response body — billing
head_office (anyOf 2)nullAlternative
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: tax.settings
statusstringRequired within parentWhether these settings have the information Stripe Tax needs to calculate tax. It doesn't reflect whether your integration is ready to collect tax.
Known values: active, pending
status_detailsModelRequired within parentExpand Update settings — response body — status details

Referenced models: Create a cardholder — response body — billing, Update settings — response body — defaults, Update settings — response body — status details

Create a cardholder — response body — billing
FieldTypePresenceDescription and constraints
$objectRoot
addressModelRequired within parentExpand Create a Location — response body — address

Referenced models: Create a Location — response body — address

Update settings — response body — defaults
FieldTypePresenceDescription and constraints
$objectRoot
providerstringRequired within parentThe tax calculation provider this account uses. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps).
Known values: anrok, avalara, sphere, stripe
tax_behaviorJSONOptional
tax_behavior (anyOf 1)stringAlternativeDefault [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#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.
Known values: exclusive, inclusive, inferred_by_currency
tax_behavior (anyOf 2)nullAlternative
tax_codeJSONOptional
tax_code (anyOf 1)stringAlternativeDefault [tax code](https://stripe.com/docs/tax/tax-categories) used to classify your products and prices.
Maximum length: 5000
tax_code (anyOf 2)nullAlternative
Update settings — response body — status details
FieldTypePresenceDescription and constraints
$objectRoot
activeModelOptionalExpand Create a Payment Method — response body — zip
pendingModelOptionalExpand Update settings — response body — status details pending

Referenced models: Create a Payment Method — response body — zip, Update settings — response body — status details pending

Create a Location — response body — address
FieldTypePresenceDescription and constraints
$objectRoot
cityJSONOptional
city (anyOf 1)stringAlternativeCity, district, suburb, town, or village.
Maximum length: 5000
city (anyOf 2)nullAlternative
countryJSONOptional
country (anyOf 1)stringAlternativeTwo-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
Maximum length: 5000
country (anyOf 2)nullAlternative
line1JSONOptional
line1 (anyOf 1)stringAlternativeAddress line 1, such as the street, PO Box, or company name.
Maximum length: 5000
line1 (anyOf 2)nullAlternative
line2JSONOptional
line2 (anyOf 1)stringAlternativeAddress line 2, such as the apartment, suite, unit, or building.
Maximum length: 5000
line2 (anyOf 2)nullAlternative
postal_codeJSONOptional
postal_code (anyOf 1)stringAlternativeZIP or postal code.
Maximum length: 5000
postal_code (anyOf 2)nullAlternative
stateJSONOptional
state (anyOf 1)stringAlternativeState, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
Maximum length: 5000
state (anyOf 2)nullAlternative
Create a Payment Method — response body — zip
FieldTypePresenceDescription and constraints
$objectRoot
Update settings — response body — status details pending
FieldTypePresenceDescription and constraints
$objectRoot
missing_fieldsJSONOptional
missing_fields (anyOf 1)arrayAlternativeThe list of missing fields that are required to perform calculations. It includes the entry `head_office` when the status is `pending`. 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.
missing_fields (anyOf 1)[]stringEach itemMaximum length: 5000
missing_fields (anyOf 2)nullAlternative

SDK function policy ID: stripe.posttaxsettings. Catalog operation: PostTaxSettings. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.