A SharedPaymentIssuedToken is a limited-use reference to a PaymentMethod that can be created with a secret key. When shared with another Stripe account (Seller), it enables that account to either process a payment on Stripe against a PaymentMethod that your Stripe account owns, or to forward a usable credential created against the originalPaymentMethod to then process the payment off-Stripe.
Attributes
- idstring
Unique identifier for the object.
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- createdtimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- deactivated_
atnullable timestamp Time at which this SharedPaymentIssuedToken was deactivated.
- deactivated_
reasonnullable enum The reason why the SharedPaymentIssuedToken has been deactivated.
Possible enum valuesconsumedconsumedindicates that this token has been consumed due to hitting the allowed amount limit.expiredexpiredindicates that this token has expired.resolvedresolvedindicates that this token has been resolved by a seller.revokedrevokedindicates that this token has been revoked by the issuer. - livemodeboolean
If the object exists in live mode, the value is
true. If the object exists in test mode, the value isfalse. - next_
actionnullable object If present, describes the action required to make this
SharedPaymentIssuedTokenusable for payments. Present when the token is inrequires_state.action - payment_
methodstring ID of an existing PaymentMethod.
- risk_
detailsnullable object Risk details of the SharedPaymentIssuedToken.
- seller_
detailsnullable object Seller details of the SharedPaymentIssuedToken, including network_id and external_id.
- setup_
future_ usagenullable enum Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later.
Possible enum valueson_session Use
on_to reuse the payment method when your customer is present in the checkout flow.session - shared_
metadatanullable object Metadata about the SharedPaymentIssuedToken.
- statusnullable enum
Status of this SharedPaymentIssuedToken, one of
active,requires_, oraction deactivated.Possible enum valuesactiveactiveindicates that this SharedPaymentIssuedToken is currently active and usable.deactivateddeactivatedindicates that this SharedPaymentIssuedToken has been deactivated.requires_action requires_indicates that this SharedPaymentIssuedToken requires additional action from the customer before it can be used.action - usage_
detailsnullable object Usage details of the SharedPaymentIssuedToken
- usage_
limitsnullable object Usage limits of the SharedPaymentIssuedToken.
{ "id": "spt_1RgaZcFPC5QUO6ZCDVZuVA8q", "object": "shared_payment.issued_token", "livemode": false, "created": 1751500820, "deactivated_at": null, "deactivated_reason": null, "payment_method": "pm_1RgaZbFPC5QUO6ZCe2ekOCNX", "seller_details": { "external_id": null, "network_business_profile": "profile_test_61TU90nIeGjU7NNVXA6TU90m7ISQWsBxpcx9lASWWXTk" }, "setup_future_usage": null, "shared_metadata": {}, "status": "active", "usage_details": { "amount_captured": { "value": 0, "currency": "usd" } }, "usage_limits": { "currency": "usd", "expires_at": 1751587220, "max_amount": 1000 }}Creates a new SharedPaymentIssuedToken object
Parameters
- payment_
methodstringRequired The PaymentMethod that is going to be shared by the SharedPaymentIssuedToken.
- seller_
detailsobjectRequired Seller details of the SharedPaymentIssuedToken, including network_id and external_id.
- usage_
limitsobjectRequired Limits on how this SharedPaymentToken can be used.
- setup_
future_ usageenum Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later.
Possible enum valueson_session Use
on_to reuse the payment method when your customer is present in the checkout flow.session - shared_
metadataobject Set of key-value pairs that you can attach to the SharedPaymentIssuedToken. The values here are visible by default with the party that you share this SharedPaymentIssuedToken with.
Returns
Returns the newly created SharedPaymentIssuedToken
curl https://api.stripe.com/v1/shared_payment/issued_tokens \ -u "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2:" \ -d payment_method={{PAYMENT_METHOD_ID}} \ -d "seller_details[network_business_profile]=profile_test_61TU90nIeGjU7NNVXA6TU90m7ISQWsBxpcx9lASWWXTk" \ -d "usage_limits[currency]=usd" \ -d "usage_limits[expires_at]=1751587220" \ -d "usage_limits[max_amount]=1000"{ "id": "spt_1RgaZcFPC5QUO6ZCDVZuVA8q", "object": "shared_payment.issued_token", "livemode": false, "created": 1751500820, "deactivated_at": null, "deactivated_reason": null, "payment_method": "pm_1RgaZbFPC5QUO6ZCe2ekOCNX", "seller_details": { "external_id": null, "network_business_profile": "profile_test_61TU90nIeGjU7NNVXA6TU90m7ISQWsBxpcx9lASWWXTk" }, "setup_future_usage": null, "shared_metadata": {}, "status": "active", "usage_details": { "amount_captured": { "value": 0, "currency": "usd" } }, "usage_limits": { "currency": "usd", "expires_at": 1751587220, "max_amount": 1000 }}