# Adds a demographic information hash to the Persons API ## What’s new Introduces the `us_cfpb_data` hash in the Persons API, which contains two sub-hashes, `ethnicity_details` and `race_details`, and a free text field for the person’s self-identified gender. Each sub-hash includes fields, allowing for multiple enum values and free text input to describe the person’s ethnicity or race. This change complies with Section 1071 of the Dodd-Frank Act, which requires providers of small business financing in the US to collect demographic information about applicants. Stripe’s financial partners report this information to the CFPB, which analyzes potential disparities in business financing. The information shared with the CFPB is anonymized to protect the identity of applicants. ```bash curl https://api.stripe.com/v1/accounts/acct_xxxxx/persons \ -u "sk_test_4eC39HqLyjWDarjtT1zdp7dc:" \ -d us_cfpb_data[self_identified_gender]=female \ -d us_cfpb_data[ethnicity_details][ethnicity][]=not_hispanic_or_latino \ -d us_cfpb_data[race_details][race][]=white ``` ## Impact This addition ensures compliance with Regulation 1071 by requiring providers of small business financing to collect demographic information about applicants for financing. ## Changes #### REST API | Parameter | Change | Resources or endpoints | | -------------- | ------ | ----------------------------------------------------------------- | | `us_cfpb_data` | Added | `Person#create`, `Person#update`, `Person`, `Token#create.person` | #### Ruby | Parameter | Change | Resources or methods | | -------------- | ------ | ------------------------------------------------------------------------------------------------------------ | | `us_cfpb_data` | Added | `AccountPerson::CreateParams`, `AccountPerson::UpdateParams`, `AccountPerson`, `Token::CreateParams::Person` | #### Python | Parameter | Change | Resources or methods | | -------------- | ------ | ------------------------------------------------------------------------------------------------------- | | `us_cfpb_data` | Added | `AccountPerson.CreateParams`, `AccountPerson.UpdateParams`, `AccountPerson`, `Token.CreateParamsPerson` | #### PHP | Parameter | Change | Resources or methods | | -------------- | ------ | -------------------- | | `us_cfpb_data` | Added | `Person` | #### Java | Parameter | Change | Resources or methods | | ------------ | ------ | ----------------------------------------------------------------------------------------------------- | | `usCfpbData` | Added | `AccountPersonCreateParams`, `AccountPersonUpdateParams`, `AccountPerson`, `TokenCreateParams.person` | #### Node.js | Parameter | Change | Resources or methods | | -------------- | ------ | ----------------------------------------------------------------------------------------------------- | | `us_cfpb_data` | Added | `AccountPersonCreateParams`, `AccountPersonUpdateParams`, `AccountPerson`, `TokenCreateParams.person` | #### Go | Parameter | Change | Resources or methods | | ------------ | ------ | ------------------------ | | `USCfpbData` | Added | `PersonParams`, `Person` | #### .NET | Parameter | Change | Resources or methods | | ------------ | ------ | ------------------------------------------------------------------------------------------------- | | `UsCfpbData` | Added | `AccountPersonCreateOptions`, `AccountPersonUpdateOptions`, `AccountPerson`, `TokenPersonOptions` | ## Upgrade #### REST API 1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench. 1. 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](https://docs.stripe.com/api/versioning.md) to include `Stripe-Version: 2025-04-30.basil` 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours. Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md). #### Ruby 1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench. 1. Upgrade your Ruby SDK to [v15.1.0](https://github.com/stripe/stripe-ruby/releases/tag/v15.1.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours. Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md). #### Python 1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench. 1. Upgrade your Python SDK to [v12.1.0](https://github.com/stripe/stripe-python/releases/tag/v12.1.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours. Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md). #### PHP 1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench. 1. Upgrade your PHP SDK to [v17.2.0](https://github.com/stripe/stripe-php/releases/tag/v17.2.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours. Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md). #### Java 1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench. 1. Upgrade your Java SDK to [v29.1.0](https://github.com/stripe/stripe-java/releases/tag/v29.1.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours. Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md). #### Node.js 1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench. 1. Upgrade your Node SDK to [v18.1.0](https://github.com/stripe/stripe-node/releases/tag/v18.1.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours. Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md). #### Go 1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench. 1. Upgrade your Go SDK to [v82.1.0](https://github.com/stripe/stripe-go/releases/tag/v82.1.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours. Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md). #### .NET 1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench. 1. Upgrade your .NET SDK to [v48.1.0](https://github.com/stripe/stripe-dotnet/releases/tag/v48.1.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours. Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md). ## Related changes - [Adds a minority-owned business designation field to the business profile hash](https://docs.stripe.com/changelog/basil/2025-04-30/add-minority-owned-business-designation-to-business-profile.md)