Stripe adds SharedPaymentGrantedToken for agentic commerce
Introduced 2026-04-22 · score 0.98
HOW TO USE IT
When an authorized agent shares a token, pass its ID as `payment_method_data.shared_payment_granted_token` when creating and confirming a PaymentIntent. In test mode, create a test token and revoke it to exercise those scenarios.
curl https://api.stripe.com/v1/test_helpers/shared_payment/granted_tokens -u "<YOUR_SECRET_KEY>" -H "Stripe-Version: 2026-04-22.preview" -d payment_method=<PAYMENT_METHOD_ID> -d "usage_limits[currency]=usd" -d "usage_limits[expires_at]=<UNIX_TIMESTAMP>" -d "usage_limits[max_amount]=1000"curl https://api.stripe.com/v1/payment_intents -u "<YOUR_SECRET_KEY>" -H "Stripe-Version: 2026-04-22.preview" -d amount=2000 -d currency=usd -d confirm=true -d "payment_method_data[shared_payment_granted_token]=<TOKEN_ID>"curl https://api.stripe.com/v1/test_helpers/shared_payment/granted_tokens/<TOKEN_ID>/revoke -u "<YOUR_SECRET_KEY>" -H "Stripe-Version: 2026-04-22.preview" -X POSTWHY THIS HELPS
Accept a payment initiated by an authorized agent on a customer's behalf in an integration under development.
REQUIREMENTS AND LIMITATIONS
- Availability: Public preview (API version 2026-04-22.preview).
- payment_method (required): PaymentMethod to be shared by the test token.
- usage_limits (required): Limits on use of the test token; documented example includes `currency`, `expires_at`, and `max_amount`. Definitions for these sub-keys were not accessible.
- payment_method_data.shared_payment_granted_token: The release note identifies this PaymentIntent parameter for passing the token; parameter requiredness and description were not accessible in the opened reference.
- amount (required): Positive integer amount to collect, in the currency’s smallest unit.
- currency (required): Lowercase three-letter ISO currency code supported by Stripe.
- confirm: Set to `true` to attempt to confirm the PaymentIntent immediately; defaults to `false`.
- Prerequisite: Creating a test token is available only in test mode.
- Prerequisite: Create a PaymentMethod first; the test-token docs show a `us_bank_account` PaymentMethod example.
- Prerequisite: Use a Stripe secret key for the documented API requests.
FIRST-PARTY EVIDENCE
- https://docs.stripe.com/changelog/dahlia/2026-04-22/shared-payment-granted-token
- https://docs.stripe.com/api/shared-payment/granted-token/create?api-version=2026-04-22.preview
- https://docs.stripe.com/api/payment_intents/create?api-version=2026-04-22.preview
- https://docs.stripe.com/api/shared-payment/granted-token?api-version=2026-04-22.preview
Check the installed version and the source before using it. Entry JSON