Stripe: Find a Tax Association
Stripe tax.getTaxAssociationsFind: arguments, response, policy and SDK examples.
← Tax operations · Get started
Operation stripe.gettaxassociationsfind
Provider route: GET /v1/tax/associations/find. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”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"]["getTaxAssociationsFind"]>[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.getTaxAssociationsFind(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom 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.get_tax_associations_find(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Required within parent | Additional keys: not allowed |
query.expand | array | Optional | |
query.expand[] | string | Each item | Maximum length: 5000 |
query.payment_intent | string | Required within parent | Maximum length: 5000 |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Find a Tax Association — response body |
Referenced models: Find a Tax Association — response body
Schemas
Section titled “Schemas”Find a Tax Association — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A Tax Association exposes the Tax Transactions that Stripe attempted to create on your behalf based on the PaymentIntent input |
calculation | string | Required within parent | The [Tax Calculation](https://docs.stripe.com/api/tax/calculations/object) that was included in PaymentIntent. Maximum length: 5000 |
id | string | Required within parent | Unique identifier for the object. Maximum length: 5000 |
object | string | Required within parent | String representing the object's type. Objects of the same type share the same value. Known values: tax.association |
payment_intent | string | Required within parent | The [PaymentIntent](https://docs.stripe.com/api/payment_intents/object) that this Tax Association is tracking. Maximum length: 5000 |
tax_transaction_attempts | JSON | Optional | |
tax_transaction_attempts (anyOf 1) | array | Alternative | Information about the tax transactions linked to this payment intent |
tax_transaction_attempts (anyOf 1)[] | Model | Each item | Expand Find a Tax Association — response body — tax transaction attempts array item |
tax_transaction_attempts (anyOf 2) | null | Alternative |
Referenced models: Find a Tax Association — response body — tax transaction attempts array item
Find a Tax Association — response body — tax transaction attempts array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
committed | Model | Optional | Expand Find a Tax Association — response body — tax transaction attempts array item committed |
errored | Model | Optional | Expand Find a Tax Association — response body — tax transaction attempts array item errored |
source | string | Required within parent | The source of the tax transaction attempt. This is either a refund or a payment intent. Maximum length: 5000 |
status | string | Required within parent | The status of the transaction attempt. This can be `errored` or `committed`. Maximum length: 5000 |
Referenced models: Find a Tax Association — response body — tax transaction attempts array item committed, Find a Tax Association — response body — tax transaction attempts array item errored
Find a Tax Association — response body — tax transaction attempts array item committed
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
transaction | string | Required within parent | The [Tax Transaction](https://docs.stripe.com/api/tax/transaction/object) Maximum length: 5000 |
Find a Tax Association — response body — tax transaction attempts array item errored
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
reason | string | Required within parent | Details on why we couldn't commit the tax transaction. Known values: another_payment_associated_with_calculation, calculation_expired, currency_mismatch, original_transaction_voided, unique_reference_violation |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: stripe.gettaxassociationsfind. Catalog operation: GetTaxAssociationsFind. 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"}