Adds metadata field to the Products API for creating an inline default price
What’s new
Adds a metadata parameter to the Create a product method.
Impact
You can add metadata fields to prices when you create products. Previously, you had to make a separate API call to update the Price object after creating the Product.
Changes
| Parameter | Change | Resources or endpoints |
|---|---|---|
| metadata | Added | Product#create. default_price_data |
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: 2025-02-24. 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.
