Adds support for ad-hoc products and prices when creating Payment Links
What’s new
You can now generate a new Price when you create a Payment Link by specifying the price_data parameter for its line_items.
Impact
Instead of needing two API requests to separately create a Price and a Payment Link, using price_data allows you to create them both with just one API request.
Changes
| Parameter | Change | Resources or endpoints |
|---|---|---|
| price_data | Added | PaymentLink#create. line_items[] |
| Field | Change | From → to |
| PaymentLink#create. line_items[]. price | Changed | required → optional |
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-07-30. basil
- 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.
