Skip to content

Stripe: Create a tax location

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

← Tax operations · Get started

Operation stripe.posttaxlocations

Provider route: POST /v1/tax/locations. 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"]["postTaxLocations"]>[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.postTaxLocations(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_locations(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
bodyobjectRequired within parentAdditional keys: not allowed
body.addressobjectRequired within parentThe physical address of the tax location.
body.address.cityJSONOptional
body.address.city (anyOf 1)stringAlternativeMaximum length: 5000
body.address.city (anyOf 2)stringAlternativeOne of:
body.address.countrystringRequired within parentMaximum length: 5000
body.address.line1JSONOptional
body.address.line1 (anyOf 1)stringAlternativeMaximum length: 5000
body.address.line1 (anyOf 2)stringAlternativeOne of:
body.address.line2JSONOptional
body.address.line2 (anyOf 1)stringAlternativeMaximum length: 5000
body.address.line2 (anyOf 2)stringAlternativeOne of:
body.address.postal_codeJSONOptional
body.address.postal_code (anyOf 1)stringAlternativeMaximum length: 5000
body.address.postal_code (anyOf 2)stringAlternativeOne of:
body.address.stateJSONOptional
body.address.state (anyOf 1)stringAlternativeMaximum length: 5000
body.address.state (anyOf 2)stringAlternativeOne of:
body.descriptionstringOptionalDetails to identify the tax location by its venue, types of events held, or available services, such as “A spacious auditorium suitable for large concerts and events.”.
Maximum length: 5000
body.expandarrayOptionalSpecifies which fields in the response should be expanded.
body.expand[]stringEach itemMaximum length: 5000
body.typestringRequired within parentThe type of tax location. The only supported value is “performance”.
One of: performance

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Create a tax location — response body

Referenced models: Create a tax location — response body

Create a tax location — response body
FieldTypePresenceDescription and constraints
$objectRootTax locations represent venues for services, tickets, or other product types.
addressModelRequired within parentExpand Create a Location — response body — address
descriptionJSONOptional
description (anyOf 1)stringAlternativeA descriptive text providing additional context about the tax location. This can include information about the venue, types of events held, services available, or any relevant details for better identification (for example, "A spacious auditorium suitable for large concerts and events.").
Maximum length: 5000
description (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
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.location
typestringRequired within parentThe type of tax location to be defined. Currently the only option is `performance`.
Known values: performance

Referenced models: Create a Location — response body — address

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

SDK function policy ID: stripe.posttaxlocations. Catalog operation: PostTaxLocations. 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.