Adds option to automatically validate customer tax location during an update
What’s new
We’re adding auto as an option for tax.validate_location to simplify integrating with Stripe Tax. If you try to update a customer with an unrecognized location after the customer’s tax location is verified, the API returns a 400 validation error. Stripe recommends setting set tax[validate_location]="auto" for all new Stripe Tax integrations. (Currently, this only works for customers with automatic tax-enabled subscriptions.)
To validate customer addresses during collection, set tax[validate_location]="immediately" when you create a customer.
Impact
Helps users of
Billing
and
Tax
avoid invoice finalization errors due to invalid customer tax locations.
Changes
| Value | Change | Enum |
|---|---|---|
| auto | Added | Customer#update. tax. validate_location |
Upgrade
- View your current API version in Workbench.
- If you use an SDK, upgrade to the corresponding SDK version for this API version.
- If you don’t use an SDK, update your API requests to include Stripe-Version: 2024-10-28. acacia
- Upgrade the API version used for webhook endpoints .
- Test your integration against the new version.
- If you use Connect, test your Connect integration .
- In Workbench, perform the upgrade . You can roll back the version for 72 hours.
Learn more about Stripe API upgrades.
